@brickkit/cli 0.11.0 → 0.12.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/dashboard-dist/CollapsiblePanel-CbUysOp5.js +2 -0
- package/dashboard-dist/CompositeRoot-D4sRkYq3.js +1 -0
- package/dashboard-dist/Geist-Variable.woff2 +0 -0
- package/dashboard-dist/GeistMono-Variable.woff2 +0 -0
- package/dashboard-dist/PopoverPopup-CiI2avT_.js +1 -0
- package/dashboard-dist/api-reference-B-bZRtNV.js +265 -0
- package/dashboard-dist/app.css +2 -2
- package/dashboard-dist/app.js +11 -11
- package/dashboard-dist/ccount-CcG1m-Yh.js +1 -0
- package/dashboard-dist/client-BJJtVSVr.js +1 -0
- package/dashboard-dist/core-Z7NJFk0K.js +1 -0
- package/dashboard-dist/docs-Dpfc0wJb.js +4 -0
- package/dashboard-dist/docs.css +1 -1
- package/dashboard-dist/kit.js +1 -1
- package/dashboard-dist/popover-BzejBolB.js +1 -0
- package/dist/app-entry2.js +2 -3
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +173 -12
- package/dist/bin.js.map +1 -1
- package/dist/client-contract-file2.js +1 -2
- package/dist/client-contract2.js +6 -4
- package/dist/client-contract2.js.map +1 -1
- package/dist/compiler.d.ts +1 -2
- package/dist/compiler.js +1 -1
- package/dist/compiler2.js +3 -4
- package/dist/config.js +5 -7
- package/dist/config.js.map +1 -1
- package/dist/dashboard-extension.d.ts +0 -2
- package/dist/dashboard.d.ts +4 -134
- package/dist/dev-reporter.d.ts +0 -2
- package/dist/dev-reporter.js +1 -2
- package/dist/dev-telemetry-store.js +9 -19
- package/dist/dev-telemetry-store.js.map +1 -1
- package/dist/dev-telemetry.js +3 -4
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/dev-worker.js +1 -2
- package/dist/emit.d.ts +0 -2
- package/dist/index.d.ts +7 -17
- package/dist/index.js +3 -4
- package/dist/lint/oxlint.d.ts +0 -2
- package/dist/lint/oxlint.js +1 -2
- package/dist/plugin.d.ts +0 -6
- package/dist/plugin.js +2 -4
- package/dist/plugin.js.map +1 -1
- package/dist/presets.js +3 -7
- package/dist/presets.js.map +1 -1
- package/dist/runner.js +5 -9
- package/dist/runner.js.map +1 -1
- package/dist/vite.d.ts +0 -2
- package/dist/vite.js +5 -7
- package/dist/vite.js.map +1 -1
- package/dist/workflows.d.ts +0 -2
- package/dist/workflows2.js +2 -3
- package/inspector-dist/client/assets/api.rpc-BvRk9kiK.js +0 -0
- package/inspector-dist/client/assets/api.stream._streamId-BvRk9kiK.js +0 -0
- package/inspector-dist/client/assets/app-CCzpuUz_.css +2 -0
- package/inspector-dist/client/assets/dist-BK8w6xOr.js +3930 -0
- package/inspector-dist/client/assets/dist-CG2aVufI.js +197 -0
- package/inspector-dist/client/assets/entry.client-D9jbgmTR.js +9391 -0
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-DYVdwGy2.js +34 -0
- package/inspector-dist/client/assets/home-CyjkvtII.js +2883 -0
- package/inspector-dist/client/assets/jsx-runtime-CPEah4WQ.js +7084 -0
- package/inspector-dist/client/assets/manifest-ba30b52d.js +1 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-Dy6IVqPy.js +1 -0
- package/inspector-dist/client/assets/root-8BMab1lL.css +2 -0
- package/inspector-dist/client/assets/root-DX9wtogx.js +332 -0
- package/inspector-dist/client/assets/run-detail-C69EJGql.js +1549 -0
- package/inspector-dist/client/assets/tabs-B6B88IjT.js +75692 -0
- package/inspector-dist/client/assets/tabs-L5XKzOpP.css +1 -0
- package/inspector-dist/client/assets/world-config-context-C3BqXPIv.js +30 -0
- package/inspector-dist/client/assets/zstd-browser-decoder-ByUgcY9H.js +41 -0
- package/inspector-dist/server/assets/app-WoDoT62X.js +100155 -0
- package/inspector-dist/server/assets/chunk-RLXIAIE6-CbvDIAEa.js +42977 -0
- package/inspector-dist/server/assets/dist-BRxZSWUN.js +1140 -0
- package/inspector-dist/server/assets/dist-CQnQcIJg.js +199 -0
- package/inspector-dist/server/assets/dist-DqRd9pyS.js +1644 -0
- package/inspector-dist/server/assets/dist-qR-969AD.js +10327 -0
- package/inspector-dist/server/assets/encryption-_PuklZNX.js +888 -0
- package/inspector-dist/server/assets/event-metadata-BVakQJ_y.js +147 -0
- package/inspector-dist/server/assets/functions-CImcpqNl.js +1172 -0
- package/inspector-dist/server/assets/global-singleton-CPirHxFh.js +82 -0
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-fPMB_t7F.js +36 -0
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-bADXySE3.js +3 -0
- package/inspector-dist/server/assets/parse-D9Vvgzt9.js +471 -0
- package/inspector-dist/server/assets/rolldown-runtime-CLg409Sh.js +44 -0
- package/inspector-dist/server/assets/serialization-format-DDtsVTU1.js +478 -0
- package/inspector-dist/server/assets/token-BW4GdQZh.js +62 -0
- package/inspector-dist/server/assets/token-D6FXdkJT.js +57 -0
- package/inspector-dist/server/assets/token-util-BoNmi-wE.js +457 -0
- package/inspector-dist/server/assets/wrapper-wiqsGXcE.js +3626 -0
- package/inspector-dist/server/assets/ws-transport-DV7oG4mL.js +29478 -0
- package/inspector-dist/server/assets/zstd-browser-decoder-Cswf0KO6.js +40 -0
- package/inspector-dist/server/index.js +2 -57
- package/package.json +29 -28
- package/vite-client.d.ts +1 -1
- package/dashboard-dist/CollapsiblePanel-BX79_W-b.js +0 -2
- package/dashboard-dist/CompositeRoot-xzybXjnx.js +0 -1
- package/dashboard-dist/PopoverPopup-CvlmC7EL.js +0 -1
- package/dashboard-dist/api-reference-BcAYVYwJ.js +0 -260
- package/dashboard-dist/core-BGO9JZ1r.js +0 -1
- package/dashboard-dist/docs-DHikPD2v.js +0 -4
- package/dashboard-dist/popover-DG498XHH.js +0 -1
- package/dist/bin.d.ts.map +0 -1
- package/dist/dashboard-extension.d.ts.map +0 -1
- package/dist/dev-reporter.d.ts.map +0 -1
- package/dist/emit.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lint/oxlint.d.ts.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/vite.d.ts.map +0 -1
- package/dist/workflows.d.ts.map +0 -1
- package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +0 -1
- package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +0 -1
- package/inspector-dist/client/assets/app-CvoGgWcV.css +0 -1
- package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +0 -11697
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +0 -19
- package/inspector-dist/client/assets/home-CSKAS4P2.js +0 -4979
- package/inspector-dist/client/assets/index-DECCyMR0.js +0 -4482
- package/inspector-dist/client/assets/index-Dot7CgrA.js +0 -9837
- package/inspector-dist/client/assets/index-HqNj_XIX.js +0 -200
- package/inspector-dist/client/assets/manifest-139c9319.js +0 -1
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +0 -58626
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +0 -1
- package/inspector-dist/client/assets/root-BMHd_XHz.css +0 -1
- package/inspector-dist/client/assets/root-cbi6iYwg.js +0 -305
- package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +0 -1
- package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +0 -6237
- package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +0 -26
- package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +0 -28
- package/inspector-dist/server/assets/app-DUP5RybL.js +0 -174880
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-D2g4hL2-.js +0 -71
- package/inspector-dist/server/assets/index-BfLBLRRi.js +0 -204
- package/inspector-dist/server/assets/index-BzrGWk7J.js +0 -1164
- package/inspector-dist/server/assets/index-D71yP6AL.js +0 -191
- package/inspector-dist/server/assets/index-wGSWRns3.js +0 -1296
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-DsvuKoEV.js +0 -58
- package/inspector-dist/server/assets/token-ClUZZwXl.js +0 -95
- package/inspector-dist/server/assets/token-util-DSxMZ6nI.js +0 -33
- package/inspector-dist/server/assets/wrapper-B3vstpCO.js +0 -67
- package/inspector-dist/server/assets/zstd-browser-decoder-Dn82m2BU.js +0 -77
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
-
if (typeof require === "undefined") {
|
|
3
|
-
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
-
}
|
|
5
|
-
import { N as Nt } from "./app-DUP5RybL.js";
|
|
6
|
-
import "node:stream";
|
|
7
|
-
import "stream";
|
|
8
|
-
import "util";
|
|
9
|
-
import "crypto";
|
|
10
|
-
import "async_hooks";
|
|
11
|
-
import "node:crypto";
|
|
12
|
-
import "node:util";
|
|
13
|
-
import "node:async_hooks";
|
|
14
|
-
import "node:module";
|
|
15
|
-
import "node:url";
|
|
16
|
-
import "node:fs";
|
|
17
|
-
import "node:fs/promises";
|
|
18
|
-
import "node:path";
|
|
19
|
-
import "node:os";
|
|
20
|
-
import "node:child_process";
|
|
21
|
-
import "path";
|
|
22
|
-
import "fs";
|
|
23
|
-
import "constants";
|
|
24
|
-
import "assert";
|
|
25
|
-
import "events";
|
|
26
|
-
import "node:timers/promises";
|
|
27
|
-
import "node:buffer";
|
|
28
|
-
import "node:http";
|
|
29
|
-
import "node:https";
|
|
30
|
-
import "node:zlib";
|
|
31
|
-
import "node:assert";
|
|
32
|
-
import "node:net";
|
|
33
|
-
import "node:querystring";
|
|
34
|
-
import "node:events";
|
|
35
|
-
import "node:diagnostics_channel";
|
|
36
|
-
import "node:tls";
|
|
37
|
-
import "node:perf_hooks";
|
|
38
|
-
import "node:util/types";
|
|
39
|
-
import "node:sqlite";
|
|
40
|
-
import "node:worker_threads";
|
|
41
|
-
import "node:console";
|
|
42
|
-
import "node:timers";
|
|
43
|
-
import "node:dns";
|
|
44
|
-
import "os";
|
|
45
|
-
import "module";
|
|
46
|
-
import "assert/strict";
|
|
47
|
-
import "net";
|
|
48
|
-
import "node:assert/strict";
|
|
49
|
-
import "https";
|
|
50
|
-
import "http";
|
|
51
|
-
import "tls";
|
|
52
|
-
import "url";
|
|
53
|
-
import "zlib";
|
|
54
|
-
import "buffer";
|
|
55
|
-
import "node:process";
|
|
56
|
-
export {
|
|
57
|
-
Nt as Mermaid
|
|
58
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
-
if (typeof require === "undefined") {
|
|
3
|
-
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
-
}
|
|
5
|
-
import { bw as requireTokenError, bv as requireTokenUtil, bu as getDefaultExportFromCjs } from "./app-DUP5RybL.js";
|
|
6
|
-
function _mergeNamespaces(n, m) {
|
|
7
|
-
for (var i = 0; i < m.length; i++) {
|
|
8
|
-
const e = m[i];
|
|
9
|
-
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
10
|
-
for (const k in e) {
|
|
11
|
-
if (k !== "default" && !(k in n)) {
|
|
12
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
if (d) {
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: () => e[k]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
-
}
|
|
25
|
-
var token$2;
|
|
26
|
-
var hasRequiredToken;
|
|
27
|
-
function requireToken() {
|
|
28
|
-
if (hasRequiredToken) return token$2;
|
|
29
|
-
hasRequiredToken = 1;
|
|
30
|
-
var __defProp = Object.defineProperty;
|
|
31
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
32
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
33
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
34
|
-
var __export = (target, all) => {
|
|
35
|
-
for (var name in all)
|
|
36
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
-
};
|
|
38
|
-
var __copyProps = (to, from, except, desc) => {
|
|
39
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
-
for (let key of __getOwnPropNames(from))
|
|
41
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
42
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
43
|
-
}
|
|
44
|
-
return to;
|
|
45
|
-
};
|
|
46
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
-
var token_exports = {};
|
|
48
|
-
__export(token_exports, {
|
|
49
|
-
refreshToken: () => refreshToken
|
|
50
|
-
});
|
|
51
|
-
token$2 = __toCommonJS(token_exports);
|
|
52
|
-
var import_token_error = requireTokenError();
|
|
53
|
-
var import_token_util = requireTokenUtil();
|
|
54
|
-
async function refreshToken(options) {
|
|
55
|
-
let projectId = options?.project;
|
|
56
|
-
let teamId = options?.team;
|
|
57
|
-
if (!projectId && !teamId) {
|
|
58
|
-
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
59
|
-
projectId = projectInfo.projectId;
|
|
60
|
-
teamId = projectInfo.teamId;
|
|
61
|
-
} else if (!projectId || !teamId) {
|
|
62
|
-
const projectInfo = (0, import_token_util.findProjectInfo)();
|
|
63
|
-
projectId = projectId ?? projectInfo.projectId;
|
|
64
|
-
teamId = teamId ?? projectInfo.teamId;
|
|
65
|
-
}
|
|
66
|
-
if (!projectId) {
|
|
67
|
-
throw new import_token_error.VercelOidcTokenError(
|
|
68
|
-
"Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`"
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
let maybeToken = (0, import_token_util.loadToken)(projectId);
|
|
72
|
-
if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token), options?.expirationBufferMs)) {
|
|
73
|
-
const authToken = await (0, import_token_util.getVercelToken)({
|
|
74
|
-
expirationBufferMs: options?.expirationBufferMs
|
|
75
|
-
});
|
|
76
|
-
maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
|
|
77
|
-
if (!maybeToken) {
|
|
78
|
-
throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
|
|
79
|
-
}
|
|
80
|
-
(0, import_token_util.saveToken)(maybeToken, projectId);
|
|
81
|
-
}
|
|
82
|
-
process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
return token$2;
|
|
86
|
-
}
|
|
87
|
-
var tokenExports = requireToken();
|
|
88
|
-
const token = /* @__PURE__ */ getDefaultExportFromCjs(tokenExports);
|
|
89
|
-
const token$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
90
|
-
__proto__: null,
|
|
91
|
-
default: token
|
|
92
|
-
}, [tokenExports]);
|
|
93
|
-
export {
|
|
94
|
-
token$1 as t
|
|
95
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
-
if (typeof require === "undefined") {
|
|
3
|
-
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
-
}
|
|
5
|
-
import { bu as getDefaultExportFromCjs, bv as requireTokenUtil } from "./app-DUP5RybL.js";
|
|
6
|
-
function _mergeNamespaces(n, m) {
|
|
7
|
-
for (var i = 0; i < m.length; i++) {
|
|
8
|
-
const e = m[i];
|
|
9
|
-
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
10
|
-
for (const k in e) {
|
|
11
|
-
if (k !== "default" && !(k in n)) {
|
|
12
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
if (d) {
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: () => e[k]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
-
}
|
|
25
|
-
var tokenUtilExports = requireTokenUtil();
|
|
26
|
-
const tokenUtil = /* @__PURE__ */ getDefaultExportFromCjs(tokenUtilExports);
|
|
27
|
-
const tokenUtil$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
28
|
-
__proto__: null,
|
|
29
|
-
default: tokenUtil
|
|
30
|
-
}, [tokenUtilExports]);
|
|
31
|
-
export {
|
|
32
|
-
tokenUtil$1 as t
|
|
33
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
-
if (typeof require === "undefined") {
|
|
3
|
-
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
-
}
|
|
5
|
-
import { bm as WebSocket } from "./app-DUP5RybL.js";
|
|
6
|
-
import { bn, bo, bp, bq, br, bs, bt } from "./app-DUP5RybL.js";
|
|
7
|
-
import "node:stream";
|
|
8
|
-
import "stream";
|
|
9
|
-
import "util";
|
|
10
|
-
import "crypto";
|
|
11
|
-
import "async_hooks";
|
|
12
|
-
import "node:crypto";
|
|
13
|
-
import "node:util";
|
|
14
|
-
import "node:async_hooks";
|
|
15
|
-
import "node:module";
|
|
16
|
-
import "node:url";
|
|
17
|
-
import "node:fs";
|
|
18
|
-
import "node:fs/promises";
|
|
19
|
-
import "node:path";
|
|
20
|
-
import "node:os";
|
|
21
|
-
import "node:child_process";
|
|
22
|
-
import "path";
|
|
23
|
-
import "fs";
|
|
24
|
-
import "constants";
|
|
25
|
-
import "assert";
|
|
26
|
-
import "events";
|
|
27
|
-
import "node:timers/promises";
|
|
28
|
-
import "node:buffer";
|
|
29
|
-
import "node:http";
|
|
30
|
-
import "node:https";
|
|
31
|
-
import "node:zlib";
|
|
32
|
-
import "node:assert";
|
|
33
|
-
import "node:net";
|
|
34
|
-
import "node:querystring";
|
|
35
|
-
import "node:events";
|
|
36
|
-
import "node:diagnostics_channel";
|
|
37
|
-
import "node:tls";
|
|
38
|
-
import "node:perf_hooks";
|
|
39
|
-
import "node:util/types";
|
|
40
|
-
import "node:sqlite";
|
|
41
|
-
import "node:worker_threads";
|
|
42
|
-
import "node:console";
|
|
43
|
-
import "node:timers";
|
|
44
|
-
import "node:dns";
|
|
45
|
-
import "os";
|
|
46
|
-
import "module";
|
|
47
|
-
import "assert/strict";
|
|
48
|
-
import "net";
|
|
49
|
-
import "node:assert/strict";
|
|
50
|
-
import "https";
|
|
51
|
-
import "http";
|
|
52
|
-
import "tls";
|
|
53
|
-
import "url";
|
|
54
|
-
import "zlib";
|
|
55
|
-
import "buffer";
|
|
56
|
-
import "node:process";
|
|
57
|
-
export {
|
|
58
|
-
bn as PerMessageDeflate,
|
|
59
|
-
bo as Receiver,
|
|
60
|
-
bp as Sender,
|
|
61
|
-
WebSocket,
|
|
62
|
-
bq as WebSocketServer,
|
|
63
|
-
br as createWebSocketStream,
|
|
64
|
-
WebSocket as default,
|
|
65
|
-
bs as extension,
|
|
66
|
-
bt as subprotocol
|
|
67
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { createRequire as __wkfCreateRequire } from "node:module";
|
|
2
|
-
if (typeof require === "undefined") {
|
|
3
|
-
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
|
-
}
|
|
5
|
-
import { bl as registerZstdDecoder } from "./app-DUP5RybL.js";
|
|
6
|
-
import "node:stream";
|
|
7
|
-
import "stream";
|
|
8
|
-
import "util";
|
|
9
|
-
import "crypto";
|
|
10
|
-
import "async_hooks";
|
|
11
|
-
import "node:crypto";
|
|
12
|
-
import "node:util";
|
|
13
|
-
import "node:async_hooks";
|
|
14
|
-
import "node:module";
|
|
15
|
-
import "node:url";
|
|
16
|
-
import "node:fs";
|
|
17
|
-
import "node:fs/promises";
|
|
18
|
-
import "node:path";
|
|
19
|
-
import "node:os";
|
|
20
|
-
import "node:child_process";
|
|
21
|
-
import "path";
|
|
22
|
-
import "fs";
|
|
23
|
-
import "constants";
|
|
24
|
-
import "assert";
|
|
25
|
-
import "events";
|
|
26
|
-
import "node:timers/promises";
|
|
27
|
-
import "node:buffer";
|
|
28
|
-
import "node:http";
|
|
29
|
-
import "node:https";
|
|
30
|
-
import "node:zlib";
|
|
31
|
-
import "node:assert";
|
|
32
|
-
import "node:net";
|
|
33
|
-
import "node:querystring";
|
|
34
|
-
import "node:events";
|
|
35
|
-
import "node:diagnostics_channel";
|
|
36
|
-
import "node:tls";
|
|
37
|
-
import "node:perf_hooks";
|
|
38
|
-
import "node:util/types";
|
|
39
|
-
import "node:sqlite";
|
|
40
|
-
import "node:worker_threads";
|
|
41
|
-
import "node:console";
|
|
42
|
-
import "node:timers";
|
|
43
|
-
import "node:dns";
|
|
44
|
-
import "os";
|
|
45
|
-
import "module";
|
|
46
|
-
import "assert/strict";
|
|
47
|
-
import "net";
|
|
48
|
-
import "node:assert/strict";
|
|
49
|
-
import "https";
|
|
50
|
-
import "http";
|
|
51
|
-
import "tls";
|
|
52
|
-
import "url";
|
|
53
|
-
import "zlib";
|
|
54
|
-
import "buffer";
|
|
55
|
-
import "node:process";
|
|
56
|
-
let registered = false;
|
|
57
|
-
let modulePromise;
|
|
58
|
-
function loadWasmModule() {
|
|
59
|
-
if (!modulePromise) {
|
|
60
|
-
const url = new URL("@tootallnate/zstd-wasm/zstd.wasm", import.meta.url);
|
|
61
|
-
modulePromise = fetch(url).then((res) => res.arrayBuffer()).then((bytes) => WebAssembly.compile(bytes));
|
|
62
|
-
}
|
|
63
|
-
return modulePromise;
|
|
64
|
-
}
|
|
65
|
-
function ensureZstdDecoderRegistered() {
|
|
66
|
-
if (registered)
|
|
67
|
-
return;
|
|
68
|
-
registered = true;
|
|
69
|
-
registerZstdDecoder(async (payload) => {
|
|
70
|
-
const { decompressBytes } = await import("./index-BfLBLRRi.js");
|
|
71
|
-
const wasmModule = await loadWasmModule();
|
|
72
|
-
return decompressBytes(wasmModule, payload);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
ensureZstdDecoderRegistered
|
|
77
|
-
};
|