libfw-client 0.4.1 → 0.4.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/package.json +1 -1
- package/pkg/libfw_client.d.ts +2 -7
- package/pkg/libfw_client.js +28 -26
- package/pkg/libfw_client_bg.wasm +0 -0
- package/pkg/libfw_client_bg.wasm.d.ts +2 -1
- package/pkg/package.json +1 -1
package/package.json
CHANGED
package/pkg/libfw_client.d.ts
CHANGED
|
@@ -17,14 +17,10 @@ export class LibfwClient {
|
|
|
17
17
|
done_bytes(): number;
|
|
18
18
|
/**
|
|
19
19
|
* Download a single file at `file_path` into the chosen local directory.
|
|
20
|
-
*
|
|
21
|
-
* Resolves with the number of bytes written.
|
|
22
20
|
*/
|
|
23
21
|
download_file(base_url: string, token: string, file_path: string): Promise<any>;
|
|
24
22
|
/**
|
|
25
23
|
* Download every file under the virtual `dirPath` (empty = root).
|
|
26
|
-
*
|
|
27
|
-
* Resolves with the number of bytes written.
|
|
28
24
|
*/
|
|
29
25
|
download_folder(base_url: string, token: string, dir_path: string): Promise<any>;
|
|
30
26
|
/**
|
|
@@ -74,8 +70,6 @@ export class LibfwClient {
|
|
|
74
70
|
tune_state(): any;
|
|
75
71
|
/**
|
|
76
72
|
* Upload the files reported by the JS `getFileList` callback.
|
|
77
|
-
*
|
|
78
|
-
* Resolves with the number of bytes uploaded.
|
|
79
73
|
*/
|
|
80
74
|
upload(base_url: string, token: string): Promise<any>;
|
|
81
75
|
}
|
|
@@ -111,7 +105,8 @@ export interface InitOutput {
|
|
|
111
105
|
readonly start: () => void;
|
|
112
106
|
readonly wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b2c787b844a3ac79___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
113
107
|
readonly wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___js_sys_209827a80d159db4___Function_fn_wasm_bindgen_b2c787b844a3ac79___JsValue_____wasm_bindgen_b2c787b844a3ac79___sys__Undefined___js_sys_209827a80d159db4___Function_fn_wasm_bindgen_b2c787b844a3ac79___JsValue_____wasm_bindgen_b2c787b844a3ac79___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
114
|
-
readonly
|
|
108
|
+
readonly wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
109
|
+
readonly wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true__2: (a: number, b: number, c: any) => void;
|
|
115
110
|
readonly wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
116
111
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
117
112
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/pkg/libfw_client.js
CHANGED
|
@@ -30,8 +30,6 @@ export class LibfwClient {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Download a single file at `file_path` into the chosen local directory.
|
|
33
|
-
*
|
|
34
|
-
* Resolves with the number of bytes written.
|
|
35
33
|
* @param {string} base_url
|
|
36
34
|
* @param {string} token
|
|
37
35
|
* @param {string} file_path
|
|
@@ -49,8 +47,6 @@ export class LibfwClient {
|
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
49
|
* Download every file under the virtual `dirPath` (empty = root).
|
|
52
|
-
*
|
|
53
|
-
* Resolves with the number of bytes written.
|
|
54
50
|
* @param {string} base_url
|
|
55
51
|
* @param {string} token
|
|
56
52
|
* @param {string} dir_path
|
|
@@ -157,8 +153,6 @@ export class LibfwClient {
|
|
|
157
153
|
}
|
|
158
154
|
/**
|
|
159
155
|
* Upload the files reported by the JS `getFileList` callback.
|
|
160
|
-
*
|
|
161
|
-
* Resolves with the number of bytes uploaded.
|
|
162
156
|
* @param {string} base_url
|
|
163
157
|
* @param {string} token
|
|
164
158
|
* @returns {Promise<any>}
|
|
@@ -273,9 +267,16 @@ function __wbg_get_imports() {
|
|
|
273
267
|
const ret = arg0.call(arg1, arg2);
|
|
274
268
|
return ret;
|
|
275
269
|
}, arguments); },
|
|
270
|
+
__wbg_catch_c1a60df4c30d76d3: function(arg0, arg1) {
|
|
271
|
+
const ret = arg0.catch(arg1);
|
|
272
|
+
return ret;
|
|
273
|
+
},
|
|
276
274
|
__wbg_clearInterval_2e2069e95ad09d4f: function(arg0, arg1) {
|
|
277
275
|
arg0.clearInterval(arg1);
|
|
278
276
|
},
|
|
277
|
+
__wbg_clearTimeout_8f80437be2324e09: function(arg0, arg1) {
|
|
278
|
+
arg0.clearTimeout(arg1);
|
|
279
|
+
},
|
|
279
280
|
__wbg_encodeURIComponent_d0140ae6e13eb27b: function(arg0, arg1) {
|
|
280
281
|
const ret = encodeURIComponent(getStringFromWasm0(arg0, arg1));
|
|
281
282
|
return ret;
|
|
@@ -455,10 +456,6 @@ function __wbg_get_imports() {
|
|
|
455
456
|
const ret = Date.now();
|
|
456
457
|
return ret;
|
|
457
458
|
},
|
|
458
|
-
__wbg_of_5f1b88183ddb5d94: function(arg0, arg1) {
|
|
459
|
-
const ret = Array.of(arg0, arg1);
|
|
460
|
-
return ret;
|
|
461
|
-
},
|
|
462
459
|
__wbg_open_90286a4ce0ae2098: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
463
460
|
arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
|
|
464
461
|
}, arguments); },
|
|
@@ -476,10 +473,6 @@ function __wbg_get_imports() {
|
|
|
476
473
|
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
477
474
|
queueMicrotask(arg0);
|
|
478
475
|
},
|
|
479
|
-
__wbg_race_ac5c7b465abcfa15: function(arg0) {
|
|
480
|
-
const ret = Promise.race(arg0);
|
|
481
|
-
return ret;
|
|
482
|
-
},
|
|
483
476
|
__wbg_read_8afa15f12a160ef8: function(arg0) {
|
|
484
477
|
const ret = arg0.read();
|
|
485
478
|
return ret;
|
|
@@ -508,10 +501,6 @@ function __wbg_get_imports() {
|
|
|
508
501
|
__wbg_setRequestHeader_fe390ff50d349432: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
509
502
|
arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
510
503
|
}, arguments); },
|
|
511
|
-
__wbg_setTimeout_725a27c387d005c7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
512
|
-
const ret = arg0.setTimeout(arg1, arg2, arg3);
|
|
513
|
-
return ret;
|
|
514
|
-
}, arguments); },
|
|
515
504
|
__wbg_setTimeout_cfa2cf195c3738db: function() { return handleError(function (arg0, arg1, arg2) {
|
|
516
505
|
const ret = arg0.setTimeout(arg1, arg2);
|
|
517
506
|
return ret;
|
|
@@ -590,6 +579,10 @@ function __wbg_get_imports() {
|
|
|
590
579
|
const ret = arg0.then(arg1);
|
|
591
580
|
return ret;
|
|
592
581
|
},
|
|
582
|
+
__wbg_then_e0960b859f3ff223: function(arg0, arg1) {
|
|
583
|
+
const ret = arg0.then(arg1);
|
|
584
|
+
return ret;
|
|
585
|
+
},
|
|
593
586
|
__wbg_total_21672ff1bd8d23ea: function(arg0) {
|
|
594
587
|
const ret = arg0.total;
|
|
595
588
|
return ret;
|
|
@@ -599,26 +592,31 @@ function __wbg_get_imports() {
|
|
|
599
592
|
return ret;
|
|
600
593
|
}, arguments); },
|
|
601
594
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
602
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
595
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 209, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
603
596
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b2c787b844a3ac79___JsError___true_);
|
|
604
597
|
return ret;
|
|
605
598
|
},
|
|
606
599
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
607
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [
|
|
608
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
600
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
601
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true_);
|
|
609
602
|
return ret;
|
|
610
603
|
},
|
|
611
604
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
612
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
605
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ProgressEvent")], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
606
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true__2);
|
|
607
|
+
return ret;
|
|
608
|
+
},
|
|
609
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
610
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 8, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
613
611
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke_______true_);
|
|
614
612
|
return ret;
|
|
615
613
|
},
|
|
616
|
-
|
|
614
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
617
615
|
// Cast intrinsic for `F64 -> Externref`.
|
|
618
616
|
const ret = arg0;
|
|
619
617
|
return ret;
|
|
620
618
|
},
|
|
621
|
-
|
|
619
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
622
620
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
623
621
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
624
622
|
return ret;
|
|
@@ -643,8 +641,12 @@ function wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke_______true
|
|
|
643
641
|
wasm.wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke_______true_(arg0, arg1);
|
|
644
642
|
}
|
|
645
643
|
|
|
646
|
-
function
|
|
647
|
-
wasm.
|
|
644
|
+
function wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true_(arg0, arg1, arg2) {
|
|
645
|
+
wasm.wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true_(arg0, arg1, arg2);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
function wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true__2(arg0, arg1, arg2) {
|
|
649
|
+
wasm.wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true__2(arg0, arg1, arg2);
|
|
648
650
|
}
|
|
649
651
|
|
|
650
652
|
function wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b2c787b844a3ac79___JsError___true_(arg0, arg1, arg2) {
|
package/pkg/libfw_client_bg.wasm
CHANGED
|
Binary file
|
|
@@ -21,7 +21,8 @@ export const libfwclient_upload: (a: number, b: number, c: number, d: number, e:
|
|
|
21
21
|
export const start: () => void;
|
|
22
22
|
export const wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b2c787b844a3ac79___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
23
23
|
export const wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___js_sys_209827a80d159db4___Function_fn_wasm_bindgen_b2c787b844a3ac79___JsValue_____wasm_bindgen_b2c787b844a3ac79___sys__Undefined___js_sys_209827a80d159db4___Function_fn_wasm_bindgen_b2c787b844a3ac79___JsValue_____wasm_bindgen_b2c787b844a3ac79___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
24
|
-
export const
|
|
24
|
+
export const wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
25
|
+
export const wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke___wasm_bindgen_b2c787b844a3ac79___JsValue______true__2: (a: number, b: number, c: any) => void;
|
|
25
26
|
export const wasm_bindgen_b2c787b844a3ac79___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
26
27
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
27
28
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|