folder-hash
Advanced tools
Comparing version 3.3.2 to 3.3.3
12
index.js
@@ -47,3 +47,3 @@ const crypto = require('crypto'), | ||
.then(result => { | ||
if (typeof callback === 'function') { | ||
if (isFunction(callback)) { | ||
return callback(undefined, result); | ||
@@ -55,3 +55,3 @@ } else { | ||
.catch(reason => { | ||
if (typeof callback === 'function') { | ||
if (isFunction(callback)) { | ||
return callback(reason); | ||
@@ -209,3 +209,3 @@ } else { | ||
HashedFolder.prototype.toString = function (padding = '') { | ||
const first = `${padding}{ name: '${this.name}', hash: '${this.hash},'\n`; | ||
const first = `${padding}{ name: '${this.name}', hash: '${this.hash}',\n`; | ||
padding += ' '; | ||
@@ -274,2 +274,6 @@ | ||
function isFunction(any) { | ||
return typeof any === 'function'; | ||
} | ||
function isString(str) { | ||
@@ -288,3 +292,3 @@ return typeof str === 'string' || str instanceof String; | ||
function reduceGlobPatterns(globs) { | ||
if (typeof globs === 'function') { | ||
if (isFunction(globs)) { | ||
return globs; | ||
@@ -291,0 +295,0 @@ } |
{ | ||
"name": "folder-hash", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "Create a hash checksum over a folder and its content - its children and their content", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26924
332
0