@pnpm/workspace.workspace-manifest-reader 1100.0.0 → 1100.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/catalogs.js +3 -0
  2. package/package.json +5 -4
package/lib/catalogs.js CHANGED
@@ -29,6 +29,9 @@ export function assertValidWorkspaceManifestCatalogs(manifest) {
29
29
  if (Array.isArray(catalog)) {
30
30
  throw new InvalidWorkspaceManifestError(`Expected named catalog ${catalogName} to be an object, but found - array`);
31
31
  }
32
+ if (catalog === null) {
33
+ throw new InvalidWorkspaceManifestError(`Expected named catalog ${catalogName} to be an object, but found - null`);
34
+ }
32
35
  if (typeof catalog !== 'object') {
33
36
  throw new InvalidWorkspaceManifestError(`Expected named catalog ${catalogName} to be an object, but found - ${typeof catalog}`);
34
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/workspace.workspace-manifest-reader",
3
- "version": "1100.0.0",
3
+ "version": "1100.0.2",
4
4
  "description": "Reads a workspace manifest file",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -26,11 +26,12 @@
26
26
  "dependencies": {
27
27
  "read-yaml-file": "^3.0.0",
28
28
  "@pnpm/constants": "1100.0.0",
29
- "@pnpm/error": "1100.0.0",
30
- "@pnpm/types": "1100.0.0"
29
+ "@pnpm/types": "1101.0.0",
30
+ "@pnpm/error": "1100.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@pnpm/workspace.workspace-manifest-reader": "1100.0.0"
33
+ "@jest/globals": "30.3.0",
34
+ "@pnpm/workspace.workspace-manifest-reader": "1100.0.2"
34
35
  },
35
36
  "engines": {
36
37
  "node": ">=22.13"