@wix/himalaya-cli 0.984.0 → 0.986.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 +48 -20
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -18857,6 +18857,7 @@ function shouldRevealError(args) {
|
|
|
18857
18857
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
18858
18858
|
var init_validation = __esm({
|
|
18859
18859
|
"../../core/ts/src/validation.ts"() {
|
|
18860
|
+
"use strict";
|
|
18860
18861
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
18861
18862
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
18862
18863
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -22281,6 +22282,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
22281
22282
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
22282
22283
|
var init_worker_subtree = __esm({
|
|
22283
22284
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
22285
|
+
"use strict";
|
|
22284
22286
|
init_worker_subtree_safe_types_generated();
|
|
22285
22287
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
22286
22288
|
maxEncodedBytes: 65536,
|
|
@@ -42883,15 +42885,16 @@ ${releaseId}`;
|
|
|
42883
42885
|
if ((request.method === "GET" || request.method === "HEAD") && path === "/v1/__webwix/identity") {
|
|
42884
42886
|
const headers2 = { "content-type": JSON_CT, "cache-control": "no-store" };
|
|
42885
42887
|
if (request.method === "HEAD") return new Response(null, { status: 200, headers: headers2 });
|
|
42888
|
+
const webwixDirect = opts.webwixBridge !== false;
|
|
42886
42889
|
if (memberAuthOn()) {
|
|
42887
42890
|
const app2 = memberApp(request);
|
|
42888
42891
|
const store2 = memberSessions();
|
|
42889
42892
|
if (app2 && store2) {
|
|
42890
42893
|
const token = await memberTokenFor(store2, readSessionCookie(request.headers.get("cookie")), app2, null);
|
|
42891
|
-
if (token) return json3(200, { authenticated: true, userId: null, email: null }, { "cache-control": "no-store" });
|
|
42894
|
+
if (token) return json3(200, { authenticated: true, userId: null, email: null, webwixDirect }, { "cache-control": "no-store" });
|
|
42892
42895
|
}
|
|
42893
42896
|
}
|
|
42894
|
-
return json3(200, { authenticated: false, userId: null, email: null }, { "cache-control": "no-store" });
|
|
42897
|
+
return json3(200, { authenticated: false, userId: null, email: null, webwixDirect }, { "cache-control": "no-store" });
|
|
42895
42898
|
}
|
|
42896
42899
|
if (request.method === "POST" && path === "/v1/__webwix/call") {
|
|
42897
42900
|
if (opts.webwixBridge === false) {
|
|
@@ -43790,19 +43793,19 @@ var init_preview_assets_generated = __esm({
|
|
|
43790
43793
|
"../../packages/serve/src/preview-assets.generated.ts"() {
|
|
43791
43794
|
init_preview_assets_format();
|
|
43792
43795
|
PREVIEW_ASSET_MANIFEST = [
|
|
43793
|
-
{ key: "assets/index-
|
|
43794
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
43795
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
43796
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
43797
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
43798
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
43799
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
43800
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
43801
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
43802
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
43803
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
43804
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
43805
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
43796
|
+
{ key: "assets/index-BHbI7Cmq.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 994462, sha256: "f4589e2d3922fada826a38cbf29c40cfbd124903a29c07c32b93f7019e417e05" },
|
|
43797
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 994470, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
43798
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 1085394, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
43799
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 1176378, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
43800
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 1267358, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
43801
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 1358230, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
43802
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 1449210, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
43803
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 1557846, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
43804
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 1666930, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
43805
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 1775978, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
43806
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 1883678, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
43807
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 1971786, length: 4448, sha256: "246aa990caa5f3d2b93be16c284909d3cd339608304a0378eb838ea6eb21d21c" },
|
|
43808
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 1976234, length: 13784, sha256: "cfb9465254fab84f0e084bb4542c282758ea29774b5f172840cc0b9e4194ef89" }
|
|
43806
43809
|
];
|
|
43807
43810
|
}
|
|
43808
43811
|
});
|
|
@@ -52590,7 +52593,7 @@ async function toPlaywrightCookies(setCookies, url) {
|
|
|
52590
52593
|
}
|
|
52591
52594
|
return out;
|
|
52592
52595
|
}
|
|
52593
|
-
async function createPlaywrightBrowser(load = () => import("playwright"), siteFetch = guardedSiteFetch) {
|
|
52596
|
+
async function createPlaywrightBrowser(load = () => import("playwright"), siteFetch = guardedSiteFetch, pin = realPin) {
|
|
52594
52597
|
const screenshots = [];
|
|
52595
52598
|
let pw;
|
|
52596
52599
|
try {
|
|
@@ -52600,7 +52603,8 @@ async function createPlaywrightBrowser(load = () => import("playwright"), siteFe
|
|
|
52600
52603
|
port: { crawl: async () => ({ unavailable: `playwright_not_installed: ${PLAYWRIGHT_HINT}`, pages: [], navLabels: [], theme: null }) },
|
|
52601
52604
|
screenshots,
|
|
52602
52605
|
unavailable: `playwright_not_installed: ${PLAYWRIGHT_HINT}`,
|
|
52603
|
-
siteFetch
|
|
52606
|
+
siteFetch,
|
|
52607
|
+
pin
|
|
52604
52608
|
};
|
|
52605
52609
|
}
|
|
52606
52610
|
const port = {
|
|
@@ -52614,10 +52618,32 @@ async function createPlaywrightBrowser(load = () => import("playwright"), siteFe
|
|
|
52614
52618
|
}
|
|
52615
52619
|
try {
|
|
52616
52620
|
const page = await browser.newPage();
|
|
52621
|
+
const dialable = /* @__PURE__ */ new Map();
|
|
52622
|
+
const mayDial = (url) => {
|
|
52623
|
+
const cached3 = dialable.get(url.hostname);
|
|
52624
|
+
if (cached3) return cached3;
|
|
52625
|
+
const verdict = pin(url, AbortSignal.timeout(SUBRESOURCE_PIN_TIMEOUT_MS)).then(() => true, () => false);
|
|
52626
|
+
dialable.set(url.hostname, verdict);
|
|
52627
|
+
return verdict;
|
|
52628
|
+
};
|
|
52617
52629
|
await page.route("**/*", async (route) => {
|
|
52618
52630
|
const request = route.request();
|
|
52619
52631
|
if (request.resourceType() !== "document") {
|
|
52620
|
-
|
|
52632
|
+
try {
|
|
52633
|
+
const url = new URL(request.url());
|
|
52634
|
+
if (NON_NETWORK_SCHEMES.has(url.protocol)) {
|
|
52635
|
+
await route.continue();
|
|
52636
|
+
return;
|
|
52637
|
+
}
|
|
52638
|
+
if (ASSET_HOP(url)) {
|
|
52639
|
+
await route.abort();
|
|
52640
|
+
return;
|
|
52641
|
+
}
|
|
52642
|
+
if (await mayDial(url)) await route.continue();
|
|
52643
|
+
else await route.abort();
|
|
52644
|
+
} catch {
|
|
52645
|
+
await route.abort();
|
|
52646
|
+
}
|
|
52621
52647
|
return;
|
|
52622
52648
|
}
|
|
52623
52649
|
try {
|
|
@@ -52788,9 +52814,9 @@ async function createPlaywrightBrowser(load = () => import("playwright"), siteFe
|
|
|
52788
52814
|
}
|
|
52789
52815
|
}
|
|
52790
52816
|
};
|
|
52791
|
-
return { port, screenshots, siteFetch };
|
|
52817
|
+
return { port, screenshots, siteFetch, pin };
|
|
52792
52818
|
}
|
|
52793
|
-
var PLAYWRIGHT_HINT, PAGE_EVAL, CAP2, DOCUMENT_FETCH_TIMEOUT_MS, MAX_DOCUMENT_BYTES, FORWARDED_REQUEST_HEADERS;
|
|
52819
|
+
var PLAYWRIGHT_HINT, PAGE_EVAL, CAP2, DOCUMENT_FETCH_TIMEOUT_MS, MAX_DOCUMENT_BYTES, SUBRESOURCE_PIN_TIMEOUT_MS, NON_NETWORK_SCHEMES, FORWARDED_REQUEST_HEADERS;
|
|
52794
52820
|
var init_crawl_look = __esm({
|
|
52795
52821
|
"src/site-analyze/crawl-look.ts"() {
|
|
52796
52822
|
init_dist();
|
|
@@ -53001,6 +53027,8 @@ var init_crawl_look = __esm({
|
|
|
53001
53027
|
};
|
|
53002
53028
|
DOCUMENT_FETCH_TIMEOUT_MS = 12e3;
|
|
53003
53029
|
MAX_DOCUMENT_BYTES = 15e6;
|
|
53030
|
+
SUBRESOURCE_PIN_TIMEOUT_MS = 5e3;
|
|
53031
|
+
NON_NETWORK_SCHEMES = /* @__PURE__ */ new Set(["data:", "blob:", "about:"]);
|
|
53004
53032
|
FORWARDED_REQUEST_HEADERS = ["user-agent", "accept-language", "accept", "cookie", "referer"];
|
|
53005
53033
|
}
|
|
53006
53034
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.986.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": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "43bd0d15a28b9c677cc53272ebf2172c05f40aa9799b505d5fc9a304"
|
|
69
69
|
}
|