@fuzionx/client 0.1.22 → 0.1.23
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/fuzionx_client_wasm.d.ts
CHANGED
|
@@ -66,6 +66,14 @@ export class FuzionXClient {
|
|
|
66
66
|
* PUT 요청.
|
|
67
67
|
*/
|
|
68
68
|
put(path: string, body: any, encrypt?: boolean | null): Promise<any>;
|
|
69
|
+
/**
|
|
70
|
+
* FormData 파일 업로드 (ASP 응답 복호화 자동 적용).
|
|
71
|
+
*
|
|
72
|
+
* FormData body는 바이너리이므로 암호화하지 않고,
|
|
73
|
+
* X-Timestamp 헤더만 추가하여 ASP 게이트를 통과한다.
|
|
74
|
+
* 응답은 bridge가 암호화하므로 WASM 내부에서 복호화.
|
|
75
|
+
*/
|
|
76
|
+
upload(path: string, form_data: FormData): Promise<any>;
|
|
69
77
|
/**
|
|
70
78
|
* UUID v4 생성.
|
|
71
79
|
*/
|
|
@@ -173,6 +181,7 @@ export interface InitOutput {
|
|
|
173
181
|
readonly fuzionxclient_patch: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
174
182
|
readonly fuzionxclient_post: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
175
183
|
readonly fuzionxclient_put: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
184
|
+
readonly fuzionxclient_upload: (a: number, b: number, c: number, d: number) => number;
|
|
176
185
|
readonly fuzionxclient_uuid: (a: number, b: number) => void;
|
|
177
186
|
readonly fuzionxsocket_connect: (a: number, b: number) => void;
|
|
178
187
|
readonly fuzionxsocket_disconnect: (a: number) => void;
|
|
@@ -190,9 +199,9 @@ export interface InitOutput {
|
|
|
190
199
|
readonly fuzionxutil_sort_i32: (a: number, b: number, c: number) => void;
|
|
191
200
|
readonly fuzionxutil_uuid: (a: number) => void;
|
|
192
201
|
readonly __wasm_bindgen_func_elem_74: (a: number, b: number) => void;
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
202
|
+
readonly __wasm_bindgen_func_elem_566: (a: number, b: number) => void;
|
|
203
|
+
readonly __wasm_bindgen_func_elem_567: (a: number, b: number, c: number, d: number) => void;
|
|
204
|
+
readonly __wasm_bindgen_func_elem_626: (a: number, b: number, c: number, d: number) => void;
|
|
196
205
|
readonly __wasm_bindgen_func_elem_75: (a: number, b: number, c: number) => void;
|
|
197
206
|
readonly __wasm_bindgen_func_elem_75_1: (a: number, b: number, c: number) => void;
|
|
198
207
|
readonly __wasm_bindgen_func_elem_75_2: (a: number, b: number, c: number) => void;
|
package/fuzionx_client_wasm.js
CHANGED
|
@@ -321,6 +321,22 @@ export class FuzionXClient {
|
|
|
321
321
|
const ret = wasm.fuzionxclient_put(this.__wbg_ptr, ptr0, len0, addHeapObject(body), isLikeNone(encrypt) ? 0xFFFFFF : encrypt ? 1 : 0);
|
|
322
322
|
return takeObject(ret);
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* FormData 파일 업로드 (ASP 응답 복호화 자동 적용).
|
|
326
|
+
*
|
|
327
|
+
* FormData body는 바이너리이므로 암호화하지 않고,
|
|
328
|
+
* X-Timestamp 헤더만 추가하여 ASP 게이트를 통과한다.
|
|
329
|
+
* 응답은 bridge가 암호화하므로 WASM 내부에서 복호화.
|
|
330
|
+
* @param {string} path
|
|
331
|
+
* @param {FormData} form_data
|
|
332
|
+
* @returns {Promise<any>}
|
|
333
|
+
*/
|
|
334
|
+
upload(path, form_data) {
|
|
335
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
336
|
+
const len0 = WASM_VECTOR_LEN;
|
|
337
|
+
const ret = wasm.fuzionxclient_upload(this.__wbg_ptr, ptr0, len0, addHeapObject(form_data));
|
|
338
|
+
return takeObject(ret);
|
|
339
|
+
}
|
|
324
340
|
/**
|
|
325
341
|
* UUID v4 생성.
|
|
326
342
|
* @returns {string}
|
|
@@ -752,7 +768,7 @@ function __wbg_get_imports() {
|
|
|
752
768
|
const a = state0.a;
|
|
753
769
|
state0.a = 0;
|
|
754
770
|
try {
|
|
755
|
-
return
|
|
771
|
+
return __wasm_bindgen_func_elem_626(a, state0.b, arg0, arg1);
|
|
756
772
|
} finally {
|
|
757
773
|
state0.a = a;
|
|
758
774
|
}
|
|
@@ -912,8 +928,8 @@ function __wbg_get_imports() {
|
|
|
912
928
|
return addHeapObject(ret);
|
|
913
929
|
},
|
|
914
930
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
915
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
916
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
931
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 88, function: Function { arguments: [Externref], shim_idx: 89, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
932
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_566, __wasm_bindgen_func_elem_567);
|
|
917
933
|
return addHeapObject(ret);
|
|
918
934
|
},
|
|
919
935
|
__wbindgen_cast_0000000000000006: function(arg0) {
|
|
@@ -956,10 +972,10 @@ function __wasm_bindgen_func_elem_75_2(arg0, arg1, arg2) {
|
|
|
956
972
|
wasm.__wasm_bindgen_func_elem_75_2(arg0, arg1, addHeapObject(arg2));
|
|
957
973
|
}
|
|
958
974
|
|
|
959
|
-
function
|
|
975
|
+
function __wasm_bindgen_func_elem_567(arg0, arg1, arg2) {
|
|
960
976
|
try {
|
|
961
977
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
962
|
-
wasm.
|
|
978
|
+
wasm.__wasm_bindgen_func_elem_567(retptr, arg0, arg1, addHeapObject(arg2));
|
|
963
979
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
964
980
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
965
981
|
if (r1) {
|
|
@@ -970,8 +986,8 @@ function __wasm_bindgen_func_elem_546(arg0, arg1, arg2) {
|
|
|
970
986
|
}
|
|
971
987
|
}
|
|
972
988
|
|
|
973
|
-
function
|
|
974
|
-
wasm.
|
|
989
|
+
function __wasm_bindgen_func_elem_626(arg0, arg1, arg2, arg3) {
|
|
990
|
+
wasm.__wasm_bindgen_func_elem_626(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
975
991
|
}
|
|
976
992
|
|
|
977
993
|
|
|
Binary file
|
|
@@ -17,6 +17,7 @@ export const fuzionxclient_new_with_options: (a: number, b: number, c: number, d
|
|
|
17
17
|
export const fuzionxclient_patch: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
18
18
|
export const fuzionxclient_post: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
19
19
|
export const fuzionxclient_put: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
20
|
+
export const fuzionxclient_upload: (a: number, b: number, c: number, d: number) => number;
|
|
20
21
|
export const fuzionxclient_uuid: (a: number, b: number) => void;
|
|
21
22
|
export const fuzionxsocket_connect: (a: number, b: number) => void;
|
|
22
23
|
export const fuzionxsocket_disconnect: (a: number) => void;
|
|
@@ -34,9 +35,9 @@ export const fuzionxutil_shuffle_i32: (a: number, b: number, c: number) => void;
|
|
|
34
35
|
export const fuzionxutil_sort_i32: (a: number, b: number, c: number) => void;
|
|
35
36
|
export const fuzionxutil_uuid: (a: number) => void;
|
|
36
37
|
export const __wasm_bindgen_func_elem_74: (a: number, b: number) => void;
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
38
|
+
export const __wasm_bindgen_func_elem_566: (a: number, b: number) => void;
|
|
39
|
+
export const __wasm_bindgen_func_elem_567: (a: number, b: number, c: number, d: number) => void;
|
|
40
|
+
export const __wasm_bindgen_func_elem_626: (a: number, b: number, c: number, d: number) => void;
|
|
40
41
|
export const __wasm_bindgen_func_elem_75: (a: number, b: number, c: number) => void;
|
|
41
42
|
export const __wasm_bindgen_func_elem_75_1: (a: number, b: number, c: number) => void;
|
|
42
43
|
export const __wasm_bindgen_func_elem_75_2: (a: number, b: number, c: number) => void;
|
package/package.json
CHANGED