@lat-murmeldjur/weeb_3 0.0.338001 → 0.0.339001
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/service.js +6 -7
- package/weeb_3.d.ts +5 -5
- package/weeb_3.js +23 -19
- package/weeb_3_bg.wasm +0 -0
- package/weeb_3_bg.wasm.d.ts +5 -5
package/package.json
CHANGED
package/service.js
CHANGED
|
@@ -14,11 +14,11 @@ const SERVICE_WORKER_PROTOCOL = 10;
|
|
|
14
14
|
const MIB_BYTES = 1024 * 1024;
|
|
15
15
|
const STREAM_STORAGE_WINDOW_BYTES = MIB_BYTES / 2;
|
|
16
16
|
const STREAM_LOOKAHEAD_CHUNKS = 8;
|
|
17
|
-
const HLS_STREAM_WINDOW_BYTES = MIB_BYTES;
|
|
18
|
-
const HLS_STREAM_INITIAL_LOOKAHEAD_CHUNKS =
|
|
19
|
-
const HLS_STREAM_LOOKAHEAD_CHUNKS =
|
|
20
|
-
const HLS_LIVE_STREAM_WINDOW_BYTES = MIB_BYTES;
|
|
21
|
-
const HLS_LIVE_STREAM_LOOKAHEAD_CHUNKS =
|
|
17
|
+
const HLS_STREAM_WINDOW_BYTES = MIB_BYTES / 2;
|
|
18
|
+
const HLS_STREAM_INITIAL_LOOKAHEAD_CHUNKS = 1;
|
|
19
|
+
const HLS_STREAM_LOOKAHEAD_CHUNKS = 4;
|
|
20
|
+
const HLS_LIVE_STREAM_WINDOW_BYTES = MIB_BYTES / 2;
|
|
21
|
+
const HLS_LIVE_STREAM_LOOKAHEAD_CHUNKS = 4;
|
|
22
22
|
const RANGE_REQUEST_FLIGHTS = new Map();
|
|
23
23
|
const CLIENT_RUNTIME_PROBES = new Map();
|
|
24
24
|
const CLIENT_RUNTIME_PROBE_TIMEOUT_MS = 1_500;
|
|
@@ -749,14 +749,13 @@ async function forwardRequestToRust(request, event) {
|
|
|
749
749
|
return new Response("weeb-3 stream response has an invalid length", { status: 502 });
|
|
750
750
|
}
|
|
751
751
|
const liveHlsResource = hlsResource && url.searchParams.get("start") === "live";
|
|
752
|
-
const startupHlsResource = hlsResource && url.searchParams.get("startup") === "1";
|
|
753
752
|
const windowBytes = liveHlsResource
|
|
754
753
|
? HLS_LIVE_STREAM_WINDOW_BYTES
|
|
755
754
|
: hlsResource ? HLS_STREAM_WINDOW_BYTES : STREAM_STORAGE_WINDOW_BYTES;
|
|
756
755
|
const lookahead = liveHlsResource
|
|
757
756
|
? HLS_LIVE_STREAM_LOOKAHEAD_CHUNKS
|
|
758
757
|
: hlsResource ? HLS_STREAM_LOOKAHEAD_CHUNKS : STREAM_LOOKAHEAD_CHUNKS;
|
|
759
|
-
const initialLookahead =
|
|
758
|
+
const initialLookahead = hlsResource
|
|
760
759
|
? HLS_STREAM_INITIAL_LOOKAHEAD_CHUNKS
|
|
761
760
|
: lookahead;
|
|
762
761
|
return new Response(createRustRangeStream(
|
package/weeb_3.d.ts
CHANGED
|
@@ -84,11 +84,11 @@ export interface InitOutput {
|
|
|
84
84
|
readonly __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
85
85
|
readonly requestarguments_method: (a: number, b: number) => void;
|
|
86
86
|
readonly requestarguments_params: (a: number) => number;
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
87
|
+
readonly __wasm_bindgen_func_elem_545: (a: number, b: number) => void;
|
|
88
|
+
readonly __wasm_bindgen_func_elem_1428: (a: number, b: number, c: number, d: number) => void;
|
|
89
|
+
readonly __wasm_bindgen_func_elem_1430: (a: number, b: number, c: number, d: number) => void;
|
|
90
|
+
readonly __wasm_bindgen_func_elem_3473: (a: number, b: number, c: number) => void;
|
|
91
|
+
readonly __wasm_bindgen_func_elem_3399: (a: number, b: number) => void;
|
|
92
92
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
93
93
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
94
94
|
readonly __wbindgen_export3: (a: number) => void;
|
package/weeb_3.js
CHANGED
|
@@ -1031,6 +1031,10 @@ function __wbg_get_imports() {
|
|
|
1031
1031
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1032
1032
|
return ret;
|
|
1033
1033
|
},
|
|
1034
|
+
__wbg_is_f29129f676e5410c: function(arg0, arg1) {
|
|
1035
|
+
const ret = Object.is(getObject(arg0), getObject(arg1));
|
|
1036
|
+
return ret;
|
|
1037
|
+
},
|
|
1034
1038
|
__wbg_item_c79c0bccbcfd8735: function(arg0, arg1) {
|
|
1035
1039
|
const ret = getObject(arg0).item(arg1 >>> 0);
|
|
1036
1040
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -1153,7 +1157,7 @@ function __wbg_get_imports() {
|
|
|
1153
1157
|
const a = state0.a;
|
|
1154
1158
|
state0.a = 0;
|
|
1155
1159
|
try {
|
|
1156
|
-
return
|
|
1160
|
+
return __wasm_bindgen_func_elem_1428(a, state0.b, arg0, arg1);
|
|
1157
1161
|
} finally {
|
|
1158
1162
|
state0.a = a;
|
|
1159
1163
|
}
|
|
@@ -1724,38 +1728,38 @@ function __wbg_get_imports() {
|
|
|
1724
1728
|
console.warn(getObject(arg0));
|
|
1725
1729
|
},
|
|
1726
1730
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1727
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1728
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1731
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref, Externref], shim_idx: 23, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1732
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_1428);
|
|
1729
1733
|
return addHeapObject(ret);
|
|
1730
1734
|
},
|
|
1731
1735
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1732
1736
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1733
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1737
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_3473);
|
|
1734
1738
|
return addHeapObject(ret);
|
|
1735
1739
|
},
|
|
1736
1740
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1737
1741
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1738
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1742
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_3473);
|
|
1739
1743
|
return addHeapObject(ret);
|
|
1740
1744
|
},
|
|
1741
1745
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1742
1746
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1743
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1747
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_3473);
|
|
1744
1748
|
return addHeapObject(ret);
|
|
1745
1749
|
},
|
|
1746
1750
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1747
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1748
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1751
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 25, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1752
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_1430);
|
|
1749
1753
|
return addHeapObject(ret);
|
|
1750
1754
|
},
|
|
1751
1755
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1752
1756
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1753
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1757
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_3473);
|
|
1754
1758
|
return addHeapObject(ret);
|
|
1755
1759
|
},
|
|
1756
1760
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1757
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [], shim_idx:
|
|
1758
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1761
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [], shim_idx: 98, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1762
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_545, __wasm_bindgen_func_elem_3399);
|
|
1759
1763
|
return addHeapObject(ret);
|
|
1760
1764
|
},
|
|
1761
1765
|
__wbindgen_cast_0000000000000008: function(arg0) {
|
|
@@ -1808,22 +1812,22 @@ function __wbg_get_imports() {
|
|
|
1808
1812
|
};
|
|
1809
1813
|
}
|
|
1810
1814
|
|
|
1811
|
-
function
|
|
1812
|
-
wasm.
|
|
1815
|
+
function __wasm_bindgen_func_elem_3399(arg0, arg1) {
|
|
1816
|
+
wasm.__wasm_bindgen_func_elem_3399(arg0, arg1);
|
|
1813
1817
|
}
|
|
1814
1818
|
|
|
1815
|
-
function
|
|
1816
|
-
wasm.
|
|
1819
|
+
function __wasm_bindgen_func_elem_3473(arg0, arg1, arg2) {
|
|
1820
|
+
wasm.__wasm_bindgen_func_elem_3473(arg0, arg1, addHeapObject(arg2));
|
|
1817
1821
|
}
|
|
1818
1822
|
|
|
1819
|
-
function
|
|
1820
|
-
wasm.
|
|
1823
|
+
function __wasm_bindgen_func_elem_1428(arg0, arg1, arg2, arg3) {
|
|
1824
|
+
wasm.__wasm_bindgen_func_elem_1428(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1821
1825
|
}
|
|
1822
1826
|
|
|
1823
|
-
function
|
|
1827
|
+
function __wasm_bindgen_func_elem_1430(arg0, arg1, arg2) {
|
|
1824
1828
|
try {
|
|
1825
1829
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1826
|
-
wasm.
|
|
1830
|
+
wasm.__wasm_bindgen_func_elem_1430(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1827
1831
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1828
1832
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1829
1833
|
if (r1) {
|
package/weeb_3_bg.wasm
CHANGED
|
Binary file
|
package/weeb_3_bg.wasm.d.ts
CHANGED
|
@@ -32,11 +32,11 @@ export const weeb3no103_uploadWithRedundancy: (a: number, b: number, c: number,
|
|
|
32
32
|
export const __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
33
33
|
export const requestarguments_method: (a: number, b: number) => void;
|
|
34
34
|
export const requestarguments_params: (a: number) => number;
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
35
|
+
export const __wasm_bindgen_func_elem_545: (a: number, b: number) => void;
|
|
36
|
+
export const __wasm_bindgen_func_elem_1428: (a: number, b: number, c: number, d: number) => void;
|
|
37
|
+
export const __wasm_bindgen_func_elem_1430: (a: number, b: number, c: number, d: number) => void;
|
|
38
|
+
export const __wasm_bindgen_func_elem_3473: (a: number, b: number, c: number) => void;
|
|
39
|
+
export const __wasm_bindgen_func_elem_3399: (a: number, b: number) => void;
|
|
40
40
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
41
41
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
42
42
|
export const __wbindgen_export3: (a: number) => void;
|