@patterkit/cli 0.9.1 → 0.9.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/dist/cli.js +6 -5
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -198054,6 +198054,7 @@ function validateProject(input) {
198054
198054
  }
198055
198055
  }
198056
198056
  };
198057
+ const addressOf = (node) => effectiveGameId({ gameId: node.gameId, name: typeof node.name === "string" ? node.name : "" });
198057
198058
  const seeId = (id, kind, where) => {
198058
198059
  if (typeof id !== "string" || id.length === 0) {
198059
198060
  issues.push({ code: "missing-id", message: `${kind} in ${where} has no id` });
@@ -198078,7 +198079,7 @@ function validateProject(input) {
198078
198079
  if (scene.gameId && !isValidGameId(scene.gameId)) {
198079
198080
  issues.push({ code: "invalid-gameid", message: `${where} address '${scene.gameId}' is invalid (lowercase letters, digits, hyphens; no leading/trailing hyphen)`, id: scene.id });
198080
198081
  }
198081
- const sgid = effectiveGameId(scene);
198082
+ const sgid = addressOf(scene);
198082
198083
  if (sgid) {
198083
198084
  const prev = sceneGameIds.get(sgid);
198084
198085
  if (prev && prev !== scene.id) issues.push({ code: "duplicate-gameid", message: `${where} address '${sgid}' is already used by scene '${prev}'`, id: scene.id });
@@ -198113,7 +198114,7 @@ function validateProject(input) {
198113
198114
  if (block.gameId && !isValidGameId(block.gameId)) {
198114
198115
  issues.push({ code: "invalid-gameid", message: `block '${block.id}' address '${block.gameId}' is invalid (lowercase letters, digits, hyphens; no leading/trailing hyphen)`, id: block.id });
198115
198116
  }
198116
- const bgid = effectiveGameId(block);
198117
+ const bgid = addressOf(block);
198117
198118
  if (bgid) {
198118
198119
  const prev = blockGameIds.get(bgid);
198119
198120
  if (prev && prev !== block.id) issues.push({ code: "duplicate-gameid", message: `block '${block.id}' address '${bgid}' is already used by block '${prev}' in ${where}`, id: block.id });
@@ -249543,7 +249544,7 @@ function fileStatus(filePaths, options = {}) {
249543
249544
  // package.json
249544
249545
  var package_default = {
249545
249546
  name: "@patterkit/cli",
249546
- version: "0.9.1",
249547
+ version: "0.9.2",
249547
249548
  description: "The `patter` CLI: validate, format, export, play, test coverage, localise, and merge Patter projects.",
249548
249549
  type: "module",
249549
249550
  license: "MIT",
@@ -249572,8 +249573,8 @@ var package_default = {
249572
249573
  "build:standalone:others": "node scripts/build-standalone.mjs --targets=linux-x64,linux-arm64,windows-x64"
249573
249574
  },
249574
249575
  dependencies: {
249575
- "@patterkit/core": "0.4.0",
249576
- "@patterkit/ops": "0.14.1",
249576
+ "@patterkit/core": "0.4.1",
249577
+ "@patterkit/ops": "0.14.2",
249577
249578
  "@wildwinter/simple-vc-lib": "^0.5.0"
249578
249579
  }
249579
249580
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/cli",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "The `patter` CLI: validate, format, export, play, test coverage, localise, and merge Patter projects.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  "build:standalone:others": "node scripts/build-standalone.mjs --targets=linux-x64,linux-arm64,windows-x64"
30
30
  },
31
31
  "dependencies": {
32
- "@patterkit/core": "0.4.0",
33
- "@patterkit/ops": "0.14.1",
32
+ "@patterkit/core": "0.4.1",
33
+ "@patterkit/ops": "0.14.2",
34
34
  "@wildwinter/simple-vc-lib": "^0.5.0"
35
35
  }
36
36
  }