fix(core): update

This commit is contained in:
2022-06-26 11:37:07 +02:00
parent 85f2cc4745
commit d43f568795
3 changed files with 26 additions and 5 deletions

View File

@ -1,12 +1,12 @@
import * as plugins from './nodehash.plugins.js';
export const hashStreamPipeStop = (resolveFuntion) => {
const forEach = (chunk: Buffer, enc, cb) => {
resolveFuntion(chunk.toString('utf8'));
export const hashStreamPipeStop = (resolveFunctionArg: (inputArg: string) => any) => {
const forEach = (chunk: Buffer, enc: any, cb: any) => {
resolveFunctionArg(chunk.toString('utf8'));
cb(null, chunk);
};
const atEnd = (cb) => {
const atEnd = (cb: any) => {
cb();
};