@siafoundation/sia-storage 0.1.1 → 0.1.2
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/index.node.cjs +31 -12
- package/dist/index.node.cjs.map +1 -1
- package/dist/next.js +1 -1
- package/dist/sia-storage-sw.js +2 -2
- package/package.json +8 -8
- package/wasm/sia_storage_wasm.d.ts +7 -7
- package/wasm/sia_storage_wasm.js +23 -23
- package/wasm/sia_storage_wasm_bg.wasm +0 -0
- package/wasm/sia_storage_wasm_bg.wasm.d.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siafoundation/sia-storage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"prepublishOnly": "bun run build && bun test",
|
|
64
64
|
"publish-npm": "bun run scripts/publish.ts"
|
|
65
65
|
},
|
|
66
|
-
"optionalDependencies": {
|
|
67
|
-
"@siafoundation/sia-storage-darwin-arm64": "0.1.1",
|
|
68
|
-
"@siafoundation/sia-storage-darwin-x64": "0.1.1",
|
|
69
|
-
"@siafoundation/sia-storage-linux-x64-gnu": "0.1.1",
|
|
70
|
-
"@siafoundation/sia-storage-linux-arm64-gnu": "0.1.1",
|
|
71
|
-
"@siafoundation/sia-storage-win32-x64-msvc": "0.1.1"
|
|
72
|
-
},
|
|
73
66
|
"devDependencies": {
|
|
74
67
|
"@types/bun": "^1.3.12",
|
|
75
68
|
"@types/node": "^24.13.2",
|
|
76
69
|
"playwright": "^1.60.0",
|
|
77
70
|
"tsup": "^8.4.0",
|
|
78
71
|
"typescript": "5.9.3"
|
|
72
|
+
},
|
|
73
|
+
"optionalDependencies": {
|
|
74
|
+
"@siafoundation/sia-storage-darwin-arm64": "0.1.2",
|
|
75
|
+
"@siafoundation/sia-storage-darwin-x64": "0.1.2",
|
|
76
|
+
"@siafoundation/sia-storage-linux-x64-gnu": "0.1.2",
|
|
77
|
+
"@siafoundation/sia-storage-linux-arm64-gnu": "0.1.2",
|
|
78
|
+
"@siafoundation/sia-storage-win32-x64-msvc": "0.1.2"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -794,13 +794,13 @@ export interface InitOutput {
|
|
|
794
794
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
795
795
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
796
796
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
797
|
-
readonly
|
|
798
|
-
readonly
|
|
799
|
-
readonly
|
|
800
|
-
readonly
|
|
801
|
-
readonly
|
|
802
|
-
readonly
|
|
803
|
-
readonly
|
|
797
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
798
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
799
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__3: (a: number, b: number, c: any) => [number, number];
|
|
800
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__4: (a: number, b: number, c: any) => [number, number];
|
|
801
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
802
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
803
|
+
readonly wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
804
804
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
805
805
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
806
806
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/wasm/sia_storage_wasm.js
CHANGED
|
@@ -1630,7 +1630,7 @@ function __wbg_get_imports() {
|
|
|
1630
1630
|
const a = state0.a;
|
|
1631
1631
|
state0.a = 0;
|
|
1632
1632
|
try {
|
|
1633
|
-
return
|
|
1633
|
+
return wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1634
1634
|
} finally {
|
|
1635
1635
|
state0.a = a;
|
|
1636
1636
|
}
|
|
@@ -1668,7 +1668,7 @@ function __wbg_get_imports() {
|
|
|
1668
1668
|
const a = state0.a;
|
|
1669
1669
|
state0.a = 0;
|
|
1670
1670
|
try {
|
|
1671
|
-
return
|
|
1671
|
+
return wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1672
1672
|
} finally {
|
|
1673
1673
|
state0.a = a;
|
|
1674
1674
|
}
|
|
@@ -1894,33 +1894,33 @@ function __wbg_get_imports() {
|
|
|
1894
1894
|
return ret;
|
|
1895
1895
|
},
|
|
1896
1896
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1897
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1897
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1063, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1898
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_);
|
|
1899
1899
|
return ret;
|
|
1900
1900
|
},
|
|
1901
1901
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1902
1902
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 525, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1903
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1903
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue______true_);
|
|
1904
1904
|
return ret;
|
|
1905
1905
|
},
|
|
1906
1906
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1907
1907
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 581, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1908
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1908
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_);
|
|
1909
1909
|
return ret;
|
|
1910
1910
|
},
|
|
1911
1911
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1912
1912
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WebTransportBidirectionalStream")], shim_idx: 581, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1913
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1913
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__3);
|
|
1914
1914
|
return ret;
|
|
1915
1915
|
},
|
|
1916
1916
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1917
1917
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 581, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1918
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1918
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__4);
|
|
1919
1919
|
return ret;
|
|
1920
1920
|
},
|
|
1921
1921
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1922
1922
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 870, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1923
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1923
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke_______true_);
|
|
1924
1924
|
return ret;
|
|
1925
1925
|
},
|
|
1926
1926
|
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
@@ -1975,44 +1975,44 @@ function __wbg_get_imports() {
|
|
|
1975
1975
|
};
|
|
1976
1976
|
}
|
|
1977
1977
|
|
|
1978
|
-
function
|
|
1979
|
-
wasm.
|
|
1978
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1979
|
+
wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
-
function
|
|
1983
|
-
wasm.
|
|
1982
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue______true_(arg0, arg1, arg2) {
|
|
1983
|
+
wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue______true_(arg0, arg1, arg2);
|
|
1984
1984
|
}
|
|
1985
1985
|
|
|
1986
|
-
function
|
|
1987
|
-
const ret = wasm.
|
|
1986
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_(arg0, arg1, arg2) {
|
|
1987
|
+
const ret = wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_(arg0, arg1, arg2);
|
|
1988
1988
|
if (ret[1]) {
|
|
1989
1989
|
throw takeFromExternrefTable0(ret[0]);
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
|
-
function
|
|
1994
|
-
const ret = wasm.
|
|
1993
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_(arg0, arg1, arg2) {
|
|
1994
|
+
const ret = wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_(arg0, arg1, arg2);
|
|
1995
1995
|
if (ret[1]) {
|
|
1996
1996
|
throw takeFromExternrefTable0(ret[0]);
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
1999
|
|
|
2000
|
-
function
|
|
2001
|
-
const ret = wasm.
|
|
2000
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__3(arg0, arg1, arg2) {
|
|
2001
|
+
const ret = wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__3(arg0, arg1, arg2);
|
|
2002
2002
|
if (ret[1]) {
|
|
2003
2003
|
throw takeFromExternrefTable0(ret[0]);
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
|
-
function
|
|
2008
|
-
const ret = wasm.
|
|
2007
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__4(arg0, arg1, arg2) {
|
|
2008
|
+
const ret = wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__4(arg0, arg1, arg2);
|
|
2009
2009
|
if (ret[1]) {
|
|
2010
2010
|
throw takeFromExternrefTable0(ret[0]);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
2013
|
|
|
2014
|
-
function
|
|
2015
|
-
wasm.
|
|
2014
|
+
function wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
2015
|
+
wasm.wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
2016
2016
|
}
|
|
2017
2017
|
|
|
2018
2018
|
|
|
Binary file
|
|
@@ -99,13 +99,13 @@ export const intounderlyingsink_close: (a: number) => any;
|
|
|
99
99
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
100
100
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
101
101
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
102
|
-
export const
|
|
103
|
-
export const
|
|
104
|
-
export const
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
102
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
103
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
104
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__3: (a: number, b: number, c: any) => [number, number];
|
|
105
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___sys__Undefined__core_608f92abc48d28da___result__Result_____wasm_bindgen_a939ac12ad536d64___JsError___true__4: (a: number, b: number, c: any) => [number, number];
|
|
106
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined___js_sys_7efaea6b2290715d___Function_fn_wasm_bindgen_a939ac12ad536d64___JsValue_____wasm_bindgen_a939ac12ad536d64___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
107
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke___wasm_bindgen_a939ac12ad536d64___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
108
|
+
export const wasm_bindgen_a939ac12ad536d64___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
109
109
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
110
110
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
111
111
|
export const __wbindgen_exn_store: (a: number) => void;
|