BREAKING CHANGE(scope): change and name to @pushrocks/smarthash

This commit is contained in:
2018-09-08 01:04:47 +02:00
parent 9746709aab
commit eb79ac25c9
20 changed files with 1147 additions and 271 deletions

View File

@ -1,15 +1,14 @@
import * as plugins from "./nodehash.plugins";
import * as plugins from './nodehash.plugins';
export let hashStreamPipeStop = (resolveFuntion) => {
let forEach = (chunk:Buffer,enc,cb) => {
resolveFuntion(chunk.toString("utf8"));
cb(null,chunk);
};
export let hashStreamPipeStop = resolveFuntion => {
let forEach = (chunk: Buffer, enc, cb) => {
resolveFuntion(chunk.toString('utf8'));
cb(null, chunk);
};
let atEnd = (cb) => {
cb();
};
return plugins.through2(forEach,atEnd);
let atEnd = cb => {
cb();
};
return plugins.through2(forEach, atEnd);
};