BREAKING CHANGE(scope): change and name to @pushrocks/smarthash
This commit is contained in:
@ -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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user