@wix/himalaya-cli 0.1955.0 → 0.1956.0

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.mjs +18 -2
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -3964,6 +3964,7 @@ var init_himi_package = __esm({
3964
3964
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
3965
3965
  var init_icon_catalog_generated = __esm({
3966
3966
  "../../core/ts/src/icon-catalog.generated.ts"() {
3967
+ "use strict";
3967
3968
  init_define_HHP_CATALOG();
3968
3969
  ICON_VIEW_BOX = 24;
3969
3970
  ICON_STROKE_WIDTH = 2;
@@ -208835,8 +208836,20 @@ function applyEdits(source2, edits) {
208835
208836
  return out2;
208836
208837
  }
208837
208838
  function parse3(fileName, source2) {
208839
+ parseStats.calls++;
208840
+ const key4 = `${fileName}\0${source2}`;
208841
+ if (parseMemo.has(key4)) {
208842
+ const hit = parseMemo.get(key4);
208843
+ parseMemo.delete(key4);
208844
+ parseMemo.set(key4, hit);
208845
+ return hit;
208846
+ }
208847
+ parseStats.runs++;
208838
208848
  const file2 = ts27.createSourceFile(fileName, source2, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS);
208839
- return file2.parseDiagnostics.length ? void 0 : file2;
208849
+ const result = file2.parseDiagnostics.length ? void 0 : file2;
208850
+ parseMemo.set(key4, result);
208851
+ while (parseMemo.size > PARSE_MEMO_ENTRIES) parseMemo.delete(parseMemo.keys().next().value);
208852
+ return result;
208840
208853
  }
208841
208854
  function screensObject(file2) {
208842
208855
  for (const statement of file2.statements) {
@@ -209256,7 +209269,7 @@ function renderGateTable(gates) {
209256
209269
  ""
209257
209270
  ].join("\n");
209258
209271
  }
209259
- var obj15, text9, strings, mayHide, STOCK_COPY, node, SIGN_IN_SCREEN, CHAT_SCREEN, PLANS_SCREEN, slotPrefix, accessStatePath, accessRowHiddenPath, accessHiddenPath, slice, stringValue2, objectValue, PAYLOAD_KEYS, indented, LOGIN_HELPER, LOGIN_GATE_SCREEN, sameStatement, loginHelperSource, NEW_APP_NOT_LITERAL, NEW_APP_REASON;
209272
+ var obj15, text9, strings, mayHide, STOCK_COPY, node, SIGN_IN_SCREEN, CHAT_SCREEN, PLANS_SCREEN, slotPrefix, accessStatePath, accessRowHiddenPath, accessHiddenPath, PARSE_MEMO_ENTRIES, parseMemo, parseStats, slice, stringValue2, objectValue, PAYLOAD_KEYS, indented, LOGIN_HELPER, LOGIN_GATE_SCREEN, sameStatement, loginHelperSource, NEW_APP_NOT_LITERAL, NEW_APP_REASON;
209260
209273
  var init_access = __esm({
209261
209274
  "src/one-app/access.ts"() {
209262
209275
  init_define_HHP_CATALOG();
@@ -209285,6 +209298,9 @@ var init_access = __esm({
209285
209298
  accessStatePath = (gate) => `$app:${NAV_SERVICE}.accessState.${gate.key}`;
209286
209299
  accessRowHiddenPath = (gate) => `$app:${NAV_SERVICE}.accessHidden.${gate.key}`;
209287
209300
  accessHiddenPath = (gate) => `$service:${NAV_SERVICE}.accessHidden.${gate.key}`;
209301
+ PARSE_MEMO_ENTRIES = 3;
209302
+ parseMemo = /* @__PURE__ */ new Map();
209303
+ parseStats = { calls: 0, runs: 0 };
209288
209304
  slice = (source2, node4) => source2.slice(node4.getStart(), node4.getEnd());
209289
209305
  stringValue2 = (node4) => node4 && (ts27.isStringLiteral(node4) || ts27.isNoSubstitutionTemplateLiteral(node4)) ? node4.text : void 0;
209290
209306
  objectValue = (property3) => property3 && ts27.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1955.0",
3
+ "version": "0.1956.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "6dd1e44840cda11c3b7c4f49a2efa32694b76ea7c361318ad7b07455"
85
+ "falconPackageHash": "912a8d6ba71e96c41f1915484939dbe648e5f05f24691904ccc92daa"
86
86
  }