folder-hash
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "folder-hash", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Create a hash checksum over a folder and its content - its children and their content", | ||
@@ -35,4 +35,4 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=7.0.0" | ||
"node": ">=6.0.0" | ||
} | ||
} |
@@ -146,3 +146,3 @@ const { Volume } = require('memfs'), | ||
it('generates the same hash if only the name differs and ignoreRootName is set', async function () { | ||
it('generates the same hash if only the name differs and ignoreRootName is set', function () { | ||
const hashElement = prep(Volume.fromJSON({ | ||
@@ -154,6 +154,8 @@ 'abc.txt': 'awesome content', | ||
const abc = await hashElement('abc.txt', options); | ||
const def = await hashElement('def/ghi.js', options); | ||
abc.hash.should.equal(def.hash); | ||
return Promise.all([ | ||
hashElement('abc.txt', options), | ||
hashElement('def/ghi.js', options) | ||
]).then(function (hashes) { | ||
return hashes[0].hash.should.equal(hashes[1].hash); | ||
}); | ||
}); | ||
@@ -391,3 +393,3 @@ }); | ||
it('generates the same hash if the folders only differ in name and ignoreRootName is set', async function () { | ||
it('generates the same hash if the folders only differ in name and ignoreRootName is set', function () { | ||
const hashElement = prep(Volume.fromJSON({ | ||
@@ -405,7 +407,9 @@ 'abc/def/ghi': 'content of ghi', | ||
const abc = await hashElement('abc', options); | ||
const def = await hashElement('def', options); | ||
abc.hash.should.equal(def.hash); | ||
return Promise.all([ | ||
hashElement('abc', options), | ||
hashElement('def', options) | ||
]).then(function (hashes) { | ||
return hashes[0].hash.should.equal(hashes[1].hash); | ||
}); | ||
}); | ||
}); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
48456
14
898
1