@lat-murmeldjur/weeb_3 0.0.348001 → 0.0.350001
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/package.json +1 -1
- package/weeb_3.d.ts +7 -5
- package/weeb_3.js +82 -38
- package/weeb_3_bg.wasm +0 -0
- package/weeb_3_bg.wasm.d.ts +7 -5
package/package.json
CHANGED
package/weeb_3.d.ts
CHANGED
|
@@ -102,11 +102,13 @@ export interface InitOutput {
|
|
|
102
102
|
readonly __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
103
103
|
readonly requestarguments_method: (a: number, b: number) => void;
|
|
104
104
|
readonly requestarguments_params: (a: number) => number;
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
105
|
+
readonly __wasm_bindgen_func_elem_562: (a: number, b: number) => void;
|
|
106
|
+
readonly __wasm_bindgen_func_elem_1331: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
107
|
+
readonly __wasm_bindgen_func_elem_1329: (a: number, b: number, c: number, d: number) => void;
|
|
108
|
+
readonly __wasm_bindgen_func_elem_1333: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
+
readonly __wasm_bindgen_func_elem_3252: (a: number, b: number, c: number, d: number) => void;
|
|
110
|
+
readonly __wasm_bindgen_func_elem_3022: (a: number, b: number, c: number) => void;
|
|
111
|
+
readonly __wasm_bindgen_func_elem_3015: (a: number, b: number) => void;
|
|
110
112
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
111
113
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
112
114
|
readonly __wbindgen_export3: (a: number) => void;
|
package/weeb_3.js
CHANGED
|
@@ -569,6 +569,10 @@ function __wbg_get_imports() {
|
|
|
569
569
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
570
570
|
return addHeapObject(ret);
|
|
571
571
|
}, arguments); },
|
|
572
|
+
__wbg_call_e8c868596c950cf6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
573
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
574
|
+
return addHeapObject(ret);
|
|
575
|
+
}, arguments); },
|
|
572
576
|
__wbg_canPlayType_941a61eb2660d5fa: function(arg0, arg1, arg2, arg3) {
|
|
573
577
|
const ret = getObject(arg1).canPlayType(getStringFromWasm0(arg2, arg3));
|
|
574
578
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -665,9 +669,6 @@ function __wbg_get_imports() {
|
|
|
665
669
|
const ret = Reflect.deleteProperty(getObject(arg0), getObject(arg1));
|
|
666
670
|
return ret;
|
|
667
671
|
}, arguments); },
|
|
668
|
-
__wbg_delete_74046fcb2b817df6: function(arg0, arg1, arg2) {
|
|
669
|
-
getObject(arg0).delete(getStringFromWasm0(arg1, arg2));
|
|
670
|
-
},
|
|
671
672
|
__wbg_destroy_91b983e1d85d5306: function() { return handleError(function (arg0) {
|
|
672
673
|
getObject(arg0).destroy();
|
|
673
674
|
}, arguments); },
|
|
@@ -1174,7 +1175,7 @@ function __wbg_get_imports() {
|
|
|
1174
1175
|
const a = state0.a;
|
|
1175
1176
|
state0.a = 0;
|
|
1176
1177
|
try {
|
|
1177
|
-
return
|
|
1178
|
+
return __wasm_bindgen_func_elem_3252(a, state0.b, arg0, arg1);
|
|
1178
1179
|
} finally {
|
|
1179
1180
|
state0.a = a;
|
|
1180
1181
|
}
|
|
@@ -1423,10 +1424,6 @@ function __wbg_get_imports() {
|
|
|
1423
1424
|
__wbg_removeAttribute_87259aab06d9f286: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1424
1425
|
getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2));
|
|
1425
1426
|
}, arguments); },
|
|
1426
|
-
__wbg_removeChild_2f0b06213dbc49ca: function() { return handleError(function (arg0, arg1) {
|
|
1427
|
-
const ret = getObject(arg0).removeChild(getObject(arg1));
|
|
1428
|
-
return addHeapObject(ret);
|
|
1429
|
-
}, arguments); },
|
|
1430
1427
|
__wbg_removeEventListener_e63328781a5b9af9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1431
1428
|
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1432
1429
|
}, arguments); },
|
|
@@ -1542,9 +1539,6 @@ function __wbg_get_imports() {
|
|
|
1542
1539
|
__wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
|
|
1543
1540
|
getObject(arg0).body = getObject(arg1);
|
|
1544
1541
|
},
|
|
1545
|
-
__wbg_set_cc56eefd2dd91957: function(arg0, arg1, arg2) {
|
|
1546
|
-
getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
|
|
1547
|
-
},
|
|
1548
1542
|
__wbg_set_className_c1d9e7362164af61: function(arg0, arg1, arg2) {
|
|
1549
1543
|
getObject(arg0).className = getStringFromWasm0(arg1, arg2);
|
|
1550
1544
|
},
|
|
@@ -1780,61 +1774,66 @@ function __wbg_get_imports() {
|
|
|
1780
1774
|
console.warn(getObject(arg0));
|
|
1781
1775
|
},
|
|
1782
1776
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1783
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1784
|
-
const ret =
|
|
1777
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [Externref, Externref], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1778
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_1329);
|
|
1785
1779
|
return addHeapObject(ret);
|
|
1786
1780
|
},
|
|
1787
1781
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1788
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1789
|
-
const ret =
|
|
1782
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [Externref, String], shim_idx: 27, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: false }) -> Externref`.
|
|
1783
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_1331);
|
|
1790
1784
|
return addHeapObject(ret);
|
|
1791
1785
|
},
|
|
1792
1786
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1793
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1794
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1787
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [Externref], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1788
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_3022);
|
|
1795
1789
|
return addHeapObject(ret);
|
|
1796
1790
|
},
|
|
1797
1791
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1798
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1799
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1792
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1793
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_3022);
|
|
1800
1794
|
return addHeapObject(ret);
|
|
1801
1795
|
},
|
|
1802
1796
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1803
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1804
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1797
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [NamedExternref("Event")], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1798
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_3022);
|
|
1805
1799
|
return addHeapObject(ret);
|
|
1806
1800
|
},
|
|
1807
1801
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1808
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1809
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1802
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 29, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1803
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_1333);
|
|
1810
1804
|
return addHeapObject(ret);
|
|
1811
1805
|
},
|
|
1812
1806
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1813
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1814
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1807
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1808
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_3022);
|
|
1815
1809
|
return addHeapObject(ret);
|
|
1816
1810
|
},
|
|
1817
|
-
__wbindgen_cast_0000000000000008: function(arg0) {
|
|
1811
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1812
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [], shim_idx: 83, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_562, __wasm_bindgen_func_elem_3015);
|
|
1814
|
+
return addHeapObject(ret);
|
|
1815
|
+
},
|
|
1816
|
+
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
1818
1817
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1819
1818
|
const ret = arg0;
|
|
1820
1819
|
return addHeapObject(ret);
|
|
1821
1820
|
},
|
|
1822
|
-
|
|
1821
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
1823
1822
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1824
1823
|
const ret = arg0;
|
|
1825
1824
|
return addHeapObject(ret);
|
|
1826
1825
|
},
|
|
1827
|
-
|
|
1826
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
1828
1827
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1829
1828
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1830
1829
|
return addHeapObject(ret);
|
|
1831
1830
|
},
|
|
1832
|
-
|
|
1831
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
1833
1832
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1834
1833
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1835
1834
|
return addHeapObject(ret);
|
|
1836
1835
|
},
|
|
1837
|
-
|
|
1836
|
+
__wbindgen_cast_000000000000000d: function(arg0) {
|
|
1838
1837
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1839
1838
|
const ret = BigInt.asUintN(64, arg0);
|
|
1840
1839
|
return addHeapObject(ret);
|
|
@@ -1857,22 +1856,42 @@ function __wbg_get_imports() {
|
|
|
1857
1856
|
};
|
|
1858
1857
|
}
|
|
1859
1858
|
|
|
1860
|
-
function
|
|
1861
|
-
wasm.
|
|
1859
|
+
function __wasm_bindgen_func_elem_3015(arg0, arg1) {
|
|
1860
|
+
wasm.__wasm_bindgen_func_elem_3015(arg0, arg1);
|
|
1862
1861
|
}
|
|
1863
1862
|
|
|
1864
|
-
function
|
|
1865
|
-
wasm.
|
|
1863
|
+
function __wasm_bindgen_func_elem_3022(arg0, arg1, arg2) {
|
|
1864
|
+
wasm.__wasm_bindgen_func_elem_3022(arg0, arg1, addHeapObject(arg2));
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
function __wasm_bindgen_func_elem_1329(arg0, arg1, arg2, arg3) {
|
|
1868
|
+
wasm.__wasm_bindgen_func_elem_1329(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
function __wasm_bindgen_func_elem_1333(arg0, arg1, arg2) {
|
|
1872
|
+
try {
|
|
1873
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1874
|
+
wasm.__wasm_bindgen_func_elem_1333(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1875
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1876
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1877
|
+
if (r1) {
|
|
1878
|
+
throw takeObject(r0);
|
|
1879
|
+
}
|
|
1880
|
+
} finally {
|
|
1881
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1882
|
+
}
|
|
1866
1883
|
}
|
|
1867
1884
|
|
|
1868
|
-
function
|
|
1869
|
-
wasm.
|
|
1885
|
+
function __wasm_bindgen_func_elem_3252(arg0, arg1, arg2, arg3) {
|
|
1886
|
+
wasm.__wasm_bindgen_func_elem_3252(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1870
1887
|
}
|
|
1871
1888
|
|
|
1872
|
-
function
|
|
1889
|
+
function __wasm_bindgen_func_elem_1331(arg0, arg1, arg2, arg3) {
|
|
1873
1890
|
try {
|
|
1874
1891
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1875
|
-
|
|
1892
|
+
const ptr0 = passStringToWasm0(arg3, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1893
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1894
|
+
wasm.__wasm_bindgen_func_elem_1331(retptr, arg0, arg1, addHeapObject(arg2), ptr0, len0);
|
|
1876
1895
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1877
1896
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1878
1897
|
if (r1) {
|
|
@@ -2033,6 +2052,31 @@ function isLikeNone(x) {
|
|
|
2033
2052
|
return x === undefined || x === null;
|
|
2034
2053
|
}
|
|
2035
2054
|
|
|
2055
|
+
function makeClosure(arg0, arg1, dtor, f) {
|
|
2056
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
2057
|
+
const real = (...args) => {
|
|
2058
|
+
|
|
2059
|
+
// First up with a closure we increment the internal reference
|
|
2060
|
+
// count. This ensures that the Rust closure environment won't
|
|
2061
|
+
// be deallocated while we're invoking it.
|
|
2062
|
+
state.cnt++;
|
|
2063
|
+
try {
|
|
2064
|
+
return f(state.a, state.b, ...args);
|
|
2065
|
+
} finally {
|
|
2066
|
+
real._wbg_cb_unref();
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
real._wbg_cb_unref = () => {
|
|
2070
|
+
if (--state.cnt === 0) {
|
|
2071
|
+
state.dtor(state.a, state.b);
|
|
2072
|
+
state.a = 0;
|
|
2073
|
+
CLOSURE_DTORS.unregister(state);
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
2077
|
+
return real;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2036
2080
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
2037
2081
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
2038
2082
|
const real = (...args) => {
|
package/weeb_3_bg.wasm
CHANGED
|
Binary file
|
package/weeb_3_bg.wasm.d.ts
CHANGED
|
@@ -35,11 +35,13 @@ export const weeb3workerruntime_start: (a: number, b: number) => number;
|
|
|
35
35
|
export const __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
36
36
|
export const requestarguments_method: (a: number, b: number) => void;
|
|
37
37
|
export const requestarguments_params: (a: number) => number;
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
38
|
+
export const __wasm_bindgen_func_elem_562: (a: number, b: number) => void;
|
|
39
|
+
export const __wasm_bindgen_func_elem_1331: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
40
|
+
export const __wasm_bindgen_func_elem_1329: (a: number, b: number, c: number, d: number) => void;
|
|
41
|
+
export const __wasm_bindgen_func_elem_1333: (a: number, b: number, c: number, d: number) => void;
|
|
42
|
+
export const __wasm_bindgen_func_elem_3252: (a: number, b: number, c: number, d: number) => void;
|
|
43
|
+
export const __wasm_bindgen_func_elem_3022: (a: number, b: number, c: number) => void;
|
|
44
|
+
export const __wasm_bindgen_func_elem_3015: (a: number, b: number) => void;
|
|
43
45
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
44
46
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
45
47
|
export const __wbindgen_export3: (a: number) => void;
|