fix(ci): update
This commit is contained in:
@ -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');
|
||||
};
|
||||
|
@ -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 };
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user