diff options
Diffstat (limited to 'server/helpers/custom-jsonld-signature.ts')
-rw-r--r-- | server/helpers/custom-jsonld-signature.ts | 6 |
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 @@ | |||
1 | import * as AsyncLRU from 'async-lru' | 1 | import * as AsyncLRU from 'async-lru' |
2 | import * as jsonld from 'jsonld' | 2 | import * as jsonld from 'jsonld/' |
3 | import * as jsig from 'jsonld-signatures' | 3 | import * as jsig from 'jsonld-signatures' |
4 | 4 | ||
5 | jsig.use('jsonld', jsonld) | ||
6 | |||
7 | const nodeDocumentLoader = jsonld.documentLoaders.node() | 5 | const nodeDocumentLoader = jsonld.documentLoaders.node() |
8 | 6 | ||
9 | const lru = new AsyncLRU({ | 7 | const 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 | ||
18 | jsig.use('jsonld', jsonld) | ||
19 | |||
20 | export { jsig } | 20 | export { jsig } |