@wix/himalaya-cli 0.1419.0 → 0.1420.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.
- package/dist/cli.mjs +34 -5
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -10097,7 +10097,9 @@ __export(validate_descriptor_core_exports, {
|
|
|
10097
10097
|
CORE_PACKAGES: () => CORE_PACKAGES,
|
|
10098
10098
|
CRAWL_BLOCKING_PASSES: () => CRAWL_BLOCKING_PASSES,
|
|
10099
10099
|
DESCRIPTOR_DEPTH_BUDGETS: () => DESCRIPTOR_DEPTH_BUDGETS,
|
|
10100
|
+
DEVICE_NETWORK_WITHHELD: () => DEVICE_NETWORK_WITHHELD,
|
|
10100
10101
|
DEVICE_PARITY_WITHHELD: () => DEVICE_PARITY_WITHHELD,
|
|
10102
|
+
DEVICE_WITHHELD: () => DEVICE_WITHHELD,
|
|
10101
10103
|
EMBEDDED_BINDING: () => EMBEDDED_BINDING,
|
|
10102
10104
|
INTEGER_MODIFIERS: () => INTEGER_MODIFIERS,
|
|
10103
10105
|
INTEGER_PROPS: () => INTEGER_PROPS,
|
|
@@ -10476,9 +10478,12 @@ async function bootBundleWorker(bundleJs, opts) {
|
|
|
10476
10478
|
}, info() {
|
|
10477
10479
|
}, debug() {
|
|
10478
10480
|
} },
|
|
10479
|
-
// A raw fetch is still a signal, not a silent hang (mirrors runBundleSandbox).
|
|
10480
|
-
|
|
10481
|
-
|
|
10481
|
+
// A raw fetch is still a signal, not a silent hang (mirrors runBundleSandbox). Under
|
|
10482
|
+
// deviceParity it is ABSENT instead, as on every device (#4499 — DEVICE_NETWORK_WITHHELD).
|
|
10483
|
+
...opts.deviceParity ? {} : {
|
|
10484
|
+
fetch: () => {
|
|
10485
|
+
throw new Error("`fetch` is not available \u2014 workers load data via the sanctioned Wix transport (`@himalaya/wix-*` or `globalThis.himalaya.wixApi.call`), not raw `fetch`.");
|
|
10486
|
+
}
|
|
10482
10487
|
},
|
|
10483
10488
|
// Under deviceParity these are ABSENT so a bundle touching one throws here exactly as it
|
|
10484
10489
|
// would on the FLOOR. Measured, not assumed (engine-parity runners, #1367): JSC and the
|
|
@@ -10525,7 +10530,7 @@ async function bootBundleWorker(bundleJs, opts) {
|
|
|
10525
10530
|
let guestActions;
|
|
10526
10531
|
let guestSession;
|
|
10527
10532
|
try {
|
|
10528
|
-
const hide = opts.deviceParity ?
|
|
10533
|
+
const hide = opts.deviceParity ? DEVICE_WITHHELD : void 0;
|
|
10529
10534
|
if (realm.runWithActions) {
|
|
10530
10535
|
const ran = await realm.runWithActions(bundleJs, sandbox, {
|
|
10531
10536
|
timeoutMs: 2e3 + budgetMs,
|
|
@@ -12468,7 +12473,7 @@ function validateScreenDescriptor(screenId, descriptor, opts = {}) {
|
|
|
12468
12473
|
services: Object.keys(services)
|
|
12469
12474
|
};
|
|
12470
12475
|
}
|
|
12471
|
-
var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, DRIFT_PROBES, DEVICE_PARITY_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, DESCRIPTOR_DEPTH_BUDGETS, UNSAFE_TO_RECURSE_DEPTH, ROW_TEMPLATE_HOST_TYPES, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, BUTTON_STYLES, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
|
|
12476
|
+
var CRAWL_BLOCKING_PASSES, BOOT_EVAL_TIMEOUT_MS, DRIFT_PROBES, DEVICE_PARITY_WITHHELD, DEVICE_NETWORK_WITHHELD, DEVICE_WITHHELD, defaultEvaluator, bootEvaluator, actionEvaluator, NATIVE_PROP_ENUMS, KNOWN_PROPS, IN_ARRAY_BINDING_PROPS, SERVICE_SIGIL, INTEGER_PROPS, NATIVE_REQUIRED_PROPS, bareNestedClass, NATIVE_NESTED_CLASSES, NATIVE_MODIFIERS_CLASS, NATIVE_DESCRIPTOR_CLASS, NATIVE_DESCRIPTOR_NESTED, NATIVE_NESTED_PROPS, LENIENT_TOP_BAR_BLOCKS, MODIFIER_KEYS, INTEGER_MODIFIERS, MODIFIER_KINDS, SCHEMA_SCORED_NODES, CORE_PACKAGES, LEGACY_UNSCORED_KEYS, DYNAMIC_PLACEHOLDER, LITERAL_ONLY_PROPS, SERVICE_ONLY_BINDING_PROPS, WHOLE_VALUE_BINDING, EMBEDDED_BINDING, OPTIONS_BINDING_PROPS, EDITOR_SERVICE_NAME, SHEET_PLACEMENTS, DESCRIPTOR_DEPTH_BUDGETS, UNSAFE_TO_RECURSE_DEPTH, ROW_TEMPLATE_HOST_TYPES, TOP_BAR_TRAILING_LIMIT, TOP_BAR_NON_TRAILING, BUTTON_STYLES, EMPTY_STATE_ACTION_STYLES, EMPTY_STATE_ACTION_SIZES;
|
|
12472
12477
|
var init_validate_descriptor_core = __esm({
|
|
12473
12478
|
"../../core/dev-server/src/validate-descriptor.core.ts"() {
|
|
12474
12479
|
init_validator();
|
|
@@ -12514,6 +12519,25 @@ var init_validate_descriptor_core = __esm({
|
|
|
12514
12519
|
"TextDecoder",
|
|
12515
12520
|
"AbortController"
|
|
12516
12521
|
];
|
|
12522
|
+
DEVICE_NETWORK_WITHHELD = [
|
|
12523
|
+
"fetch",
|
|
12524
|
+
"XMLHttpRequest",
|
|
12525
|
+
"WebSocket",
|
|
12526
|
+
"EventSource",
|
|
12527
|
+
"importScripts",
|
|
12528
|
+
"WebTransport",
|
|
12529
|
+
"RTCPeerConnection",
|
|
12530
|
+
"webkitRTCPeerConnection",
|
|
12531
|
+
"Worker",
|
|
12532
|
+
"SharedWorker",
|
|
12533
|
+
"Image",
|
|
12534
|
+
"Audio",
|
|
12535
|
+
"open",
|
|
12536
|
+
"Request",
|
|
12537
|
+
"Response",
|
|
12538
|
+
"Headers"
|
|
12539
|
+
];
|
|
12540
|
+
DEVICE_WITHHELD = [...DEVICE_NETWORK_WITHHELD, ...DEVICE_PARITY_WITHHELD];
|
|
12517
12541
|
defaultEvaluator = null;
|
|
12518
12542
|
bootEvaluator = null;
|
|
12519
12543
|
actionEvaluator = null;
|
|
@@ -13997,7 +14021,9 @@ __export(validate_descriptor_exports, {
|
|
|
13997
14021
|
CORE_PACKAGES: () => CORE_PACKAGES,
|
|
13998
14022
|
CRAWL_BLOCKING_PASSES: () => CRAWL_BLOCKING_PASSES,
|
|
13999
14023
|
DESCRIPTOR_DEPTH_BUDGETS: () => DESCRIPTOR_DEPTH_BUDGETS,
|
|
14024
|
+
DEVICE_NETWORK_WITHHELD: () => DEVICE_NETWORK_WITHHELD,
|
|
14000
14025
|
DEVICE_PARITY_WITHHELD: () => DEVICE_PARITY_WITHHELD,
|
|
14026
|
+
DEVICE_WITHHELD: () => DEVICE_WITHHELD,
|
|
14001
14027
|
EMBEDDED_BINDING: () => EMBEDDED_BINDING,
|
|
14002
14028
|
INTEGER_MODIFIERS: () => INTEGER_MODIFIERS,
|
|
14003
14029
|
INTEGER_PROPS: () => INTEGER_PROPS,
|
|
@@ -16200,6 +16226,9 @@ ${opts.liveTransport ? ` var handle = { getState: function () { return def
|
|
|
16200
16226
|
globalThis.fetch = function () {
|
|
16201
16227
|
throw new Error("\`fetch\` is not available in the author-time sandbox \u2014 workers load data via the sanctioned Wix transport (\`@himalaya/wix-*\` or \`globalThis.himalaya.wixApi.call\`), not raw \`fetch\`.");
|
|
16202
16228
|
};
|
|
16229
|
+
// ...unless \`hide\` withholds it (deviceParity, #4499): every device has NO \`fetch\`, so a
|
|
16230
|
+
// stub here would let a \`typeof fetch === "function"\` branch pass and fail on the device.
|
|
16231
|
+
${(opts.hide ?? []).includes("fetch") ? " delete globalThis.fetch;" : ""}
|
|
16203
16232
|
// Timers honour \`hide\`. Installing them unconditionally made \`deviceParity\` report
|
|
16204
16233
|
// \`typeof setTimeout === "function"\` where node:vm correctly reported "undefined" \u2014 a FALSE
|
|
16205
16234
|
// GREEN on exactly the floor gate this realm exists to enforce. The URL family is never
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1420.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": [
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"artifactId": "himalaya-cli"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"falconPackageHash": "
|
|
74
|
+
"falconPackageHash": "d2a780fce1a8d60a36a6f5cf4f8860d5d454764049e49a0fa39c2885"
|
|
75
75
|
}
|