@pnpm/read-project-manifest
Advanced tools
Comparing version 4.1.3 to 4.1.4
@@ -102,2 +102,3 @@ "use strict"; | ||
const err = new Error(`"${projectDir}" is not a directory`); | ||
// @ts-expect-error | ||
err['code'] = 'ENOTDIR'; | ||
@@ -201,9 +202,9 @@ throw err; | ||
manifest = JSON.parse(JSON.stringify(manifest)); | ||
const result = {}; | ||
for (const key of Object.keys(manifest)) { | ||
const result = {}; // eslint-disable-line @typescript-eslint/no-explicit-any | ||
for (const [key, value] of Object.entries(manifest)) { | ||
if (!dependencyKeys.has(key)) { | ||
result[key] = manifest[key]; | ||
result[key] = value; | ||
} | ||
else if (Object.keys(manifest[key]).length !== 0) { | ||
result[key] = (0, sort_keys_1.default)(manifest[key]); | ||
else if (Object.keys(value).length !== 0) { | ||
result[key] = (0, sort_keys_1.default)(value); | ||
} | ||
@@ -210,0 +211,0 @@ } |
{ | ||
"name": "@pnpm/read-project-manifest", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "Read a project manifest (called package.json in most cases)", | ||
@@ -28,3 +28,3 @@ "main": "lib/index.js", | ||
"is-windows": "^1.0.2", | ||
"json5": "^2.2.2", | ||
"json5": "^2.2.3", | ||
"parse-json": "^5.2.0", | ||
@@ -35,3 +35,3 @@ "read-yaml-file": "^2.1.0", | ||
"@pnpm/error": "4.0.1", | ||
"@pnpm/graceful-fs": "2.0.0", | ||
"@pnpm/graceful-fs": "2.1.0", | ||
"@pnpm/text.comments-parser": "1.0.0", | ||
@@ -45,3 +45,3 @@ "@pnpm/types": "8.10.0", | ||
"tempy": "^1.0.1", | ||
"@pnpm/read-project-manifest": "4.1.3" | ||
"@pnpm/read-project-manifest": "4.1.4" | ||
}, | ||
@@ -53,3 +53,3 @@ "funding": "https://opencollective.com/pnpm", | ||
"scripts": { | ||
"lint": "eslint src/**/*.ts test/**/*.ts", | ||
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"_test": "jest", | ||
@@ -56,0 +56,0 @@ "test": "pnpm run compile && pnpm run _test", |
Sorry, the diff of this file is not supported yet
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
20253
281
+ Added@pnpm/graceful-fs@2.1.0(transitive)
- Removed@pnpm/graceful-fs@2.0.0(transitive)
Updated@pnpm/graceful-fs@2.1.0
Updatedjson5@^2.2.3