fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smarthash',
|
||||
version: '3.0.0',
|
||||
version: '3.0.1',
|
||||
description: 'simplified access to node hash functions'
|
||||
}
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user