@pnpm/cafs
Advanced tools
Comparing version 1.0.2 to 1.0.3
# @pnpm/cafs | ||
## 1.0.3 | ||
### Patch Changes | ||
- 492805ee3: Strip byte order mark (BOM) before parsing the content of a package manifest (package.json). | ||
## 1.0.2 | ||
@@ -4,0 +10,0 @@ |
@@ -5,5 +5,6 @@ "use strict"; | ||
const concatStream = require("concat-stream"); | ||
const stripBom = require("strip-bom"); | ||
function parseJsonBuffer(buffer, deferred) { | ||
try { | ||
deferred.resolve(JSON.parse(buffer.toString())); | ||
deferred.resolve(JSON.parse(stripBom(buffer.toString()))); | ||
} | ||
@@ -10,0 +11,0 @@ catch (err) { |
{ | ||
"name": "@pnpm/cafs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A content-addressable filesystem for the packages storage", | ||
@@ -29,2 +29,3 @@ "main": "lib/index.js", | ||
"ssri": "6.0.1", | ||
"strip-bom": "^4.0.0", | ||
"tar-stream": "^2.1.2" | ||
@@ -35,3 +36,3 @@ }, | ||
"@types/mz": "^2.7.1", | ||
"@types/node": "^13.13.10", | ||
"@types/node": "^13.13.11", | ||
"@types/ssri": "^6.0.3", | ||
@@ -38,0 +39,0 @@ "@types/tar-stream": "^2.1.0", |
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
21126
332
14
+ Addedstrip-bom@^4.0.0
+ Addedstrip-bom@4.0.0(transitive)