@utoo/web 1.0.2 → 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.
@@ -21,7 +21,8 @@ self.addEventListener("message", (event) => {
21
21
  });
22
22
  self.addEventListener("fetch", async (event) => {
23
23
  await _promise;
24
- const { url, referrer } = event.request;
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
@@ -315,12 +315,6 @@ function passArray8ToWasm0(arg, malloc) {
315
315
  export function wasm_thread_entry_point(ptr) {
316
316
  wasm.wasm_thread_entry_point(ptr);
317
317
  }
318
- function __wbg_adapter_10(arg0, arg1, arg2) {
319
- wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
320
- }
321
- function __wbg_adapter_13(arg0, arg1, arg2) {
322
- wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
323
- }
324
318
  let stack_pointer = 128;
325
319
  function addBorrowedObject(obj) {
326
320
  if (stack_pointer == 1)
@@ -328,16 +322,22 @@ function addBorrowedObject(obj) {
328
322
  heap[--stack_pointer] = obj;
329
323
  return stack_pointer;
330
324
  }
331
- function __wbg_adapter_22(arg0, arg1, arg2) {
325
+ function __wbg_adapter_10(arg0, arg1, arg2) {
332
326
  try {
333
- wasm.__wbindgen_export_8(arg0, arg1, addBorrowedObject(arg2));
327
+ wasm.__wbindgen_export_6(arg0, arg1, addBorrowedObject(arg2));
334
328
  }
335
329
  finally {
336
330
  heap[stack_pointer++] = undefined;
337
331
  }
338
332
  }
339
- function __wbg_adapter_25(arg0, arg1) {
340
- wasm.__wbindgen_export_9(arg0, arg1);
333
+ function __wbg_adapter_15(arg0, arg1) {
334
+ wasm.__wbindgen_export_7(arg0, arg1);
335
+ }
336
+ function __wbg_adapter_18(arg0, arg1, arg2) {
337
+ wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
338
+ }
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, __wbg_adapter_13);
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, __wbg_adapter_25);
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, __wbg_adapter_25);
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, __wbg_adapter_13);
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, __wbg_adapter_22);
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, __wbg_adapter_10);
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) {
Binary file
@@ -50,6 +50,9 @@ export async function cjs(entrypoint, importMaps) {
50
50
  return finalExports;
51
51
  };
52
52
  require.resolve = (request) => request;
53
+ // @ts-ignore
54
+ // a hack for loader-runner resolving
55
+ self.__systemjs_require__ = require;
53
56
  let entryPointCode;
54
57
  for (const path in importMaps) {
55
58
  const moduleCode = importMaps[path];
@@ -5,7 +5,7 @@ const path = require('path');
5
5
  const url = require('url');
6
6
  const util = require('util');
7
7
  const less = require("less/lib/less-node/index.js").default;
8
- const lessLoader = require("../loaders/lessLoader");
8
+ const lessLoader = require("../loaders/less-loader");
9
9
  export default {
10
10
  assert,
11
11
  buffer,