@patterkit/cli 0.3.7 → 0.3.8
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.
- package/dist/cli.js +10 -8
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -193142,6 +193142,12 @@ function castStringKey(name) {
|
|
|
193142
193142
|
var DEFAULT_CAPTION_DELIMITERS = { open: "[", close: "]" };
|
|
193143
193143
|
var DEFAULT_CAPTION_CHARACTER = "SFX";
|
|
193144
193144
|
|
|
193145
|
+
// ../core/src/noderefs.ts
|
|
193146
|
+
var VISIT_FN_RE = /\b(patter_visits|patter_seen|visits|seen)\s*\(\s*(?:(['"])(.*?)\2|([A-Za-z_]\w*))\s*\)/g;
|
|
193147
|
+
function humanizeNodeRefs(cond, label) {
|
|
193148
|
+
return cond.replace(VISIT_FN_RE, (_m, fn, _q, quoted, bare) => `${fn}(${label(quoted ?? bare ?? "")})`);
|
|
193149
|
+
}
|
|
193150
|
+
|
|
193145
193151
|
// ../core/src/serialize.ts
|
|
193146
193152
|
function canonicalStringify(value, opts) {
|
|
193147
193153
|
return write(value, "", opts?.trailingComma ?? true) + "\n";
|
|
@@ -198535,10 +198541,6 @@ function colourIndex(name) {
|
|
|
198535
198541
|
function characterColour(name) {
|
|
198536
198542
|
return CHAR_PALETTE[colourIndex(name)];
|
|
198537
198543
|
}
|
|
198538
|
-
var VISIT_FN_RE = /\b(patter_visits|patter_seen|visits|seen)\s*\(\s*(['"])(.*?)\2\s*\)/g;
|
|
198539
|
-
function humanizeCondition(cond, label) {
|
|
198540
|
-
return cond.replace(VISIT_FN_RE, (_m, fn, _q, id) => `${fn}(${label(id)})`);
|
|
198541
|
-
}
|
|
198542
198544
|
var MARKUP_RE = /<(b|i|bi)>([\s\S]*?)<\/\1>/g;
|
|
198543
198545
|
var INTERP_RE = /\{@[^}]*\}/g;
|
|
198544
198546
|
function textRuns(text) {
|
|
@@ -198613,7 +198615,7 @@ function runScriptDoc(loaded) {
|
|
|
198613
198615
|
blockName.set(block.id, block.name);
|
|
198614
198616
|
}
|
|
198615
198617
|
}
|
|
198616
|
-
const humanize = (cond) =>
|
|
198618
|
+
const humanize = (cond) => humanizeNodeRefs(cond, (id) => blockName.get(id) ?? sceneOf.get(id) ?? id);
|
|
198617
198619
|
const els = [];
|
|
198618
198620
|
const textOf = (id) => source2[id] ?? "";
|
|
198619
198621
|
const jumpText = (j) => {
|
|
@@ -240969,7 +240971,7 @@ function writeTextFiles(files, encoding = "utf8") {
|
|
|
240969
240971
|
// package.json
|
|
240970
240972
|
var package_default = {
|
|
240971
240973
|
name: "@patterkit/cli",
|
|
240972
|
-
version: "0.3.
|
|
240974
|
+
version: "0.3.8",
|
|
240973
240975
|
description: "The `patter` CLI: validate, format, export, and play a Patter project.",
|
|
240974
240976
|
type: "module",
|
|
240975
240977
|
license: "MIT",
|
|
@@ -240998,8 +241000,8 @@ var package_default = {
|
|
|
240998
241000
|
"build:standalone:others": "node scripts/build-standalone.mjs --targets=linux-x64,linux-arm64,windows-x64"
|
|
240999
241001
|
},
|
|
241000
241002
|
dependencies: {
|
|
241001
|
-
"@patterkit/core": "0.2.
|
|
241002
|
-
"@patterkit/ops": "0.7.
|
|
241003
|
+
"@patterkit/core": "0.2.4",
|
|
241004
|
+
"@patterkit/ops": "0.7.6",
|
|
241003
241005
|
"@wildwinter/simple-vc-lib": "^0.4.1"
|
|
241004
241006
|
}
|
|
241005
241007
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patterkit/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "The `patter` CLI: validate, format, export, and play a Patter project.",
|
|
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.2.
|
|
33
|
-
"@patterkit/ops": "0.7.
|
|
32
|
+
"@patterkit/core": "0.2.4",
|
|
33
|
+
"@patterkit/ops": "0.7.6",
|
|
34
34
|
"@wildwinter/simple-vc-lib": "^0.4.1"
|
|
35
35
|
}
|
|
36
36
|
}
|