aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-jsonld-signature.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-jsonld-signature.ts')
-rw-r--r--server/helpers/custom-jsonld-signature.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/custom-jsonld-signature.ts b/server/helpers/custom-jsonld-signature.ts
index afb960618..e4f28018e 100644
--- a/server/helpers/custom-jsonld-signature.ts
+++ b/server/helpers/custom-jsonld-signature.ts
@@ -1,9 +1,7 @@
1import * as AsyncLRU from 'async-lru' 1import * as AsyncLRU from 'async-lru'
2import * as jsonld from 'jsonld' 2import * as jsonld from 'jsonld/'
3import * as jsig from 'jsonld-signatures' 3import * as jsig from 'jsonld-signatures'
4 4
5jsig.use('jsonld', jsonld)
6
7const nodeDocumentLoader = jsonld.documentLoaders.node() 5const nodeDocumentLoader = jsonld.documentLoaders.node()
8 6
9const lru = new AsyncLRU({ 7const lru = new AsyncLRU({
@@ -17,4 +15,6 @@ jsonld.documentLoader = (url, cb) => {
17 lru.get(url, cb) 15 lru.get(url, cb)
18} 16}
19 17
18jsig.use('jsonld', jsonld)
19
20export { jsig } 20export { jsig }