@pnpm/workspace.read-manifest
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -34,9 +34,6 @@ "use strict"; | ||
function validateWorkspaceManifest(manifest) { | ||
if (manifest === undefined) { | ||
// Empty manifest is ok | ||
if (manifest === undefined || manifest === null) { | ||
// Empty or null manifest is ok | ||
return true; | ||
} | ||
if (manifest === null) { | ||
throw new InvalidWorkspaceManifestError('Expected object but found - null'); | ||
} | ||
if (typeof manifest !== 'object') { | ||
@@ -43,0 +40,0 @@ throw new InvalidWorkspaceManifestError(`Expected object but found - ${typeof manifest}`); |
{ | ||
"name": "@pnpm/workspace.read-manifest", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Reads a workspace manifest file", | ||
@@ -31,3 +31,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/workspace.read-manifest": "1.0.0" | ||
"@pnpm/workspace.read-manifest": "1.0.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "exports": { |
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
6774
6
73