You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

folder-hash

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folder-hash - npm Package Compare versions

Comparing version

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",