@wix/himalaya-cli 0.1963.0 → 0.1964.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 +133 -57
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -24998,20 +24998,35 @@ async function bootBundleWorker(bundleJs, opts) {
|
|
|
24998
24998
|
}
|
|
24999
24999
|
};
|
|
25000
25000
|
const clone = (v2) => JSON.parse(serialize2(v2));
|
|
25001
|
-
const findNonFinite = (
|
|
25002
|
-
|
|
25003
|
-
|
|
25004
|
-
|
|
25005
|
-
|
|
25006
|
-
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
|
|
25010
|
-
|
|
25011
|
-
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25001
|
+
const findNonFinite = (root, out2, seen) => {
|
|
25002
|
+
const path2 = [];
|
|
25003
|
+
const spell = () => {
|
|
25004
|
+
let at2 = "";
|
|
25005
|
+
for (const seg2 of path2) at2 = typeof seg2 === "number" ? `${at2}[${seg2}]` : at2 ? `${at2}.${seg2}` : seg2;
|
|
25006
|
+
return at2;
|
|
25007
|
+
};
|
|
25008
|
+
const walk6 = (v2) => {
|
|
25009
|
+
if (typeof v2 === "number") {
|
|
25010
|
+
if (!Number.isFinite(v2)) out2.push(`${spell() || "(root)"} = ${String(v2)}`);
|
|
25011
|
+
return;
|
|
25012
|
+
}
|
|
25013
|
+
if (!v2 || typeof v2 !== "object" || seen.has(v2)) return;
|
|
25014
|
+
seen.add(v2);
|
|
25015
|
+
if (Array.isArray(v2)) {
|
|
25016
|
+
v2.forEach((x2, i2) => {
|
|
25017
|
+
path2.push(i2);
|
|
25018
|
+
walk6(x2);
|
|
25019
|
+
path2.pop();
|
|
25020
|
+
});
|
|
25021
|
+
return;
|
|
25022
|
+
}
|
|
25023
|
+
for (const [k3, val] of Object.entries(v2)) {
|
|
25024
|
+
path2.push(k3);
|
|
25025
|
+
walk6(val);
|
|
25026
|
+
path2.pop();
|
|
25027
|
+
}
|
|
25028
|
+
};
|
|
25029
|
+
walk6(root);
|
|
25015
25030
|
};
|
|
25016
25031
|
const applyResult = (def2, next) => {
|
|
25017
25032
|
if (!next || typeof next !== "object" || Array.isArray(next)) return;
|
|
@@ -25166,7 +25181,7 @@ async function bootBundleWorker(bundleJs, opts) {
|
|
|
25166
25181
|
getStateJson: () => serialize2(def2.state),
|
|
25167
25182
|
stateDefects: () => {
|
|
25168
25183
|
const out2 = [];
|
|
25169
|
-
findNonFinite(def2.state,
|
|
25184
|
+
findNonFinite(def2.state, out2, /* @__PURE__ */ new Set());
|
|
25170
25185
|
return out2;
|
|
25171
25186
|
},
|
|
25172
25187
|
actionNames: () => Object.keys(def2.actions ?? {}),
|
|
@@ -32477,6 +32492,7 @@ __export(validate_descriptor_exports, {
|
|
|
32477
32492
|
nativeRequiredFindings: () => nativeRequiredFindings,
|
|
32478
32493
|
navLogicBundleUrl: () => navLogicBundleUrl,
|
|
32479
32494
|
nodeVmEvaluator: () => nodeVmEvaluator,
|
|
32495
|
+
nodeVmScriptCompiles: () => nodeVmScriptCompiles,
|
|
32480
32496
|
nondeterministicServices: () => nondeterministicServices,
|
|
32481
32497
|
nondeterministicServicesOrNull: () => nondeterministicServicesOrNull,
|
|
32482
32498
|
pathCrossesOpaqueAuthorJson: () => pathCrossesOpaqueAuthorJson,
|
|
@@ -32512,8 +32528,29 @@ __export(validate_descriptor_exports, {
|
|
|
32512
32528
|
});
|
|
32513
32529
|
import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15, statSync as statSync6 } from "node:fs";
|
|
32514
32530
|
import { resolve as resolve20 } from "node:path";
|
|
32515
|
-
import { createContext,
|
|
32531
|
+
import { createContext, Script } from "node:vm";
|
|
32516
32532
|
import { createRequire } from "node:module";
|
|
32533
|
+
function nodeVmScriptCompiles() {
|
|
32534
|
+
return scriptCompiles;
|
|
32535
|
+
}
|
|
32536
|
+
function compiledScript(code3, filename) {
|
|
32537
|
+
const key4 = filename ?? "";
|
|
32538
|
+
let byName3 = compiledScripts.get(code3);
|
|
32539
|
+
let script2 = byName3?.get(key4);
|
|
32540
|
+
if (!script2) {
|
|
32541
|
+
script2 = new Script(code3, filename === void 0 ? {} : { filename });
|
|
32542
|
+
scriptCompiles += 1;
|
|
32543
|
+
}
|
|
32544
|
+
if (byName3) compiledScripts.delete(code3);
|
|
32545
|
+
else {
|
|
32546
|
+
if (compiledScripts.size >= COMPILED_SCRIPT_ENTRIES) compiledScripts.delete(compiledScripts.keys().next().value);
|
|
32547
|
+
byName3 = /* @__PURE__ */ new Map();
|
|
32548
|
+
}
|
|
32549
|
+
if (!byName3.has(key4) && byName3.size >= COMPILED_SCRIPT_NAMES) byName3.clear();
|
|
32550
|
+
byName3.set(key4, script2);
|
|
32551
|
+
compiledScripts.set(code3, byName3);
|
|
32552
|
+
return script2;
|
|
32553
|
+
}
|
|
32517
32554
|
async function loadAllowedComponents(appDir3) {
|
|
32518
32555
|
const modPath = resolve20(appDir3, "components.ts");
|
|
32519
32556
|
if (!existsSync20(modPath)) return void 0;
|
|
@@ -32642,7 +32679,7 @@ function discoverNativeActions(appDir3) {
|
|
|
32642
32679
|
searched: roots2.map(({ searched }) => searched)
|
|
32643
32680
|
};
|
|
32644
32681
|
}
|
|
32645
|
-
var navigationCompiler, nodeVmEvaluator, navContractMemo, appServicesContextMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
|
|
32682
|
+
var navigationCompiler, COMPILED_SCRIPT_ENTRIES, COMPILED_SCRIPT_NAMES, compiledScripts, scriptCompiles, nodeVmEvaluator, navContractMemo, appServicesContextMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
|
|
32646
32683
|
var init_validate_descriptor = __esm({
|
|
32647
32684
|
"../../core/dev-server/src/validate-descriptor.ts"() {
|
|
32648
32685
|
init_define_HHP_CATALOG();
|
|
@@ -32657,20 +32694,24 @@ var init_validate_descriptor = __esm({
|
|
|
32657
32694
|
navigationCompiler = createRequire(import.meta.url);
|
|
32658
32695
|
setDeclaredNavigationAnalyzer((source2) => literalTargets(source2, navigationCompiler("typescript")));
|
|
32659
32696
|
setFixedNavigationAnalyzer((source2) => fixedNavigations(source2, navigationCompiler("typescript")));
|
|
32697
|
+
COMPILED_SCRIPT_ENTRIES = 8;
|
|
32698
|
+
COMPILED_SCRIPT_NAMES = 4;
|
|
32699
|
+
compiledScripts = /* @__PURE__ */ new Map();
|
|
32700
|
+
scriptCompiles = 0;
|
|
32660
32701
|
nodeVmEvaluator = {
|
|
32661
32702
|
evaluatesSandboxDirectly: true,
|
|
32662
32703
|
run(code3, sandbox, opts) {
|
|
32663
32704
|
const context = createContext(sandbox);
|
|
32664
32705
|
if (opts.deviceParity) {
|
|
32665
|
-
|
|
32706
|
+
compiledScript(allowlistSweepSource(Object.keys(sandbox)), "himi-sweep.js").runInContext(context);
|
|
32666
32707
|
}
|
|
32667
32708
|
const pins = pinnedIntrinsicsSource(opts);
|
|
32668
32709
|
if (pins) {
|
|
32669
|
-
const pinned =
|
|
32710
|
+
const pinned = compiledScript(`(${pins})(Date, Math)`, "himi-pins.js").runInContext(context, { timeout: opts.timeoutMs });
|
|
32670
32711
|
if (pinned.Date) sandbox.Date = pinned.Date;
|
|
32671
32712
|
if (pinned.Math) sandbox.Math = pinned.Math;
|
|
32672
32713
|
}
|
|
32673
|
-
|
|
32714
|
+
compiledScript(code3, opts.filename).runInContext(context, { timeout: opts.timeoutMs });
|
|
32674
32715
|
}
|
|
32675
32716
|
};
|
|
32676
32717
|
setDefaultEvaluator(nodeVmEvaluator);
|
|
@@ -97001,7 +97042,7 @@ async function incrementalUpdate({ originalData: e2, xrefInfo: t2, changes: n2,
|
|
|
97001
97042
|
for (const e3 of m2) j2 = writeString(e3, j2, w2);
|
|
97002
97043
|
return w2;
|
|
97003
97044
|
}
|
|
97004
|
-
var e, t, n, a, r, s, i, o, l2, f, c, h, u, m, p, d, g, b2, w, j, k, y, q, v, S, x, C, T, O, R, D, H, M, N, _, E, z, L, U, W, X, K2, G, V2, $, Y, J, Q, Z, ee, te, ne, ae, re, se, ie, oe, le, fe, ce, he, ue, me, pe, de, ge, be, we, je, ke, ye, qe, ve, Se, Ae, xe, Ce, Ie, Fe, Te, Oe, Re, Be, De, He, Me, Ne, Pe, _e, Ee, ze, Le, Ue, We, Xe, Ke, Ge, Ve, $e, Ye, Je, Qe, Ze, et, tt, nt, rt, st, it, ot, lt, ft, ct, ht, ut, mt, pt, dt, gt, bt, wt, jt, kt, yt, qt, vt, St, At, xt, Ct, It, Ft, Tt, Ot, Rt, Bt, Dt, Ht, Mt, Nt, Pt, _t, Et, zt, Lt, Ut, Wt, Xt, Kt, Gt, Vt, $t, Yt, Jt, Qt, Zt, en, tn, nn, an, rn, sn, on, ln, PasswordException2, UnknownErrorException2, InvalidPDFException2, ResponseException2, FormatError2, AbortException2, FeatureTest2, Util2, fn, cn, makeArr2, makeMap2, makeObj2, makeSet2, hn, un, mn, pn, dn, Name, Cmd, nonSerializable, Dict, Ref, RefSet, RefMap, BaseStream, gn, bn, wn, jn, kn, yn, qn, vn, MissingDataException, ParserEOFException, XRefEntryException, XRefParseException, Sn, An, xn, Cn, QCMS, In, Fn, Tn, On, Rn, Bn, Dn, Hn, Mn, Nn, ColorSpace, AlternateCS, PatternCS, IndexedCS, DeviceGrayCS, DeviceRgbCS, DeviceRgbaCS, DeviceCmykCS, CalGrayCS, CalRGBCS, LabCS, IccColorSpace, CmykICCBasedCS, Stream, StringStream, NullStream, ChunkedStream, ChunkedStreamManager, ImageResizer, Pn, DecodeStream, StreamsSequenceStream, ColorSpaceUtils, JpegError, DNLMarkerError, EOIMarkerError, _n, En, zn, Ln, Un, Wn, Xn, Kn, Gn, JpegImage, JpegStream, Vn, NullOptimizer, QueueOptimizer, OperatorList, CheckedOperatorList, $n, Yn, Jn, Qn, Zn, ea, ta, Pattern, BaseShading, RadialAxialShading, FunctionBasedShading, MeshStreamReader, na, MeshShading, DummyShading, aa, BinaryCMapStream, BinaryCMapReader, Ascii85Stream, AsciiHexStream, ra, BrotliStream, sa, WasmImage, Jbig2Error, JBig2CCITTFaxImage, CCITTFaxStream, ia, oa, la, fa, ca, FlateStream, Jbig2Stream, ha, JpxError, JpxImage, JpxStream, LZWStream, PredictorStream, RunLengthStream, Parser, ua, Lexer, Linearization, ma, pa, CMap, IdentityCMap, CMapFactory, da, ga, ba, wa, ja, ka, ya, qa, va, Sa, Aa, xa, Ca, Ia, Fa, Ta, Oa, Ra, Ba, Da, Ha, Ma, DataBuilder, Na, Pa, _a2, Ea, za, CFFParser, CFF, CFFHeader, CFFStrings, CFFIndex, CFFDict, La, CFFTopDict, Ua, CFFPrivateDict, Wa, CFFCharset, CFFEncoding, CFFFDSelect, CFFOffsetTracker, CFFCompiler, Xa, Ka, Ga, Va, $a, Ya, Ja, Qa, Za, er, tr, nr, GlyfTable, Glyph2, GlyphHeader, Contour, SimpleGlyph, CompositeGlyph, ToUnicodeMap, IdentityToUnicodeMap, CFFFont, CSS_FONT_INFO2, SYSTEM_FONT_INFO2, FONT_INFO2, PATTERN_INFO2, InfoUtils2, Commands, CompiledFont, TrueTypeCompiled, Type2Compiled, FontRendererFactory, ar, rr, OpenTypeFileBuilder, sr, ir, or, lr, fr, cr, hr, ur, mr, pr, dr, Type1CharString, Type1Parser, Type1Font, gr, br, wr, jr, fonts_Glyph, kr, Font, ErrorFont, yr, qr, vr, Sr, Ar, xr, Cr, Ir, Fr, Tr, Or, Rr, Dr, Hr, Mr, Nr, Pr, _r, Er, zr, Lr, Ur, Wr, Xr, Kr, Gr, Vr, $r, Yr, Jr, Qr, Zr, es, ts8, ns, as, rs, ss, is, os, ls, fs, Token, lexer_Lexer, cs, hs, us, ms, ps, ds, gs, bs, ws, js, ks, ys, qs, vs, PsNode, PsProgram, PsBlock, PsNumber, PsOperator, PsIf, PsIfElse, PsArgNode, PsConstNode, PsUnaryNode, PsBinaryNode, PsTernaryNode, ast_Parser, Ss, PSStackToTree, As, xs, Cs, Is, Fs, Ts, Os, Rs, Bs, Ds, Hs, Ms, Ns, _s, Es, zs, Ls, Us, Ws, Xs, Ks, Gs, Vs, $s, Ys, Js, Qs, Zs, ei, ti, ni, ai, ri, si, ii, oi, li, fi, ci, hi, ui, mi, pi, PsJsCompiler, PSStackBasedInterpreter, di, gi, bi, wi, ji, ki, yi, qi, vi, Si, PsWasmCompiler, BaseLocalCache, LocalImageCache, LocalColorSpaceCache, LocalFunctionCache, LocalGStateCache, LocalTilingPatternCache, RegionalImageCache, GlobalColorSpaceCache, GlobalImageCache, Ai, xi, Ci, Ii, PDFFunctionFactory, PDFFunction, Fi, Ti, Oi, Ri, Bi, Di, Hi, Mi, Ni, Pi, _i, Ei, zi, Wi, MurmurHash3_642, PDFImage, Xi, Ki, Gi, Vi, TimeSlotManager, PartialEvaluator, TranslatedFont, StateManager, TextState, EvalState, EvaluatorPreprocessor, DefaultAppearanceEvaluator, AppearanceStreamEvaluator, FakeUnicodeFont, $i, Yi, NameOrNumberTree, NameTree, NumberTree, FileSpec, Ji, Qi, Zi, eo, to, no, ao, XMLParserBase, SimpleDOMNode, SimpleXMLParser, MetadataParser, ro, so, io, oo, lo, fo, StructTreeRoot, StructElementNode, StructElement, StructTreePage, co, Catalog, ObjectLoader, ho, uo, mo, po, go, bo, wo, jo, ko, yo, qo, vo, So, Ao, xo, Co, Io, Fo, Oo, Ro, Bo, Do, Ho, Mo, No, Po, _o, Eo, zo, Lo, Uo, Wo, Xo, Ko, Go, Vo, $o, Yo, Jo, Qo, Zo, el, tl, nl, al, rl, sl, il, ol, ll, fl, cl, hl, ul, ml, pl, dl, gl, bl, wl, jl, kl, yl, ql, vl, Sl, Al, xl, Cl, Il, Fl, Tl, HTMLResult, FontFinder, FontInfo2, FontSelector, TextMeasure, Rl, Bl, Dl, Hl, Ml, Nl, Pl, _l, El, zl, Ll, Wl, Xl, Kl, Gl, Vl, $l, Yl, Jl, Ql, Zl, ef, tf, nf, af, rf, sf, of, XFAObject, XFAObjectArray, XFAAttribute, XmlObject, ContentObject, OptionObject, StringObject, IntegerObject, Option01, Option10, lf, ff, cf, hf, uf, AppearanceFilter, Arc, Area, Assist, Barcode, Bind, BindItems, Bookend, BooleanElement, Border, Break, BreakAfter, BreakBefore, Button, Calculate, Caption, Certificate, Certificates, CheckButton, ChoiceList, Color, Comb, Connect, ContentArea, Corner, DateElement, DateTime, DateTimeEdit, Decimal, DefaultUi, Desc, DigestMethod, DigestMethods, Draw, Edge, Encoding, Encodings, Encrypt, EncryptData, Encryption, EncryptionMethod, EncryptionMethods, Event2, ExData, ExObject, ExclGroup, Execute, Extras, Field, Fill, Filter, Float, template_Font, Format, Handler, Hyphenation, Image2, ImageEdit, Integer, Issuers, Items, Keep, KeyUsage, Line, Linear, LockDocument, Manifest, Margin, Mdp, Medium, Message, NumericEdit, Occur, Oid, Oids, Overflow, PageArea, PageSet, Para, PasswordEdit, template_Pattern, Picture, Proto, Radial, Reason, Reasons, Rectangle, RefElement,
|
|
97045
|
+
var e, t, n, a, r, s, i, o, l2, f, c, h, u, m, p, d, g, b2, w, j, k, y, q, v, S, x, C, T, O, R, D, H, M, N, _, E, z, L, U, W, X, K2, G, V2, $, Y, J, Q, Z, ee, te, ne, ae, re, se, ie, oe, le, fe, ce, he, ue, me, pe, de, ge, be, we, je, ke, ye, qe, ve, Se, Ae, xe, Ce, Ie, Fe, Te, Oe, Re, Be, De, He, Me, Ne, Pe, _e, Ee, ze, Le, Ue, We, Xe, Ke, Ge, Ve, $e, Ye, Je, Qe, Ze, et, tt, nt, rt, st, it, ot, lt, ft, ct, ht, ut, mt, pt, dt, gt, bt, wt, jt, kt, yt, qt, vt, St, At, xt, Ct, It, Ft, Tt, Ot, Rt, Bt, Dt, Ht, Mt, Nt, Pt, _t, Et, zt, Lt, Ut, Wt, Xt, Kt, Gt, Vt, $t, Yt, Jt, Qt, Zt, en, tn, nn, an, rn, sn, on, ln, PasswordException2, UnknownErrorException2, InvalidPDFException2, ResponseException2, FormatError2, AbortException2, FeatureTest2, Util2, fn, cn, makeArr2, makeMap2, makeObj2, makeSet2, hn, un, mn, pn, dn, Name, Cmd, nonSerializable, Dict, Ref, RefSet, RefMap, BaseStream, gn, bn, wn, jn, kn, yn, qn, vn, MissingDataException, ParserEOFException, XRefEntryException, XRefParseException, Sn, An, xn, Cn, QCMS, In, Fn, Tn, On, Rn, Bn, Dn, Hn, Mn, Nn, ColorSpace, AlternateCS, PatternCS, IndexedCS, DeviceGrayCS, DeviceRgbCS, DeviceRgbaCS, DeviceCmykCS, CalGrayCS, CalRGBCS, LabCS, IccColorSpace, CmykICCBasedCS, Stream, StringStream, NullStream, ChunkedStream, ChunkedStreamManager, ImageResizer, Pn, DecodeStream, StreamsSequenceStream, ColorSpaceUtils, JpegError, DNLMarkerError, EOIMarkerError, _n, En, zn, Ln, Un, Wn, Xn, Kn, Gn, JpegImage, JpegStream, Vn, NullOptimizer, QueueOptimizer, OperatorList, CheckedOperatorList, $n, Yn, Jn, Qn, Zn, ea, ta, Pattern, BaseShading, RadialAxialShading, FunctionBasedShading, MeshStreamReader, na, MeshShading, DummyShading, aa, BinaryCMapStream, BinaryCMapReader, Ascii85Stream, AsciiHexStream, ra, BrotliStream, sa, WasmImage, Jbig2Error, JBig2CCITTFaxImage, CCITTFaxStream, ia, oa, la, fa, ca, FlateStream, Jbig2Stream, ha, JpxError, JpxImage, JpxStream, LZWStream, PredictorStream, RunLengthStream, Parser, ua, Lexer, Linearization, ma, pa, CMap, IdentityCMap, CMapFactory, da, ga, ba, wa, ja, ka, ya, qa, va, Sa, Aa, xa, Ca, Ia, Fa, Ta, Oa, Ra, Ba, Da, Ha, Ma, DataBuilder, Na, Pa, _a2, Ea, za, CFFParser, CFF, CFFHeader, CFFStrings, CFFIndex, CFFDict, La, CFFTopDict, Ua, CFFPrivateDict, Wa, CFFCharset, CFFEncoding, CFFFDSelect, CFFOffsetTracker, CFFCompiler, Xa, Ka, Ga, Va, $a, Ya, Ja, Qa, Za, er, tr, nr, GlyfTable, Glyph2, GlyphHeader, Contour, SimpleGlyph, CompositeGlyph, ToUnicodeMap, IdentityToUnicodeMap, CFFFont, CSS_FONT_INFO2, SYSTEM_FONT_INFO2, FONT_INFO2, PATTERN_INFO2, InfoUtils2, Commands, CompiledFont, TrueTypeCompiled, Type2Compiled, FontRendererFactory, ar, rr, OpenTypeFileBuilder, sr, ir, or, lr, fr, cr, hr, ur, mr, pr, dr, Type1CharString, Type1Parser, Type1Font, gr, br, wr, jr, fonts_Glyph, kr, Font, ErrorFont, yr, qr, vr, Sr, Ar, xr, Cr, Ir, Fr, Tr, Or, Rr, Dr, Hr, Mr, Nr, Pr, _r, Er, zr, Lr, Ur, Wr, Xr, Kr, Gr, Vr, $r, Yr, Jr, Qr, Zr, es, ts8, ns, as, rs, ss, is, os, ls, fs, Token, lexer_Lexer, cs, hs, us, ms, ps, ds, gs, bs, ws, js, ks, ys, qs, vs, PsNode, PsProgram, PsBlock, PsNumber, PsOperator, PsIf, PsIfElse, PsArgNode, PsConstNode, PsUnaryNode, PsBinaryNode, PsTernaryNode, ast_Parser, Ss, PSStackToTree, As, xs, Cs, Is, Fs, Ts, Os, Rs, Bs, Ds, Hs, Ms, Ns, _s, Es, zs, Ls, Us, Ws, Xs, Ks, Gs, Vs, $s, Ys, Js, Qs, Zs, ei, ti, ni, ai, ri, si, ii, oi, li, fi, ci, hi, ui, mi, pi, PsJsCompiler, PSStackBasedInterpreter, di, gi, bi, wi, ji, ki, yi, qi, vi, Si, PsWasmCompiler, BaseLocalCache, LocalImageCache, LocalColorSpaceCache, LocalFunctionCache, LocalGStateCache, LocalTilingPatternCache, RegionalImageCache, GlobalColorSpaceCache, GlobalImageCache, Ai, xi, Ci, Ii, PDFFunctionFactory, PDFFunction, Fi, Ti, Oi, Ri, Bi, Di, Hi, Mi, Ni, Pi, _i, Ei, zi, Wi, MurmurHash3_642, PDFImage, Xi, Ki, Gi, Vi, TimeSlotManager, PartialEvaluator, TranslatedFont, StateManager, TextState, EvalState, EvaluatorPreprocessor, DefaultAppearanceEvaluator, AppearanceStreamEvaluator, FakeUnicodeFont, $i, Yi, NameOrNumberTree, NameTree, NumberTree, FileSpec, Ji, Qi, Zi, eo, to, no, ao, XMLParserBase, SimpleDOMNode, SimpleXMLParser, MetadataParser, ro, so, io, oo, lo, fo, StructTreeRoot, StructElementNode, StructElement, StructTreePage, co, Catalog, ObjectLoader, ho, uo, mo, po, go, bo, wo, jo, ko, yo, qo, vo, So, Ao, xo, Co, Io, Fo, Oo, Ro, Bo, Do, Ho, Mo, No, Po, _o, Eo, zo, Lo, Uo, Wo, Xo, Ko, Go, Vo, $o, Yo, Jo, Qo, Zo, el, tl, nl, al, rl, sl, il, ol, ll, fl, cl, hl, ul, ml, pl, dl, gl, bl, wl, jl, kl, yl, ql, vl, Sl, Al, xl, Cl, Il, Fl, Tl, HTMLResult, FontFinder, FontInfo2, FontSelector, TextMeasure, Rl, Bl, Dl, Hl, Ml, Nl, Pl, _l, El, zl, Ll, Wl, Xl, Kl, Gl, Vl, $l, Yl, Jl, Ql, Zl, ef, tf, nf, af, rf, sf, of, XFAObject, XFAObjectArray, XFAAttribute, XmlObject, ContentObject, OptionObject, StringObject, IntegerObject, Option01, Option10, lf, ff, cf, hf, uf, AppearanceFilter, Arc, Area, Assist, Barcode, Bind, BindItems, Bookend, BooleanElement, Border, Break, BreakAfter, BreakBefore, Button, Calculate, Caption, Certificate, Certificates, CheckButton, ChoiceList, Color, Comb, Connect, ContentArea, Corner, DateElement, DateTime, DateTimeEdit, Decimal, DefaultUi, Desc, DigestMethod, DigestMethods, Draw, Edge, Encoding, Encodings, Encrypt, EncryptData, Encryption, EncryptionMethod, EncryptionMethods, Event2, ExData, ExObject, ExclGroup, Execute, Extras, Field, Fill, Filter, Float, template_Font, Format, Handler, Hyphenation, Image2, ImageEdit, Integer, Issuers, Items, Keep, KeyUsage, Line, Linear, LockDocument, Manifest, Margin, Mdp, Medium, Message, NumericEdit, Occur, Oid, Oids, Overflow, PageArea, PageSet, Para, PasswordEdit, template_Pattern, Picture, Proto, Radial, Reason, Reasons, Rectangle, RefElement, Script2, SetProperty, SignData, Signature, Signing, Solid, Speak, Stipple, Subform, SubformSet, SubjectDN, SubjectDNs, Submit, Template, Text, TextEdit, Time, TimeStamp, ToolTip, Traversal, Traverse, Ui, Validate, Value, Variables, TemplateNamespace, mf, Binder, DataHandler, pf, Acrobat, Acrobat7, ADBE_JSConsole, ADBE_JSDebugger, AddSilentPrint, AddViewerPreferences, AdjustData, AdobeExtensionLevel, Agent, AlwaysEmbed, Amd, config_Area, Attributes, AutoSave, Base, BatchOutput, BehaviorOverride, Cache, Change, Common, Compress, CompressLogicalStructure, CompressObjectStream, Compression, Config, Conformance, ContentCopy, Copies, Creator, CurrentPage, Data, Debug, DefaultTypeface, Destination, DocumentAssembly, Driver, DuplexOption, DynamicRender, Embed, config_Encrypt, config_Encryption, EncryptionLevel, Enforce, Equate, EquateRange, Exclude, ExcludeNS, FlipLabel, config_FontInfo, FormFieldFilling, GroupParent, IfEmpty, IncludeXDPContent, IncrementalLoad, IncrementalMerge, Interactive, Jog, LabelPrinter, Layout, Level, Linearized, Locale, LocaleSet, Log, MapElement, MediumInfo, config_Message, Messaging, Mode, ModifyAnnots, MsgId, NameAttr, NeverEmbed, NumberOfCopies, OpenAction, Output, OutputBin, OutputXSL, Overprint, Packets, PageOffset, PageRange, Pagination, PaginationOverride, Part, Pcl, Pdf, Pdfa, Permissions, PickTrayByPDFSize, config_Picture, PlaintextMetadata, Presence, Present, Print, PrintHighQuality, PrintScaling, PrinterName, Producer, Ps, Range2, Record, Relevant, Rename, RenderPolicy, RunScripts, config_Script, ScriptModel, Severity, SilentPrint, Staple, StartNode, StartPage, SubmitFormat, SubmitUrl, SubsetBelow, SuppressBanner, Tagged, config_Template, Threshold, To, TemplateCache, Trace, Transform, Type, Uri, config_Validate, ValidateApprovalSignatures, ValidationMessaging, Version, VersionControl, ViewerPreferences, WebClient, Whitespace, Window, Xdc, Xdp, Xsl, Zpl, ConfigNamespace, df, ConnectionSet, EffectiveInputPolicy, EffectiveOutputPolicy, Operation, RootElement, SoapAction, SoapAddress, connection_set_Uri, WsdlAddress, WsdlConnection, XmlConnection, XsdConnection, ConnectionSetNamespace, gf, datasets_Data, Datasets, DatasetsNamespace, bf, CalendarSymbols, CurrencySymbol, CurrencySymbols, DatePattern, DatePatterns, DateTimeSymbols, Day, DayNames, Era, EraNames, locale_set_Locale, locale_set_LocaleSet, Meridiem, MeridiemNames, Month, MonthNames, NumberPattern, NumberPatterns, NumberSymbol, NumberSymbols, TimePattern, TimePatterns, TypeFace, TypeFaces, LocaleSetNamespace, wf, signature_Signature, SignatureNamespace, jf, Stylesheet, StylesheetNamespace, kf, xdp_Xdp, XdpNamespace, yf, qf, vf, Sf, Af, xf, Cf, If, XhtmlObject, A, B, Body, Br, Html, I, Li, Ol, P, Span, Sub, Sup, Ul, XhtmlNamespace, Ff, UnknownNamespace, Root, Empty, Builder, XFAParser, XFAFactory, AnnotationFactory, Annotation, AnnotationBorderStyle, MarkupAnnotation, WidgetAnnotation, TextWidgetAnnotation, ButtonWidgetAnnotation, ChoiceWidgetAnnotation, SignatureWidgetAnnotation, TextAnnotation, LinkAnnotation, PopupAnnotation, FreeTextAnnotation, LineAnnotation, SquareAnnotation, CircleAnnotation, PolylineAnnotation, PolygonAnnotation, CaretAnnotation, InkAnnotation, HighlightAnnotation, UnderlineAnnotation, SquigglyAnnotation, StrikeOutAnnotation, StampAnnotation, FileAttachmentAnnotation, MediaAnnotation, RichMediaAnnotation, ScreenAnnotation, SoundAnnotation, Tf, DatasetXMLParser, DatasetReader, SingleIntersector, Of, Intersector, Word64, Rf, Bf, DecryptStream, Df, Hf, ARCFourCipher, NullCipher, AESBaseCipher, AES128Cipher, AES256Cipher, PDFBase, PDF17, PDF20, CipherTransform, CipherTransformFactory, XRef, Mf, Page, Nf, Pf, _f, PDFDocument, BasePdfManager, LocalPdfManager, NetworkPdfManager, Ef, zf, Lf, Uf, Wf, Xf, Kf, Gf, Vf, $f, MessageHandler2, PageData, DocumentData, XRefWrapper, PDFEditor, BasePDFStream2, BasePDFStreamReader2, BasePDFStreamRangeReader2, PDFWorkerStream, PDFWorkerStreamReader, PDFWorkerStreamRangeReader, WorkerTask, WorkerMessageHandler;
|
|
97005
97046
|
var init_pdf_worker_min = __esm({
|
|
97006
97047
|
"../../node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs?url"() {
|
|
97007
97048
|
init_define_HHP_CATALOG();
|
|
@@ -130124,7 +130165,7 @@ var init_pdf_worker_min = __esm({
|
|
|
130124
130165
|
this.usehref = e2.usehref || "";
|
|
130125
130166
|
}
|
|
130126
130167
|
};
|
|
130127
|
-
|
|
130168
|
+
Script2 = class extends StringObject {
|
|
130128
130169
|
constructor(e2) {
|
|
130129
130170
|
super(ff, "script");
|
|
130130
130171
|
this.binding = e2.binding || "";
|
|
@@ -131210,7 +131251,7 @@ var init_pdf_worker_min = __esm({
|
|
|
131210
131251
|
return new RefElement(e2);
|
|
131211
131252
|
}
|
|
131212
131253
|
static script(e2) {
|
|
131213
|
-
return new
|
|
131254
|
+
return new Script2(e2);
|
|
131214
131255
|
}
|
|
131215
131256
|
static setProperty(e2) {
|
|
131216
131257
|
return new SetProperty(e2);
|
|
@@ -160583,6 +160624,7 @@ __export(screen_crawl_exports, {
|
|
|
160583
160624
|
rootOnAppear: () => rootOnAppear,
|
|
160584
160625
|
snapshot: () => snapshot3,
|
|
160585
160626
|
snapshotState: () => snapshotState,
|
|
160627
|
+
stateOnlyCheckCounts: () => stateOnlyCheckCounts,
|
|
160586
160628
|
structuralSignature: () => structuralSignature,
|
|
160587
160629
|
unverifiableNodes: () => unverifiableNodes,
|
|
160588
160630
|
workerArgs: () => workerArgs
|
|
@@ -161463,17 +161505,23 @@ function guardRepeatedCalls(call, onLoop, limit = REPEATED_CALL_LIMIT) {
|
|
|
161463
161505
|
throw new Error(message5);
|
|
161464
161506
|
};
|
|
161465
161507
|
}
|
|
161508
|
+
function stateOnlyCheckCounts() {
|
|
161509
|
+
return { computed: stateOnlyComputes, replayed: stateOnlyRecomputesSkipped };
|
|
161510
|
+
}
|
|
161466
161511
|
function snapshot3(w2) {
|
|
161467
|
-
const state =
|
|
161512
|
+
const { state, json: json9 } = snapshotPieces(w2);
|
|
161468
161513
|
const defects = {};
|
|
161469
161514
|
for (const [name, h2] of Object.entries(w2.handles)) {
|
|
161470
|
-
state[name] = h2.getState();
|
|
161471
161515
|
const d2 = h2.stateDefects();
|
|
161472
161516
|
if (d2.length) defects[name] = d2;
|
|
161473
161517
|
}
|
|
161474
|
-
return { state, defects };
|
|
161518
|
+
return { state, defects, stateJson: json9 };
|
|
161475
161519
|
}
|
|
161476
161520
|
function snapshotState(w2) {
|
|
161521
|
+
const { state, json: json9 } = snapshotPieces(w2);
|
|
161522
|
+
return { state, json: json9() };
|
|
161523
|
+
}
|
|
161524
|
+
function snapshotPieces(w2) {
|
|
161477
161525
|
const state = {};
|
|
161478
161526
|
const pieces = [];
|
|
161479
161527
|
for (const [name, h2] of Object.entries(w2.handles)) {
|
|
@@ -161486,13 +161534,18 @@ function snapshotState(w2) {
|
|
|
161486
161534
|
pieces.push([name, void 0]);
|
|
161487
161535
|
}
|
|
161488
161536
|
}
|
|
161489
|
-
|
|
161490
|
-
|
|
161491
|
-
if (
|
|
161492
|
-
const
|
|
161493
|
-
|
|
161494
|
-
|
|
161495
|
-
|
|
161537
|
+
let joined;
|
|
161538
|
+
const json9 = () => {
|
|
161539
|
+
if (joined !== void 0) return joined;
|
|
161540
|
+
const parts = [];
|
|
161541
|
+
for (const [name, text32] of pieces) {
|
|
161542
|
+
if (!Object.hasOwn(state, name)) continue;
|
|
161543
|
+
const value2 = text32 ?? JSON.stringify(state[name]);
|
|
161544
|
+
if (value2 !== void 0) parts.push(`${JSON.stringify(name)}:${value2}`);
|
|
161545
|
+
}
|
|
161546
|
+
return joined = `{${parts.join(",")}}`;
|
|
161547
|
+
};
|
|
161548
|
+
return { state, json: json9 };
|
|
161496
161549
|
}
|
|
161497
161550
|
async function bootScreenWorker(opts) {
|
|
161498
161551
|
const input = {
|
|
@@ -161825,7 +161878,7 @@ async function crawlSingleScreenJourney(opts) {
|
|
|
161825
161878
|
}
|
|
161826
161879
|
receipt.scope = { screen: opts.screenId, componentId: declared.componentId, actionId: declared.actionId, hookKey: declared.key, control: declared.control?.type ?? null };
|
|
161827
161880
|
if (opts.captureInputEvidence) receipt.declaredPayload = JSON.parse(JSON.stringify({ ...declared.params ?? {}, ...declared.args ?? {} }));
|
|
161828
|
-
const state =
|
|
161881
|
+
const state = snapshotState(worker).state;
|
|
161829
161882
|
const site = effectiveSiteFor(declared, state);
|
|
161830
161883
|
if (!site) {
|
|
161831
161884
|
receipt.reason = "no-row-value";
|
|
@@ -161846,7 +161899,7 @@ async function crawlSingleScreenJourney(opts) {
|
|
|
161846
161899
|
continue;
|
|
161847
161900
|
}
|
|
161848
161901
|
const mark = { wix: worker.calls.length, host: worker.hostCalls.length };
|
|
161849
|
-
const beforeState = opts.captureInputEvidence ?
|
|
161902
|
+
const beforeState = opts.captureInputEvidence ? snapshotState(worker).json : "";
|
|
161850
161903
|
const params = { ...site.params ?? {}, ...site.args ?? {}, ...step.params ?? {} };
|
|
161851
161904
|
if (opts.captureInputEvidence) receipt.payload = JSON.parse(JSON.stringify(params));
|
|
161852
161905
|
try {
|
|
@@ -161859,12 +161912,12 @@ async function crawlSingleScreenJourney(opts) {
|
|
|
161859
161912
|
fail19(`journey "${opts.journey.name}" step ${step.action} threw: ${errText(error)}`, step);
|
|
161860
161913
|
}
|
|
161861
161914
|
if (opts.captureInputEvidence) {
|
|
161862
|
-
stepFrames.push({ receipt, before: beforeState, after:
|
|
161915
|
+
stepFrames.push({ receipt, before: beforeState, after: snapshotState(worker).json });
|
|
161863
161916
|
}
|
|
161864
161917
|
const stepEffect = effectSince(worker, mark, site.actionId, site.componentId);
|
|
161865
161918
|
if (stepEffect) effects.push(stepEffect);
|
|
161866
161919
|
}
|
|
161867
|
-
const settled =
|
|
161920
|
+
const settled = snapshotState(worker);
|
|
161868
161921
|
if (worker.errors.length) {
|
|
161869
161922
|
for (const error of worker.errors) fail19(`journey "${opts.journey.name}" worker error: ${error.service}: ${error.message}`);
|
|
161870
161923
|
}
|
|
@@ -162082,7 +162135,7 @@ async function crawlScreenInner(opts) {
|
|
|
162082
162135
|
}
|
|
162083
162136
|
}
|
|
162084
162137
|
const boot = (skipAppear = false, skipBootSnapshot = false) => bundleJs ? bootScreenWorker({ bundleJs, descriptor, wixCall, screenId, inputOverride: opts.inputOverride, budgetMs: opts.budgetMs, clock: opts.clock, seed: opts.seed, skipAppear, skipBootSnapshot, localDbSchema: opts.localDbSchema, l10n: opts.l10n, base44Data: opts.base44Data, capabilitySuccess: opts.capabilitySuccess === true, ...opts.evaluator ? { evaluator: opts.evaluator } : {} }) : null;
|
|
162085
|
-
const check = (trigger, state, errors, defects = {}) => {
|
|
162138
|
+
const check = (trigger, state, errors, defects = {}, stateJson) => {
|
|
162086
162139
|
for (const [svc, paths2] of Object.entries(defects)) {
|
|
162087
162140
|
for (const p2 of paths2) {
|
|
162088
162141
|
findings.push({
|
|
@@ -162127,10 +162180,27 @@ async function crawlScreenInner(opts) {
|
|
|
162127
162180
|
});
|
|
162128
162181
|
}
|
|
162129
162182
|
}
|
|
162183
|
+
for (const f2 of stateOnlyFindings(state, stateJson)) findings.push({ ...f2, trigger });
|
|
162184
|
+
};
|
|
162185
|
+
const stateOnlyMemo = /* @__PURE__ */ new Map();
|
|
162186
|
+
const stateOnlyFindings = (state, stateJson) => {
|
|
162187
|
+
if (stateJson !== void 0 && Object.getPrototypeOf(state) !== Object.prototype) stateJson = void 0;
|
|
162188
|
+
if (stateJson !== void 0) {
|
|
162189
|
+
const hit = stateOnlyMemo.get(stateJson);
|
|
162190
|
+
if (hit) {
|
|
162191
|
+
stateOnlyMemo.delete(stateJson);
|
|
162192
|
+
stateOnlyMemo.set(stateJson, hit);
|
|
162193
|
+
stateOnlyRecomputesSkipped += 1;
|
|
162194
|
+
return hit;
|
|
162195
|
+
}
|
|
162196
|
+
}
|
|
162197
|
+
stateOnlyComputes += 1;
|
|
162198
|
+
const findings2 = [];
|
|
162199
|
+
const trigger = "boot";
|
|
162130
162200
|
const provider = new FakeServiceProvider(state);
|
|
162131
162201
|
for (const tree of descriptorTrees(descriptor, provider)) {
|
|
162132
162202
|
scanTreeValues(tree, (at2, field, d2) => {
|
|
162133
|
-
|
|
162203
|
+
findings2.push({
|
|
162134
162204
|
screen: screenId,
|
|
162135
162205
|
trigger,
|
|
162136
162206
|
invariant: d2.kind,
|
|
@@ -162144,7 +162214,7 @@ async function crawlScreenInner(opts) {
|
|
|
162144
162214
|
}, opts.l10nKeys);
|
|
162145
162215
|
}
|
|
162146
162216
|
for (const r3 of renderedNameGaps(descriptor, state)) {
|
|
162147
|
-
|
|
162217
|
+
findings2.push({
|
|
162148
162218
|
screen: screenId,
|
|
162149
162219
|
trigger,
|
|
162150
162220
|
invariant: "unnamed-control",
|
|
@@ -162161,7 +162231,7 @@ async function crawlScreenInner(opts) {
|
|
|
162161
162231
|
for (const ref of collectServiceBindings(descriptor)) {
|
|
162162
162232
|
if (opts.appServices?.has(ref.svc) && !(ref.svc in state)) continue;
|
|
162163
162233
|
if (!(ref.svc in state)) {
|
|
162164
|
-
|
|
162234
|
+
findings2.push({
|
|
162165
162235
|
screen: screenId,
|
|
162166
162236
|
trigger,
|
|
162167
162237
|
invariant: "binding-unresolved",
|
|
@@ -162175,7 +162245,7 @@ async function crawlScreenInner(opts) {
|
|
|
162175
162245
|
const first2 = ref.path.split(/[.[]/)[0];
|
|
162176
162246
|
if (first2 && pathValue(state[ref.svc], first2) === void 0) {
|
|
162177
162247
|
const optional4 = ref.collapseWhenEmpty === true;
|
|
162178
|
-
|
|
162248
|
+
findings2.push({
|
|
162179
162249
|
screen: screenId,
|
|
162180
162250
|
trigger,
|
|
162181
162251
|
invariant: "binding-unresolved",
|
|
@@ -162187,7 +162257,7 @@ async function crawlScreenInner(opts) {
|
|
|
162187
162257
|
}
|
|
162188
162258
|
}
|
|
162189
162259
|
for (const m2 of missingItemFields(descriptor, state)) {
|
|
162190
|
-
|
|
162260
|
+
findings2.push({
|
|
162191
162261
|
screen: screenId,
|
|
162192
162262
|
trigger,
|
|
162193
162263
|
invariant: "item-field-missing",
|
|
@@ -162206,7 +162276,7 @@ async function crawlScreenInner(opts) {
|
|
|
162206
162276
|
const after = { ...resolved3.params ?? {}, ...resolved3.args ?? {} };
|
|
162207
162277
|
for (const [k3, v2] of bound2) {
|
|
162208
162278
|
if (!(k3 in after)) {
|
|
162209
|
-
|
|
162279
|
+
findings2.push({
|
|
162210
162280
|
screen: screenId,
|
|
162211
162281
|
trigger,
|
|
162212
162282
|
invariant: "nav-param-dropped",
|
|
@@ -162220,6 +162290,11 @@ async function crawlScreenInner(opts) {
|
|
|
162220
162290
|
}
|
|
162221
162291
|
}
|
|
162222
162292
|
}
|
|
162293
|
+
if (stateJson !== void 0) {
|
|
162294
|
+
if (stateOnlyMemo.size >= STATE_ONLY_MEMO_ENTRIES) stateOnlyMemo.delete(stateOnlyMemo.keys().next().value);
|
|
162295
|
+
stateOnlyMemo.set(stateJson, findings2);
|
|
162296
|
+
}
|
|
162297
|
+
return findings2;
|
|
162223
162298
|
};
|
|
162224
162299
|
const reportDeadLifecycle = (d2) => {
|
|
162225
162300
|
findings.push({
|
|
@@ -162393,10 +162468,8 @@ async function crawlScreenInner(opts) {
|
|
|
162393
162468
|
errors.push({ service: parsed.service, message: `${parsed.action}: ${errText(e2)}`, ...e2.stack ? { stack: e2.stack } : {}, argless: workerArgs(dispatched).length === 0 });
|
|
162394
162469
|
}
|
|
162395
162470
|
exercised += 1;
|
|
162396
|
-
const { state, defects } = snapshot3(w2);
|
|
162397
|
-
|
|
162398
|
-
const afterStateJson = () => afterJson ??= JSON.stringify(state);
|
|
162399
|
-
check(trigger, state, errors, defects);
|
|
162471
|
+
const { state, defects, stateJson: afterStateJson } = snapshot3(w2);
|
|
162472
|
+
check(trigger, state, errors, defects, afterStateJson());
|
|
162400
162473
|
reportDenied(w2.deniedCapabilities.slice(deniedBefore), trigger);
|
|
162401
162474
|
const navCountBefore = navEdges.length;
|
|
162402
162475
|
drainWorkerEdges(w2, `worker:${site.actionId}`, !!site.itemsPath && carriesItemToken(site));
|
|
@@ -162695,7 +162768,7 @@ async function bootAndSnapshotState(opts) {
|
|
|
162695
162768
|
}
|
|
162696
162769
|
try {
|
|
162697
162770
|
for (let i2 = 0; i2 < 20; i2++) await yieldMacrotask();
|
|
162698
|
-
return
|
|
162771
|
+
return snapshotState(w2).state;
|
|
162699
162772
|
} finally {
|
|
162700
162773
|
w2.dispose();
|
|
162701
162774
|
}
|
|
@@ -162774,7 +162847,7 @@ async function crawlScreenDeep(opts, deep) {
|
|
|
162774
162847
|
threwAt = "unreachable";
|
|
162775
162848
|
break;
|
|
162776
162849
|
}
|
|
162777
|
-
const state2 =
|
|
162850
|
+
const state2 = snapshotState(w2).state;
|
|
162778
162851
|
const effective = effectiveSiteFor(site, state2);
|
|
162779
162852
|
if (!effective) {
|
|
162780
162853
|
threwAt = "unreachable";
|
|
@@ -162806,7 +162879,7 @@ async function crawlScreenDeep(opts, deep) {
|
|
|
162806
162879
|
await handle.dispatch(parsed.action, ...workerArgs(interaction?.fired ?? effective));
|
|
162807
162880
|
if (site.componentId === "topbar.search") {
|
|
162808
162881
|
if (site.key === "onCancel") {
|
|
162809
|
-
searchText = updatedSearchText(state2,
|
|
162882
|
+
searchText = updatedSearchText(state2, snapshotState(w2).state, sites, "");
|
|
162810
162883
|
sentSearchText = "";
|
|
162811
162884
|
} else {
|
|
162812
162885
|
const value2 = { ...(interaction?.fired ?? effective).params ?? {}, ...(interaction?.fired ?? effective).args ?? {} }.value;
|
|
@@ -162816,7 +162889,7 @@ async function crawlScreenDeep(opts, deep) {
|
|
|
162816
162889
|
}
|
|
162817
162890
|
}
|
|
162818
162891
|
} else {
|
|
162819
|
-
const next =
|
|
162892
|
+
const next = snapshotState(w2).state;
|
|
162820
162893
|
searchText = updatedSearchText(state2, next, sites, searchText);
|
|
162821
162894
|
sentSearchText = updatedSearchText(state2, next, sites, sentSearchText);
|
|
162822
162895
|
}
|
|
@@ -163054,7 +163127,7 @@ async function crawlScreenRelations(opts) {
|
|
|
163054
163127
|
const w2 = await boot();
|
|
163055
163128
|
try {
|
|
163056
163129
|
if (w2.errors.length) return null;
|
|
163057
|
-
let prev =
|
|
163130
|
+
let prev = snapshotState(w2).state;
|
|
163058
163131
|
const bootState = prev;
|
|
163059
163132
|
let searchText = null;
|
|
163060
163133
|
let sentSearchText = null;
|
|
@@ -163080,7 +163153,7 @@ async function crawlScreenRelations(opts) {
|
|
|
163080
163153
|
await h2.dispatch(parsed.action, ...workerArgs(interaction?.fired ?? eff));
|
|
163081
163154
|
if (site.componentId === "topbar.search") {
|
|
163082
163155
|
if (site.key === "onCancel") {
|
|
163083
|
-
searchText = updatedSearchText(prev,
|
|
163156
|
+
searchText = updatedSearchText(prev, snapshotState(w2).state, sites, "");
|
|
163084
163157
|
sentSearchText = "";
|
|
163085
163158
|
} else {
|
|
163086
163159
|
const value2 = { ...(interaction?.fired ?? eff).params ?? {}, ...(interaction?.fired ?? eff).args ?? {} }.value;
|
|
@@ -163095,7 +163168,7 @@ async function crawlScreenRelations(opts) {
|
|
|
163095
163168
|
}
|
|
163096
163169
|
for (let k3 = 0; k3 < 20; k3++) await yieldMacrotask();
|
|
163097
163170
|
if (w2.errors.length) return null;
|
|
163098
|
-
const next =
|
|
163171
|
+
const next = snapshotState(w2).state;
|
|
163099
163172
|
if (site.componentId !== "topbar.search") {
|
|
163100
163173
|
searchText = updatedSearchText(prev, next, sites, searchText);
|
|
163101
163174
|
sentSearchText = updatedSearchText(prev, next, sites, sentSearchText);
|
|
@@ -163348,7 +163421,7 @@ async function crawlAppServices(opts) {
|
|
|
163348
163421
|
hint: "only a returned _nav from a user gesture is honoured (RFC 0074 \xA77)"
|
|
163349
163422
|
});
|
|
163350
163423
|
}
|
|
163351
|
-
const state =
|
|
163424
|
+
const state = snapshotState(w2).state;
|
|
163352
163425
|
launchedState = state;
|
|
163353
163426
|
const hooksRun = [];
|
|
163354
163427
|
{
|
|
@@ -163529,7 +163602,7 @@ function dedupeAppFindings(findings) {
|
|
|
163529
163602
|
return true;
|
|
163530
163603
|
});
|
|
163531
163604
|
}
|
|
163532
|
-
var ACTION_KEYS, UNTRACKED_ITEMS, NESTED_ITEMS_SEP, REJECT_ALL_MESSAGE, POLL_STOP_LITERAL, WIX_DATA_QUERY, WIX_DATA_ANY, CAPABILITY_ACTION, detached, CRAWL_PRINCIPAL, CRAWL_CLOCK, MEMBER_IDENTITY_ACTION, BLANK_WHEN_BOUND, CONTROL_ROLES, NAME_KEYS, A11Y_ROWS_PER_LIST, A11Y_LIST_DEPTH, ITEM_PATH_RE, UNOBSERVED_COPY_KEYS, LABEL_NEEDS_HANDLER, REPEATER_TEMPLATE_KEYS, STALE_SNAPSHOT_HINT, REPEATED_CALL_LIMIT, UNBINDABLE_ROW, APP_SERVICES_SCREEN, APP_HOOKS, APP_TICK_LIMIT;
|
|
163605
|
+
var ACTION_KEYS, UNTRACKED_ITEMS, NESTED_ITEMS_SEP, REJECT_ALL_MESSAGE, POLL_STOP_LITERAL, WIX_DATA_QUERY, WIX_DATA_ANY, CAPABILITY_ACTION, detached, CRAWL_PRINCIPAL, CRAWL_CLOCK, MEMBER_IDENTITY_ACTION, BLANK_WHEN_BOUND, CONTROL_ROLES, NAME_KEYS, A11Y_ROWS_PER_LIST, A11Y_LIST_DEPTH, ITEM_PATH_RE, UNOBSERVED_COPY_KEYS, LABEL_NEEDS_HANDLER, REPEATER_TEMPLATE_KEYS, STALE_SNAPSHOT_HINT, REPEATED_CALL_LIMIT, STATE_ONLY_MEMO_ENTRIES, stateOnlyComputes, stateOnlyRecomputesSkipped, UNBINDABLE_ROW, APP_SERVICES_SCREEN, APP_HOOKS, APP_TICK_LIMIT;
|
|
163533
163606
|
var init_screen_crawl = __esm({
|
|
163534
163607
|
"../../core/dev-server/src/screen-crawl.ts"() {
|
|
163535
163608
|
init_define_HHP_CATALOG();
|
|
@@ -163617,6 +163690,9 @@ var init_screen_crawl = __esm({
|
|
|
163617
163690
|
REPEATER_TEMPLATE_KEYS = /* @__PURE__ */ new Set(["items", "pages"]);
|
|
163618
163691
|
STALE_SNAPSHOT_HINT = 'if every path already does, look for a stale-snapshot write-back: `return s` (or `{ ...s }`) after an await or from an early-return guard writes back the state as it was BEFORE the await, loading flag included \u2014 to change nothing, return `undefined` instead (not `null` or `{}`); see `himi docs tier-5-add-a-screen`, "Should this result be committed at all?"';
|
|
163619
163692
|
REPEATED_CALL_LIMIT = 50;
|
|
163693
|
+
STATE_ONLY_MEMO_ENTRIES = 8;
|
|
163694
|
+
stateOnlyComputes = 0;
|
|
163695
|
+
stateOnlyRecomputesSkipped = 0;
|
|
163620
163696
|
UNBINDABLE_ROW = Symbol("unbindable-row");
|
|
163621
163697
|
APP_SERVICES_SCREEN = "(app services)";
|
|
163622
163698
|
APP_HOOKS = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1964.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": "
|
|
85
|
+
"falconPackageHash": "0af4ddc6c97123a700b77b6702ef72b43fdb222eb303e6944dc3d533"
|
|
86
86
|
}
|