diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-18 11:53:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:53:16 +0100 |
commit | ce33ee01cd3806201b676c318e9aa930032921b2 (patch) | |
tree | a067f57a571f417fc7b70f39af4302cd17183b07 /server/helpers/custom-jsonld-signature.ts | |
parent | 555846c99fa43b237814d32bd55d8124405187d3 (diff) | |
download | PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.tar.gz PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.tar.zst PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.zip |
Use RsaSignature2017
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 } |