Socket
Socket
Sign inDemoInstall

@pnpm/read-package-json

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/read-package-json - npm Package Compare versions

Comparing version 3.1.9 to 4.0.0

6

CHANGELOG.md
# @pnpm/read-package-json
## 4.0.0
### Major Changes
- d853fb14a: Don't normalize the `bin` field of `package.json`.
## 3.1.9

@@ -4,0 +10,0 @@

9

lib/index.js

@@ -8,9 +8,10 @@ "use strict";

const error_1 = __importDefault(require("@pnpm/error"));
const util_1 = require("util");
const loadJsonFile = require("load-json-file");
const normalizePackageData = require("normalize-package-data");
const path = require("path");
const readPackageManifestCB = require("read-package-json");
const readPackageManifest = util_1.promisify(readPackageManifestCB);
async function readPkg(pkgPath) {
try {
return await readPackageManifest(pkgPath);
const manifest = await loadJsonFile(pkgPath);
normalizePackageData(manifest);
return manifest;
}

@@ -17,0 +18,0 @@ catch (err) { // eslint-disable-line

{
"name": "@pnpm/read-package-json",
"version": "3.1.9",
"version": "4.0.0",
"description": "Read a package.json",

@@ -35,5 +35,6 @@ "main": "lib/index.js",

"@pnpm/types": "6.4.0",
"read-package-json": "^3.0.0"
"load-json-file": "^6.2.0",
"normalize-package-data": "^3.0.2"
},
"funding": "https://opencollective.com/pnpm"
}
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