@pnpm/cafs
Advanced tools
Comparing version 2.0.2 to 2.0.3
# @pnpm/cafs | ||
## 2.0.3 | ||
### Patch Changes | ||
- b3059f4f8: Don't unpack file duplicates to the content-addressable store. | ||
## 2.0.2 | ||
@@ -4,0 +10,0 @@ |
@@ -11,5 +11,10 @@ "use strict"; | ||
await new Promise((resolve, reject) => { | ||
extract.on('entry', async (header, fileStream, next) => { | ||
const filename = header.name.substr(header.name.indexOf('/') + 1); | ||
if (header.type !== 'file' || ignore(filename)) { | ||
extract.on('entry', (header, fileStream, next) => { | ||
// There are some edge cases, where the same files are extracted multiple times. | ||
// So there will be an entry for "lib/index.js" and another one for "lib//index.js", | ||
// which are the same file. | ||
// Hence, we are normalizing the file name, replacing // with / and checking for duplicates. | ||
// Example of such package: @pnpm/colorize-semver-diff@1.0.1 | ||
const filename = header.name.substr(header.name.indexOf('/') + 1).replace(/\/\//g, '/'); | ||
if (header.type !== 'file' || ignore(filename) || filesIndex[filename]) { | ||
fileStream.resume(); | ||
@@ -16,0 +21,0 @@ next(); |
{ | ||
"name": "@pnpm/cafs", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A content-addressable filesystem for the packages storage", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
26119
406