fix(core): update

This commit is contained in:
2018-09-08 01:11:25 +02:00
parent 58bcf0cea2
commit 57f50ef507
4 changed files with 39 additions and 54 deletions

View File

@@ -6,7 +6,7 @@ export class SmartCache {
async cacheReturn(asyncCachedFuncArg: () => Promise<any>, cacheDuration: number = 5000) {
let callStack: string = new plugins.smarterror.SmartError('').cleanFullStack;
let callHash = plugins.nodehash.sha256FromStringSync(callStack);
let callHash = plugins.smarthash.sha256FromStringSync(callStack);
// console.log(callHash);
if (

View File

@@ -2,6 +2,6 @@ import * as smartdelay from '@pushrocks/smartdelay';
import * as smarterror from '@pushrocks/smarterror';
import * as smartpromise from '@pushrocks/smartpromise';
import * as smarttime from '@pushrocks/smarttime';
import * as nodehash from 'nodehash';
import * as smarthash from '@pushrocks/smarthash';
export { smarterror, smartdelay, smartpromise, smarttime, nodehash };
export { smarterror, smartdelay, smartpromise, smarttime, smarthash };