@pnpm/read-package-json
Advanced tools
Comparing version 3.1.9 to 4.0.0
# @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 @@ |
@@ -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" | ||
} |
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
5803
47
4
+ Addedload-json-file@^6.2.0
+ Added@babel/code-frame@7.25.7(transitive)
+ Added@babel/helper-validator-identifier@7.25.7(transitive)
+ Added@babel/highlight@7.25.7(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedload-json-file@6.2.0(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpicocolors@1.1.0(transitive)
+ Addedstrip-bom@4.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtype-fest@0.6.0(transitive)
- Removedread-package-json@^3.0.0
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removednpm-normalize-package-bin@1.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedread-package-json@3.0.1(transitive)
- Removedwrappy@1.0.2(transitive)