@utoo/web 1.4.3 → 1.4.5
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/threadWorker.js +1 -0
- package/dist/worker.js +2 -0
- package/dist/worker.js.LICENSE.txt +5 -0
- package/esm/loaderWorker.js +1 -1
- package/esm/utoo/index.js +23 -23
- package/esm/utoo/index_bg.wasm +0 -0
- package/esm/webpackLoaders/cjs.js +7 -0
- package/esm/webpackLoaders/polyfills/nodePolyFills.d.ts +6 -2
- package/esm/webpackLoaders/polyfills/nodePolyFills.js +6 -2
- package/package.json +8 -3
package/esm/utoo/index.js
CHANGED
|
@@ -1480,7 +1480,7 @@ function __wbg_get_imports(memory) {
|
|
|
1480
1480
|
const a = state0.a;
|
|
1481
1481
|
state0.a = 0;
|
|
1482
1482
|
try {
|
|
1483
|
-
return
|
|
1483
|
+
return __wasm_bindgen_func_elem_3344(a, state0.b, arg0, arg1);
|
|
1484
1484
|
}
|
|
1485
1485
|
finally {
|
|
1486
1486
|
state0.a = a;
|
|
@@ -1807,33 +1807,33 @@ function __wbg_get_imports(memory) {
|
|
|
1807
1807
|
}, arguments);
|
|
1808
1808
|
},
|
|
1809
1809
|
__wbindgen_cast_0000000000000001: function (arg0, arg1) {
|
|
1810
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1811
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1810
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1026, function: Function { arguments: [Externref], shim_idx: 3963, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1811
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19985, __wasm_bindgen_func_elem_79643);
|
|
1812
1812
|
return addHeapObject(ret);
|
|
1813
1813
|
},
|
|
1814
1814
|
__wbindgen_cast_0000000000000002: function (arg0, arg1) {
|
|
1815
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1816
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1815
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1026, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3963, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1816
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19985, __wasm_bindgen_func_elem_79643);
|
|
1817
1817
|
return addHeapObject(ret);
|
|
1818
1818
|
},
|
|
1819
1819
|
__wbindgen_cast_0000000000000003: function (arg0, arg1) {
|
|
1820
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1821
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1820
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1026, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 3966, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1821
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19985, __wasm_bindgen_func_elem_79679);
|
|
1822
1822
|
return addHeapObject(ret);
|
|
1823
1823
|
},
|
|
1824
1824
|
__wbindgen_cast_0000000000000004: function (arg0, arg1) {
|
|
1825
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1826
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1825
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1026, function: Function { arguments: [], shim_idx: 1027, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1826
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19985, __wasm_bindgen_func_elem_19971);
|
|
1827
1827
|
return addHeapObject(ret);
|
|
1828
1828
|
},
|
|
1829
1829
|
__wbindgen_cast_0000000000000005: function (arg0, arg1) {
|
|
1830
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1831
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
1830
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3905, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 3906, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1831
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_79005, __wasm_bindgen_func_elem_79006);
|
|
1832
1832
|
return addHeapObject(ret);
|
|
1833
1833
|
},
|
|
1834
1834
|
__wbindgen_cast_0000000000000006: function (arg0, arg1) {
|
|
1835
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1836
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1835
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3969, function: Function { arguments: [], shim_idx: 1027, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1836
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_79710, __wasm_bindgen_func_elem_19971);
|
|
1837
1837
|
return addHeapObject(ret);
|
|
1838
1838
|
},
|
|
1839
1839
|
__wbindgen_cast_0000000000000007: function (arg0) {
|
|
@@ -1881,25 +1881,25 @@ function __wbg_get_imports(memory) {
|
|
|
1881
1881
|
"./index_bg.js": import0,
|
|
1882
1882
|
};
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1885
|
-
wasm.
|
|
1884
|
+
function __wasm_bindgen_func_elem_19971(arg0, arg1) {
|
|
1885
|
+
wasm.__wasm_bindgen_func_elem_19971(arg0, arg1);
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1888
|
-
wasm.
|
|
1887
|
+
function __wasm_bindgen_func_elem_79643(arg0, arg1, arg2) {
|
|
1888
|
+
wasm.__wasm_bindgen_func_elem_79643(arg0, arg1, addHeapObject(arg2));
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function __wasm_bindgen_func_elem_79679(arg0, arg1, arg2) {
|
|
1891
1891
|
try {
|
|
1892
|
-
wasm.
|
|
1892
|
+
wasm.__wasm_bindgen_func_elem_79679(arg0, arg1, addBorrowedObject(arg2));
|
|
1893
1893
|
}
|
|
1894
1894
|
finally {
|
|
1895
1895
|
heap[stack_pointer++] = undefined;
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1899
|
-
wasm.
|
|
1898
|
+
function __wasm_bindgen_func_elem_79006(arg0, arg1, arg2) {
|
|
1899
|
+
wasm.__wasm_bindgen_func_elem_79006(arg0, arg1, addHeapObject(arg2));
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1902
|
-
wasm.
|
|
1901
|
+
function __wasm_bindgen_func_elem_3344(arg0, arg1, arg2, arg3) {
|
|
1902
|
+
wasm.__wasm_bindgen_func_elem_3344(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1903
1903
|
}
|
|
1904
1904
|
const __wbindgen_enum_DirEntryType = ["file", "directory"];
|
|
1905
1905
|
const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
|
package/esm/utoo/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -205,5 +205,12 @@ export async function cjs(entrypoint, importMaps) {
|
|
|
205
205
|
self.__systemjs_require__ = (id) => loadModule(id, path.dirname(entrypoint), importMaps, entrypoint);
|
|
206
206
|
// @ts-ignore
|
|
207
207
|
self.__systemjs_require__.resolve = (request) => request;
|
|
208
|
+
// @ts-ignore
|
|
209
|
+
self.createRequire = (filename) => {
|
|
210
|
+
const context = path.dirname(filename);
|
|
211
|
+
const req = (id) => loadModule(id, context, importMaps, entrypoint);
|
|
212
|
+
req.resolve = (request) => request;
|
|
213
|
+
return req;
|
|
214
|
+
};
|
|
208
215
|
loadModule(entrypoint, path.dirname(entrypoint), importMaps, entrypoint);
|
|
209
216
|
}
|
|
@@ -28,8 +28,12 @@ declare const _default: {
|
|
|
28
28
|
readonly "node:http2": any;
|
|
29
29
|
readonly https: any;
|
|
30
30
|
readonly "node:https": any;
|
|
31
|
-
readonly module:
|
|
32
|
-
|
|
31
|
+
readonly module: {
|
|
32
|
+
createRequire: any;
|
|
33
|
+
};
|
|
34
|
+
readonly "node:module": {
|
|
35
|
+
createRequire: any;
|
|
36
|
+
};
|
|
33
37
|
readonly net: any;
|
|
34
38
|
readonly "node:net": any;
|
|
35
39
|
readonly os: any;
|
|
@@ -116,10 +116,14 @@ export default {
|
|
|
116
116
|
return require("https");
|
|
117
117
|
},
|
|
118
118
|
get module() {
|
|
119
|
-
return
|
|
119
|
+
return {
|
|
120
|
+
createRequire: self.createRequire,
|
|
121
|
+
};
|
|
120
122
|
},
|
|
121
123
|
get "node:module"() {
|
|
122
|
-
return
|
|
124
|
+
return {
|
|
125
|
+
createRequire: self.createRequire,
|
|
126
|
+
};
|
|
123
127
|
},
|
|
124
128
|
get net() {
|
|
125
129
|
return require("net");
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/web",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"module": "esm/index.js",
|
|
5
5
|
"types": "esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
|
+
"dist",
|
|
7
8
|
"esm"
|
|
8
9
|
],
|
|
9
10
|
"scripts": {
|
|
@@ -19,8 +20,12 @@
|
|
|
19
20
|
"dev": "npm run build-wasm -- --profile wasm-dev && npm run bindgen-dev && npx turbo run tsc --filter=@utoo/web && npm run build-loaderWorker && npm run copy-wasm",
|
|
20
21
|
"dev:pm": "npm run build-wasm:pm -- --profile wasm-dev && npm run bindgen-dev && npm run tsc && npm run copy-wasm",
|
|
21
22
|
"wasm-opt": "wasm-opt src/utoo/index_bg.wasm -o esm/utoo/index_bg.wasm --enable-threads --enable-bulk-memory --enable-reference-types --enable-simd --enable-exception-handling --enable-tail-call --enable-nontrapping-float-to-int -Oz",
|
|
22
|
-
"build": "npm run build-wasm -- --release && npm run bindgen-build && npm run tsc && npm run build-loaderWorker && npm run wasm-opt",
|
|
23
|
-
"build:local": "CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ npm run build-wasm -- --profile release-local && npm run bindgen-build:local && npm run build:shared && npm run tsc && npm run build-loaderWorker && npm run copy-wasm",
|
|
23
|
+
"build": "npm run build-wasm -- --release && npm run bindgen-build && npm run tsc && npm run build-worker && npm run build-threadWorker && npm run build-loaderWorker && npm run wasm-opt",
|
|
24
|
+
"build:local": "CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ npm run build-wasm -- --profile release-local && npm run bindgen-build:local && npm run build:shared && npm run tsc && npm run build-worker && npm run build-threadWorker && npm run build-loaderWorker && npm run copy-wasm",
|
|
25
|
+
"build-workers": "npm run build-worker && npm run build-threadWorker && npm run build-serviceWorker && npm run build-loaderWorker",
|
|
26
|
+
"build-worker": "node cli/umd.js -e ./src/worker.ts -o ./dist/worker.js -t webworker -np",
|
|
27
|
+
"build-threadWorker": "node cli/umd.js -e ./src/threadWorker.ts -o ./dist/threadWorker.js -t webworker -np",
|
|
28
|
+
"build-serviceWorker": "node cli/umd.js -e ./src/serviceWorker/index.ts -o ./dist/serviceWorker.js -t webworker -np",
|
|
24
29
|
"build-loaderWorker": "node cli/umd.js -e ./src/webpackLoaders/worker.ts -o ./esm/loaderWorker.js -t webworker",
|
|
25
30
|
"clean": "rm -rf esm src/utoo",
|
|
26
31
|
"prepublishOnly": "turbo run build --filter=@utoo/web"
|