@pnpm/workspace.read-manifest
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.readWorkspaceManifest = void 0; | ||
const util_1 = __importDefault(require("util")); | ||
const constants_1 = require("@pnpm/constants"); | ||
@@ -22,5 +23,5 @@ const error_1 = require("@pnpm/error"); | ||
} | ||
catch (err) { // eslint-disable-line | ||
catch (err) { | ||
// File not exists is the same as empty file (undefined) | ||
if (err['code'] === 'ENOENT') { | ||
if (util_1.default.types.isNativeError(err) && 'code' in err && err.code === 'ENOENT') { | ||
return undefined; | ||
@@ -27,0 +28,0 @@ } |
{ | ||
"name": "@pnpm/workspace.read-manifest", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "Reads a workspace manifest file", | ||
@@ -12,7 +12,7 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=16.14" | ||
"node": ">=18.12" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/main/workspace/read-manifest", | ||
"keywords": [ | ||
"pnpm8", | ||
"pnpm9", | ||
"pnpm" | ||
@@ -27,8 +27,8 @@ ], | ||
"read-yaml-file": "^2.1.0", | ||
"@pnpm/error": "5.0.3", | ||
"@pnpm/constants": "7.1.1" | ||
"@pnpm/constants": "8.0.0", | ||
"@pnpm/error": "6.0.0" | ||
}, | ||
"funding": "https://opencollective.com/pnpm", | ||
"devDependencies": { | ||
"@pnpm/workspace.read-manifest": "1.0.3" | ||
"@pnpm/workspace.read-manifest": "2.0.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "exports": { |
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
7464
81
+ Added@pnpm/constants@8.0.0(transitive)
+ Added@pnpm/error@6.0.0(transitive)
- Removed@pnpm/constants@7.1.1(transitive)
- Removed@pnpm/error@5.0.3(transitive)
Updated@pnpm/constants@8.0.0
Updated@pnpm/error@6.0.0