diff options
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r-- | server/helpers/core-utils.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index d8748e1d7..4ff07848c 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -20,9 +20,6 @@ import * as bcrypt from 'bcrypt' | |||
20 | import * as createTorrent from 'create-torrent' | 20 | import * as createTorrent from 'create-torrent' |
21 | import * as rimraf from 'rimraf' | 21 | import * as rimraf from 'rimraf' |
22 | import * as pem from 'pem' | 22 | import * as pem from 'pem' |
23 | import * as jsonld from 'jsonld' | ||
24 | import * as jsig from 'jsonld-signatures' | ||
25 | jsig.use('jsonld', jsonld) | ||
26 | 23 | ||
27 | function isTestInstance () { | 24 | function isTestInstance () { |
28 | return process.env.NODE_ENV === 'test' | 25 | return process.env.NODE_ENV === 'test' |
@@ -120,8 +117,6 @@ const bcryptHashPromise = promisify2<any, string | number, string>(bcrypt.hash) | |||
120 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) | 117 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) |
121 | const rimrafPromise = promisify1WithVoid<string>(rimraf) | 118 | const rimrafPromise = promisify1WithVoid<string>(rimraf) |
122 | const statPromise = promisify1<string, Stats>(stat) | 119 | const statPromise = promisify1<string, Stats>(stat) |
123 | const jsonldSignPromise = promisify2<object, { privateKeyPem: string, creator: string }, object>(jsig.sign) | ||
124 | const jsonldVerifyPromise = promisify2<object, object, object>(jsig.verify) | ||
125 | 120 | ||
126 | // --------------------------------------------------------------------------- | 121 | // --------------------------------------------------------------------------- |
127 | 122 | ||
@@ -150,7 +145,5 @@ export { | |||
150 | bcryptHashPromise, | 145 | bcryptHashPromise, |
151 | createTorrentPromise, | 146 | createTorrentPromise, |
152 | rimrafPromise, | 147 | rimrafPromise, |
153 | statPromise, | 148 | statPromise |
154 | jsonldSignPromise, | ||
155 | jsonldVerifyPromise | ||
156 | } | 149 | } |