@volter/tabnode 0.5.32 → 0.5.33
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.
|
@@ -79675,9 +79675,7 @@ function createRequire(vfs2, fsShim, process2, currentDir, moduleCache, options,
|
|
|
79675
79675
|
if (prepared) {
|
|
79676
79676
|
const body = __substrateScopeGlobalCalls(prepareModuleCode(rawCode, resolvedPath));
|
|
79677
79677
|
try {
|
|
79678
|
-
|
|
79679
|
-
vfs2.writeFileSync(partial, body);
|
|
79680
|
-
vfs2.renameSync(partial, prepared);
|
|
79678
|
+
vfs2.writeFileSync(prepared, body);
|
|
79681
79679
|
} catch {
|
|
79682
79680
|
}
|
|
79683
79681
|
runModuleBody(module, body, resolvedPath, dirname$1, true);
|
package/dist/index.mjs
CHANGED
|
@@ -21284,17 +21284,10 @@ var implementation$1 = function bind2(that) {
|
|
|
21284
21284
|
var implementation = implementation$1;
|
|
21285
21285
|
var functionBind = Function.prototype.bind || implementation;
|
|
21286
21286
|
var functionCall = Function.prototype.call;
|
|
21287
|
-
var functionApply;
|
|
21288
|
-
var hasRequiredFunctionApply;
|
|
21289
|
-
function requireFunctionApply() {
|
|
21290
|
-
if (hasRequiredFunctionApply) return functionApply;
|
|
21291
|
-
hasRequiredFunctionApply = 1;
|
|
21292
|
-
functionApply = Function.prototype.apply;
|
|
21293
|
-
return functionApply;
|
|
21294
|
-
}
|
|
21287
|
+
var functionApply = Function.prototype.apply;
|
|
21295
21288
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
21296
21289
|
var bind$2 = functionBind;
|
|
21297
|
-
var $apply$1 =
|
|
21290
|
+
var $apply$1 = functionApply;
|
|
21298
21291
|
var $call$2 = functionCall;
|
|
21299
21292
|
var $reflectApply = reflectApply;
|
|
21300
21293
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
@@ -21414,7 +21407,7 @@ var hasSymbols = requireHasSymbols()();
|
|
|
21414
21407
|
var getProto = requireGetProto();
|
|
21415
21408
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
21416
21409
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
21417
|
-
var $apply =
|
|
21410
|
+
var $apply = functionApply;
|
|
21418
21411
|
var $call = functionCall;
|
|
21419
21412
|
var needsEval = {};
|
|
21420
21413
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
@@ -22055,7 +22048,7 @@ function requireApplyBind() {
|
|
|
22055
22048
|
if (hasRequiredApplyBind) return applyBind;
|
|
22056
22049
|
hasRequiredApplyBind = 1;
|
|
22057
22050
|
var bind3 = functionBind;
|
|
22058
|
-
var $apply2 =
|
|
22051
|
+
var $apply2 = functionApply;
|
|
22059
22052
|
var actualApply$1 = actualApply;
|
|
22060
22053
|
applyBind = function applyBind2() {
|
|
22061
22054
|
return actualApply$1(bind3, $apply2, arguments);
|
|
@@ -39336,9 +39329,7 @@ function createRequire(vfs2, fsShim, process2, currentDir, moduleCache, options,
|
|
|
39336
39329
|
if (prepared) {
|
|
39337
39330
|
const body = __substrateScopeGlobalCalls(prepareModuleCode(rawCode, resolvedPath));
|
|
39338
39331
|
try {
|
|
39339
|
-
|
|
39340
|
-
vfs2.writeFileSync(partial, body);
|
|
39341
|
-
vfs2.renameSync(partial, prepared);
|
|
39332
|
+
vfs2.writeFileSync(prepared, body);
|
|
39342
39333
|
} catch {
|
|
39343
39334
|
}
|
|
39344
39335
|
runModuleBody(module, body, resolvedPath, dirname$1, true);
|
|
@@ -40236,7 +40227,7 @@ class WorkerRuntime {
|
|
|
40236
40227
|
this.worker = new Worker(
|
|
40237
40228
|
new URL(
|
|
40238
40229
|
/* @vite-ignore */
|
|
40239
|
-
"/assets/runtime-worker-
|
|
40230
|
+
"/assets/runtime-worker-b9-COQEP.js",
|
|
40240
40231
|
import.meta.url
|
|
40241
40232
|
),
|
|
40242
40233
|
{ type: "module" }
|
package/package.json
CHANGED
package/src/runtime.ts
CHANGED
|
@@ -2003,11 +2003,11 @@ function createRequire(
|
|
|
2003
2003
|
// playwright-core afresh, 28 s each, measured in a tab.
|
|
2004
2004
|
if (prepared) {
|
|
2005
2005
|
const body = __substrateScopeGlobalCalls(prepareModuleCode(rawCode, resolvedPath));
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2006
|
+
// One write is one step of the tab's filesystem, so no reader sees
|
|
2007
|
+
// half a body; a rename after it failed in a forked process's realm
|
|
2008
|
+
// and left the half-named file behind.
|
|
2009
|
+
try { vfs.writeFileSync(prepared, body); }
|
|
2010
|
+
catch { /* a process that may not write there prepares its own */ }
|
|
2011
2011
|
runModuleBody(module, body, resolvedPath, dirname, true);
|
|
2012
2012
|
return module;
|
|
2013
2013
|
}
|