Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

folder-hash

Package Overview
Dependencies
Maintainers
1
Versions
24
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 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc