@utoo/web 1.0.3 → 1.0.4
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/esm/serviceWorker.js
CHANGED
|
@@ -21,7 +21,8 @@ self.addEventListener("message", (event) => {
|
|
|
21
21
|
});
|
|
22
22
|
self.addEventListener("fetch", async (event) => {
|
|
23
23
|
await _promise;
|
|
24
|
-
|
|
24
|
+
let { url, referrer } = event.request;
|
|
25
|
+
url = decodeURIComponent(url);
|
|
25
26
|
if (new URL(url).pathname.startsWith(_serviceWorkerScope) ||
|
|
26
27
|
(referrer && new URL(referrer).pathname.startsWith(_serviceWorkerScope))) {
|
|
27
28
|
const projectPath = "." + new URL(url).pathname.replace(_serviceWorkerScope, "");
|
package/esm/utoo/index.js
CHANGED
|
@@ -322,7 +322,7 @@ function addBorrowedObject(obj) {
|
|
|
322
322
|
heap[--stack_pointer] = obj;
|
|
323
323
|
return stack_pointer;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function __wbg_adapter_10(arg0, arg1, arg2) {
|
|
326
326
|
try {
|
|
327
327
|
wasm.__wbindgen_export_6(arg0, arg1, addBorrowedObject(arg2));
|
|
328
328
|
}
|
|
@@ -330,14 +330,14 @@ function __wbg_adapter_8(arg0, arg1, arg2) {
|
|
|
330
330
|
heap[stack_pointer++] = undefined;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
wasm.__wbindgen_export_7(arg0, arg1
|
|
333
|
+
function __wbg_adapter_15(arg0, arg1) {
|
|
334
|
+
wasm.__wbindgen_export_7(arg0, arg1);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function __wbg_adapter_18(arg0, arg1, arg2) {
|
|
337
337
|
wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
wasm.__wbindgen_export_9(arg0, arg1);
|
|
339
|
+
function __wbg_adapter_21(arg0, arg1, arg2) {
|
|
340
|
+
wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2));
|
|
341
341
|
}
|
|
342
342
|
function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
|
|
343
343
|
wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
@@ -1627,12 +1627,12 @@ function __wbg_get_imports() {
|
|
|
1627
1627
|
};
|
|
1628
1628
|
imports.wbg.__wbindgen_cast_2aafe3a70f74f3e0 = function (arg0, arg1) {
|
|
1629
1629
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8681, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8682, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1630
|
-
const ret = makeMutClosure(arg0, arg1, 8681,
|
|
1630
|
+
const ret = makeMutClosure(arg0, arg1, 8681, __wbg_adapter_18);
|
|
1631
1631
|
return addHeapObject(ret);
|
|
1632
1632
|
};
|
|
1633
1633
|
imports.wbg.__wbindgen_cast_3bfef9a8628dc119 = function (arg0, arg1) {
|
|
1634
1634
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8688, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1635
|
-
const ret = makeMutClosure(arg0, arg1, 8688,
|
|
1635
|
+
const ret = makeMutClosure(arg0, arg1, 8688, __wbg_adapter_15);
|
|
1636
1636
|
return addHeapObject(ret);
|
|
1637
1637
|
};
|
|
1638
1638
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
@@ -1642,12 +1642,12 @@ function __wbg_get_imports() {
|
|
|
1642
1642
|
};
|
|
1643
1643
|
imports.wbg.__wbindgen_cast_4c807b347a3d0cbf = function (arg0, arg1) {
|
|
1644
1644
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 599, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1645
|
-
const ret = makeMutClosure(arg0, arg1, 599,
|
|
1645
|
+
const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_15);
|
|
1646
1646
|
return addHeapObject(ret);
|
|
1647
1647
|
};
|
|
1648
1648
|
imports.wbg.__wbindgen_cast_5cc12922bca91779 = function (arg0, arg1) {
|
|
1649
1649
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8681, function: Function { arguments: [Externref], shim_idx: 8682, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1650
|
-
const ret = makeMutClosure(arg0, arg1, 8681,
|
|
1650
|
+
const ret = makeMutClosure(arg0, arg1, 8681, __wbg_adapter_18);
|
|
1651
1651
|
return addHeapObject(ret);
|
|
1652
1652
|
};
|
|
1653
1653
|
imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
|
|
@@ -1671,12 +1671,12 @@ function __wbg_get_imports() {
|
|
|
1671
1671
|
};
|
|
1672
1672
|
imports.wbg.__wbindgen_cast_9b1d89ef740b288c = function (arg0, arg1) {
|
|
1673
1673
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8662, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8686, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1674
|
-
const ret = makeMutClosure(arg0, arg1, 8662,
|
|
1674
|
+
const ret = makeMutClosure(arg0, arg1, 8662, __wbg_adapter_10);
|
|
1675
1675
|
return addHeapObject(ret);
|
|
1676
1676
|
};
|
|
1677
1677
|
imports.wbg.__wbindgen_cast_9c5a3d861803a5de = function (arg0, arg1) {
|
|
1678
1678
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8662, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8663, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1679
|
-
const ret = makeClosure(arg0, arg1, 8662,
|
|
1679
|
+
const ret = makeClosure(arg0, arg1, 8662, __wbg_adapter_21);
|
|
1680
1680
|
return addHeapObject(ret);
|
|
1681
1681
|
};
|
|
1682
1682
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
package/esm/utoo/index_bg.wasm
CHANGED
|
Binary file
|