@ubox-tools/deploy-xperience 1.1.13 → 1.1.14

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 (3) hide show
  1. package/README.md +1 -1
  2. package/deploy.js +3 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -110,7 +110,7 @@ Before injecting source files, `generateProxy()` applies three transforms to eac
110
110
 
111
111
  | Transform | Applies to | What it does |
112
112
  |---|---|---|
113
- | Parameter substitution | JS | Replaces `const KEY = <value>` with `const KEY = "{parameter:KEY}"` for every key in `parameters.json` (value may be a string, number, boolean, null, undefined, or template literal) |
113
+ | Parameter substitution | JS | Replaces `const KEY = "value"` with `const KEY = "{parameter:KEY}"` for every key in `parameters.json` |
114
114
  | Asset path substitution | JS, CSS | Replaces `../assets/file.ext` references with `{resources:type/file.ext}` tokens |
115
115
  | Emoji escaping | JS | Converts non-ASCII characters to `\uXXXX` Unicode escape sequences |
116
116
  | Local tag stripping | HTML | Removes local `<link href>` and `<script src>` tags (CDN URLs are kept) |
package/deploy.js CHANGED
@@ -271,12 +271,6 @@ function generateProxy(appName) {
271
271
  });
272
272
  }
273
273
 
274
- // 2b. Log substitution results
275
- if (isJS && Object.keys(params).length > 0) {
276
- const paramLines = content.split('\n').filter(l => Object.keys(params).some(k => l.includes(k)));
277
- console.log(` [proxy] ${file}:\n${paramLines.map(l => ' ' + l).join('\n')}`);
278
- }
279
-
280
274
  // 3. Emoji → unicode escapes (JS only)
281
275
  if (isJS) content = escapeEmojiInJS(content);
282
276
  }
@@ -725,7 +719,7 @@ async function deployApp(page, appName, projectName, { noAssets = false, noSourc
725
719
  // Extract app ID from current URL
726
720
  const appId = page.url().match(/#\/application(?:-source)?\/(\d+)/)?.[1] || '?';
727
721
  console.log(` [app] Done — ID: ${appId}`);
728
- return appId;
722
+ return { appId, params };
729
723
  }
730
724
 
731
725
  // ─── Phase 3: Ubox Deployment ─────────────────────────────────────────────────
@@ -1146,9 +1140,9 @@ async function main() {
1146
1140
  const appParamsMap = {};
1147
1141
  for (const appName of apps) {
1148
1142
  state[appName] = {};
1149
- const { params } = generateProxy(appName);
1143
+ const { appId, params } = await deployApp(page, appName, projectName, { noAssets, noSource });
1144
+ state[appName].appId = appId;
1150
1145
  appParamsMap[appName] = params;
1151
- state[appName].appId = await deployApp(page, appName, projectName, { noAssets, noSource });
1152
1146
  }
1153
1147
 
1154
1148
  // Phase 3 — Deploy Uboxes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubox-tools/deploy-xperience",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Deploy a Ubox experience to studio.ubox.world",
5
5
  "bin": { "deploy-xperience": "./deploy.js" },
6
6
  "dependencies": { "puppeteer": "*" },