fix(ci): update

This commit is contained in:
2019-11-21 14:20:57 +00:00
parent 58d4d17e8a
commit c06ac22a59
7 changed files with 74 additions and 112 deletions

View File

@ -1,5 +1,8 @@
import * as plugins from './nodehash.plugins';
export const md5FromString = async (stringToHash: string) => {
return plugins.crypto.createHash('md5').update(stringToHash).digest("hex");
return plugins.crypto
.createHash('md5')
.update(stringToHash)
.digest('hex');
};

View File

@ -4,25 +4,15 @@ import * as fs from 'fs';
import * as path from 'path';
import * as stream from 'stream';
export {
crypto,
fs,
path,
stream
};
export { crypto, fs, path, stream };
// pushrocks scope
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartjson from '@pushrocks/smartjson';
export {
smartpromise,
smartjson
};
export { smartpromise, smartjson };
// thirdparty scope
import through2 from 'through2';
export {
through2
};
export { through2 };

View File

@ -35,7 +35,7 @@ export let sha256FromStringSync = (stringArg): string => {
/**
* Computes sha256 Hash from String
*/
export const sha256FromString = async(stringArg: string): Promise<string> => {
export const sha256FromString = async (stringArg: string): Promise<string> => {
const hash = plugins.crypto.createHash('sha256');
hash.update(stringArg);
const hashResult = hash.digest('hex');