aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/core-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r--server/helpers/core-utils.ts5
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 {
16import * as mkdirp from 'mkdirp' 16import * as mkdirp from 'mkdirp'
17import * as bcrypt from 'bcrypt' 17import * as bcrypt from 'bcrypt'
18import * as createTorrent from 'create-torrent' 18import * as createTorrent from 'create-torrent'
19import * as rimraf from 'rimraf'
19import * as openssl from 'openssl-wrapper' 20import * as openssl from 'openssl-wrapper'
20import * as Promise from 'bluebird' 21import * as Promise from 'bluebird'
21 22
@@ -83,6 +84,7 @@ const bcryptComparePromise = promisify2<any, string, boolean>(bcrypt.compare)
83const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt) 84const bcryptGenSaltPromise = promisify1<number, string>(bcrypt.genSalt)
84const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash) 85const bcryptHashPromise = promisify2<any, string|number, string>(bcrypt.hash)
85const createTorrentPromise = promisify2<string, any, any>(createTorrent) 86const createTorrentPromise = promisify2<string, any, any>(createTorrent)
87const 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}