@volter/browser-substrate 0.1.114 → 0.1.115
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/shell/assets/{node-execution-worker-961b76ab350a1c3c.js → node-execution-worker-714dbca4282e90ae.js} +5 -5
- package/dist/shell/assets/{runtime-worker-DiqY2fQ4.js → runtime-worker-DH_89R1c.js} +19 -8
- package/dist/shell/bundler-worker.js +5 -5
- package/dist/shell/node-execution-worker.js +1 -1
- package/dist/shell/python-runtime-snapshot.bin +0 -0
- package/dist/shell/python-runtime-snapshot.json +1 -1
- package/dist/shell/rolldown/factory.mjs +20 -9
- package/package.json +1 -1
|
@@ -21220,10 +21220,17 @@ var implementation$1 = function bind2(that) {
|
|
|
21220
21220
|
var implementation = implementation$1;
|
|
21221
21221
|
var functionBind = Function.prototype.bind || implementation;
|
|
21222
21222
|
var functionCall = Function.prototype.call;
|
|
21223
|
-
var functionApply
|
|
21223
|
+
var functionApply;
|
|
21224
|
+
var hasRequiredFunctionApply;
|
|
21225
|
+
function requireFunctionApply() {
|
|
21226
|
+
if (hasRequiredFunctionApply) return functionApply;
|
|
21227
|
+
hasRequiredFunctionApply = 1;
|
|
21228
|
+
functionApply = Function.prototype.apply;
|
|
21229
|
+
return functionApply;
|
|
21230
|
+
}
|
|
21224
21231
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
21225
21232
|
var bind$2 = functionBind;
|
|
21226
|
-
var $apply$1 =
|
|
21233
|
+
var $apply$1 = requireFunctionApply();
|
|
21227
21234
|
var $call$2 = functionCall;
|
|
21228
21235
|
var $reflectApply = reflectApply;
|
|
21229
21236
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
@@ -21343,7 +21350,7 @@ var hasSymbols = requireHasSymbols()();
|
|
|
21343
21350
|
var getProto = requireGetProto();
|
|
21344
21351
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
21345
21352
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
21346
|
-
var $apply =
|
|
21353
|
+
var $apply = requireFunctionApply();
|
|
21347
21354
|
var $call = functionCall;
|
|
21348
21355
|
var needsEval = {};
|
|
21349
21356
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
@@ -21984,7 +21991,7 @@ function requireApplyBind() {
|
|
|
21984
21991
|
if (hasRequiredApplyBind) return applyBind;
|
|
21985
21992
|
hasRequiredApplyBind = 1;
|
|
21986
21993
|
var bind3 = functionBind;
|
|
21987
|
-
var $apply2 =
|
|
21994
|
+
var $apply2 = requireFunctionApply();
|
|
21988
21995
|
var actualApply$1 = actualApply;
|
|
21989
21996
|
applyBind = function applyBind2() {
|
|
21990
21997
|
return actualApply$1(bind3, $apply2, arguments);
|
|
@@ -79884,11 +79891,15 @@ function __substrateGuestGlobal(process2) {
|
|
|
79884
79891
|
})
|
|
79885
79892
|
}
|
|
79886
79893
|
});
|
|
79887
|
-
|
|
79894
|
+
Object.defineProperties(localGlobals, {
|
|
79895
|
+
Worker: { value: void 0, writable: true, configurable: true, enumerable: true },
|
|
79896
|
+
self: { value: void 0, writable: true, configurable: true, enumerable: true }
|
|
79897
|
+
});
|
|
79898
|
+
const isLocalGlobal = (key) => ["Promise", "navigator", "Navigator", "Worker", "self"].includes(key);
|
|
79888
79899
|
guest = new Proxy(localGlobals, {
|
|
79889
79900
|
get(target, key) {
|
|
79890
79901
|
var _a3, _b3, _c3;
|
|
79891
|
-
if (["document", "window", "location"
|
|
79902
|
+
if (["document", "window", "location"].includes(key)) return void 0;
|
|
79892
79903
|
if (key === "fetch") return fetch2;
|
|
79893
79904
|
if (key === "Buffer") return buffer2 ?? loadNodeLibFor(process2, "buffer").Buffer;
|
|
79894
79905
|
if (key === "process") return process2;
|
|
@@ -81272,7 +81283,7 @@ function createRequire(vfs2, fsShim, process2, currentDir, moduleCache, options,
|
|
|
81272
81283
|
const importMetaUrl = resolvedPath.startsWith("data:") ? resolvedPath : "file://" + resolvedPath;
|
|
81273
81284
|
const strictBody = code2.startsWith(__substrateModuleMarker);
|
|
81274
81285
|
if (!scoped) code2 = __substrateScopeGlobalCalls(code2);
|
|
81275
|
-
const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0
|
|
81286
|
+
const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get Worker() { return globalThis.Worker; }, set Worker(value) { globalThis.Worker = value; }, get self() { return globalThis.self; }, set self(value) { globalThis.self = value; }, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code2}
|
|
81276
81287
|
}).call(${strictBody ? "void 0" : "$module.exports"}); }
|
|
81277
81288
|
})${__substrateSourceURL(resolvedPath)}`;
|
|
81278
81289
|
let bodyKind = code2.includes(__substrateTopLevelAwaitMarker) ? "async" : code2.includes(__substrateAwaitMarker) ? "generator" : "sync";
|
|
@@ -81650,7 +81661,7 @@ class Runtime {
|
|
|
81650
81661
|
const importMetaUrl = "file://" + filename;
|
|
81651
81662
|
const strictBody = code2.startsWith(__substrateModuleMarker);
|
|
81652
81663
|
code2 = __substrateScopeGlobalCalls(code2);
|
|
81653
|
-
const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0
|
|
81664
|
+
const wrappedCode = `(function($exports, $require, $module, $filename, $dirname, $process, $console, $importMeta, $dynamicImport, __substrateGuestGlobal, __substrateGuestConstructor) { var exports = $exports; var require = $require; var module = $module; var __filename = $filename; var __dirname = $dirname; var process = $process; var console = $console; var import_meta = $importMeta; var __dynamicImport = $dynamicImport; var document = void 0, window = void 0, location = void 0; var globalThis = __substrateGuestGlobal($process); var global = globalThis; var Buffer = globalThis.Buffer; var queueMicrotask = globalThis.queueMicrotask, atob = globalThis.atob, btoa = globalThis.btoa, structuredClone = globalThis.structuredClone, setTimeout = globalThis.setTimeout, clearTimeout = globalThis.clearTimeout, setInterval = globalThis.setInterval, clearInterval = globalThis.clearInterval; globalThis.process = $process; global.process = $process; with ({ __proto__: null, get Worker() { return globalThis.Worker; }, set Worker(value) { globalThis.Worker = value; }, get self() { return globalThis.self; }, set self(value) { globalThis.self = value; }, get navigator() { return globalThis.navigator; }, set navigator(value) { globalThis.navigator = value; }, get Navigator() { return globalThis.Navigator; }, set Navigator(value) { globalThis.Navigator = value; }, get Promise() { return globalThis.Promise; }, set Promise(value) { globalThis.Promise = value; }, get fetch() { return globalThis.fetch; }, set fetch(value) { globalThis.fetch = value; } }) { return (function() {${code2}
|
|
81654
81665
|
}).call(${strictBody ? "void 0" : "$module.exports"}); }
|
|
81655
81666
|
})${__substrateSourceURL(filename)}`;
|
|
81656
81667
|
const dynamicImport = createDynamicImport(require2, this.process, filename.startsWith("data:") ? filename : `file://${filename}`);
|