@volter/tabnode 0.5.24 → 0.5.25

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/__sw__.js CHANGED
@@ -43,7 +43,8 @@ function openHost(id, channel) {
43
43
  };
44
44
  hosts.set(id, host);
45
45
  latestHost = host;
46
- void pruneClients();
46
+ // Clients that are gone are forgotten; a prune that fails forgets nothing.
47
+ void pruneClients().catch(() => {});
47
48
  return host;
48
49
  }
49
50
 
@@ -544,7 +545,7 @@ async function blobWorkerContext(client, requestUrl) {
544
545
  if (owners.some(owner => owner.context.port !== owners[0].context.port || owner.host !== owners[0].host)) throw new Error('Ambiguous virtual blob owner');
545
546
  rootedClients.set(client.id, owners[0].context.port);
546
547
  if (owners[0].host) clientHosts.set(client.id, owners[0].host.id);
547
- if (rootedClients.size > 256) pruneClients();
548
+ if (rootedClients.size > 256) void pruneClients().catch(() => {});
548
549
  return owners[0].context;
549
550
  })();
550
551
  pendingBlobContexts.set(client.id, pending);
@@ -617,7 +618,7 @@ async function askForInit() {
617
618
  function handleRootedRequest(event, port, path) {
618
619
  if (event.resultingClientId) {
619
620
  rootedClients.set(event.resultingClientId, port);
620
- if (rootedClients.size > 256) pruneClients();
621
+ if (rootedClients.size > 256) void pruneClients().catch(() => {});
621
622
  }
622
623
  return handleVirtualRequest(event.request, port, path, true);
623
624
  }
@@ -21146,17 +21146,10 @@ var implementation$1 = function bind2(that) {
21146
21146
  var implementation = implementation$1;
21147
21147
  var functionBind = Function.prototype.bind || implementation;
21148
21148
  var functionCall = Function.prototype.call;
21149
- var functionApply;
21150
- var hasRequiredFunctionApply;
21151
- function requireFunctionApply() {
21152
- if (hasRequiredFunctionApply) return functionApply;
21153
- hasRequiredFunctionApply = 1;
21154
- functionApply = Function.prototype.apply;
21155
- return functionApply;
21156
- }
21149
+ var functionApply = Function.prototype.apply;
21157
21150
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
21158
21151
  var bind$2 = functionBind;
21159
- var $apply$1 = requireFunctionApply();
21152
+ var $apply$1 = functionApply;
21160
21153
  var $call$2 = functionCall;
21161
21154
  var $reflectApply = reflectApply;
21162
21155
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
@@ -21276,7 +21269,7 @@ var hasSymbols = requireHasSymbols()();
21276
21269
  var getProto = requireGetProto();
21277
21270
  var $ObjectGPO = requireObject_getPrototypeOf();
21278
21271
  var $ReflectGPO = requireReflect_getPrototypeOf();
21279
- var $apply = requireFunctionApply();
21272
+ var $apply = functionApply;
21280
21273
  var $call = functionCall;
21281
21274
  var needsEval = {};
21282
21275
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
@@ -21917,7 +21910,7 @@ function requireApplyBind() {
21917
21910
  if (hasRequiredApplyBind) return applyBind;
21918
21911
  hasRequiredApplyBind = 1;
21919
21912
  var bind3 = functionBind;
21920
- var $apply2 = requireFunctionApply();
21913
+ var $apply2 = functionApply;
21921
21914
  var actualApply$1 = actualApply;
21922
21915
  applyBind = function applyBind2() {
21923
21916
  return actualApply$1(bind3, $apply2, arguments);
package/dist/index.mjs CHANGED
@@ -39925,7 +39925,7 @@ class WorkerRuntime {
39925
39925
  this.worker = new Worker(
39926
39926
  new URL(
39927
39927
  /* @vite-ignore */
39928
- "/assets/runtime-worker-Bw5ePWPu.js",
39928
+ "/assets/runtime-worker-D6N3DujB.js",
39929
39929
  import.meta.url
39930
39930
  ),
39931
39931
  { type: "module" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/tabnode",
3
- "version": "0.5.24",
3
+ "version": "0.5.25",
4
4
  "description": "Node's own library, in a browser tab.",
5
5
  "type": "module",
6
6
  "license": "MIT",