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

@pnpm/cafs

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/cafs - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

CHANGELOG.md
# @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 @@

3

lib/parseJson.js

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

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