diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/core-utils.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index 1e92049f1..d28c97f09 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -16,6 +16,7 @@ import { | |||
16 | import * as mkdirp from 'mkdirp' | 16 | import * as mkdirp from 'mkdirp' |
17 | import * as bcrypt from 'bcrypt' | 17 | import * as bcrypt from 'bcrypt' |
18 | import * as createTorrent from 'create-torrent' | 18 | import * as createTorrent from 'create-torrent' |
19 | import * as rimraf from 'rimraf' | ||
19 | import * as openssl from 'openssl-wrapper' | 20 | import * as openssl from 'openssl-wrapper' |
20 | import * as Promise from 'bluebird' | 21 | import * as Promise from 'bluebird' |
21 | 22 | ||
@@ -83,6 +84,7 @@ const bcryptComparePromise = promisify2<any, string, boolean>(bcrypt.compare) | |||
83 | const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) | 84 | const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) |
84 | const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash) | 85 | const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash) |
85 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) | 86 | const createTorrentPromise = promisify2<string, any, any>(createTorrent) |
87 | const rimrafPromise = promisify1WithVoid<string>(rimraf) | ||
86 | 88 | ||
87 | // --------------------------------------------------------------------------- | 89 | // --------------------------------------------------------------------------- |
88 | 90 | ||
@@ -105,5 +107,6 @@ export { | |||
105 | bcryptComparePromise, | 107 | bcryptComparePromise, |
106 | bcryptGenSaltPromise, | 108 | bcryptGenSaltPromise, |
107 | bcryptHashPromise, | 109 | bcryptHashPromise, |
108 | createTorrentPromise | 110 | createTorrentPromise, |
111 | rimrafPromise | ||
109 | } | 112 | } |