@appxiom/web 0.1.8 → 0.1.10
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.
|
@@ -154,8 +154,8 @@ export interface InitOutput {
|
|
|
154
154
|
readonly set_custom_id: (a: number, b: number) => number;
|
|
155
155
|
readonly start_goal: (a: number, b: number) => number;
|
|
156
156
|
readonly __wasm_bindgen_func_elem_458: (a: number, b: number, c: number) => void;
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
157
|
+
readonly __wasm_bindgen_func_elem_1038: (a: number, b: number, c: number, d: number) => void;
|
|
158
|
+
readonly __wasm_bindgen_func_elem_1095: (a: number, b: number, c: number, d: number) => void;
|
|
159
159
|
readonly __wasm_bindgen_func_elem_455: (a: number, b: number, c: number) => void;
|
|
160
160
|
readonly __wasm_bindgen_func_elem_461: (a: number, b: number, c: number) => void;
|
|
161
161
|
readonly __wasm_bindgen_func_elem_461_4: (a: number, b: number, c: number) => void;
|
|
@@ -552,13 +552,6 @@ function __wbg_get_imports() {
|
|
|
552
552
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
553
553
|
return addHeapObject(ret);
|
|
554
554
|
},
|
|
555
|
-
__wbg_hash_508149c4291ec8c2: function() { return handleError(function (arg0, arg1) {
|
|
556
|
-
const ret = getObject(arg1).hash;
|
|
557
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
558
|
-
const len1 = WASM_VECTOR_LEN;
|
|
559
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
560
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
561
|
-
}, arguments); },
|
|
562
555
|
__wbg_headers_7b59c5203c8c475d: function(arg0) {
|
|
563
556
|
const ret = getObject(arg0).headers;
|
|
564
557
|
return addHeapObject(ret);
|
|
@@ -752,7 +745,7 @@ function __wbg_get_imports() {
|
|
|
752
745
|
const a = state0.a;
|
|
753
746
|
state0.a = 0;
|
|
754
747
|
try {
|
|
755
|
-
return
|
|
748
|
+
return __wasm_bindgen_func_elem_1095(a, state0.b, arg0, arg1);
|
|
756
749
|
} finally {
|
|
757
750
|
state0.a = a;
|
|
758
751
|
}
|
|
@@ -782,7 +775,7 @@ function __wbg_get_imports() {
|
|
|
782
775
|
const a = state0.a;
|
|
783
776
|
state0.a = 0;
|
|
784
777
|
try {
|
|
785
|
-
return
|
|
778
|
+
return __wasm_bindgen_func_elem_1095(a, state0.b, arg0, arg1);
|
|
786
779
|
} finally {
|
|
787
780
|
state0.a = a;
|
|
788
781
|
}
|
|
@@ -1032,7 +1025,7 @@ function __wbg_get_imports() {
|
|
|
1032
1025
|
}, arguments); },
|
|
1033
1026
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1034
1027
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 51, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1035
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1028
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1038);
|
|
1036
1029
|
return addHeapObject(ret);
|
|
1037
1030
|
},
|
|
1038
1031
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
@@ -1130,10 +1123,10 @@ function __wasm_bindgen_func_elem_450(arg0, arg1, arg2) {
|
|
|
1130
1123
|
}
|
|
1131
1124
|
}
|
|
1132
1125
|
|
|
1133
|
-
function
|
|
1126
|
+
function __wasm_bindgen_func_elem_1038(arg0, arg1, arg2) {
|
|
1134
1127
|
try {
|
|
1135
1128
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1136
|
-
wasm.
|
|
1129
|
+
wasm.__wasm_bindgen_func_elem_1038(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1137
1130
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1138
1131
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1139
1132
|
if (r1) {
|
|
@@ -1144,8 +1137,8 @@ function __wasm_bindgen_func_elem_1045(arg0, arg1, arg2) {
|
|
|
1144
1137
|
}
|
|
1145
1138
|
}
|
|
1146
1139
|
|
|
1147
|
-
function
|
|
1148
|
-
wasm.
|
|
1140
|
+
function __wasm_bindgen_func_elem_1095(arg0, arg1, arg2, arg3) {
|
|
1141
|
+
wasm.__wasm_bindgen_func_elem_1095(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1149
1142
|
}
|
|
1150
1143
|
|
|
1151
1144
|
function __wasm_bindgen_func_elem_458(arg0, arg1, arg2) {
|
|
Binary file
|
|
@@ -33,8 +33,8 @@ export const report_error: (a: number) => number;
|
|
|
33
33
|
export const set_custom_id: (a: number, b: number) => number;
|
|
34
34
|
export const start_goal: (a: number, b: number) => number;
|
|
35
35
|
export const __wasm_bindgen_func_elem_458: (a: number, b: number, c: number) => void;
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
36
|
+
export const __wasm_bindgen_func_elem_1038: (a: number, b: number, c: number, d: number) => void;
|
|
37
|
+
export const __wasm_bindgen_func_elem_1095: (a: number, b: number, c: number, d: number) => void;
|
|
38
38
|
export const __wasm_bindgen_func_elem_455: (a: number, b: number, c: number) => void;
|
|
39
39
|
export const __wasm_bindgen_func_elem_461: (a: number, b: number, c: number) => void;
|
|
40
40
|
export const __wasm_bindgen_func_elem_461_4: (a: number, b: number, c: number) => void;
|
package/http/ax-http.js
CHANGED
|
@@ -3,6 +3,7 @@ import AX from '../core/ax.js';
|
|
|
3
3
|
// Track fetch
|
|
4
4
|
const originalFetch = window.fetch;
|
|
5
5
|
window.fetch = async function(...args) {
|
|
6
|
+
const error = new Error("Request Location:");
|
|
6
7
|
const [resource, init] = args;
|
|
7
8
|
const request = resource instanceof Request && init == null
|
|
8
9
|
? resource.clone()
|
|
@@ -22,7 +23,7 @@ window.fetch = async function(...args) {
|
|
|
22
23
|
try {
|
|
23
24
|
response = await originalFetch.apply(this, args);
|
|
24
25
|
let clonedResponse = response.clone();
|
|
25
|
-
handleApiCallAfterResponse(url, request, requestTime, clonedResponse, BigInt(Date.now()),
|
|
26
|
+
handleApiCallAfterResponse(url, request, requestTime, clonedResponse, BigInt(Date.now()), error);
|
|
26
27
|
} catch (e) {
|
|
27
28
|
handleApiCallOnError(url, request, requestTime, e);
|
|
28
29
|
throw e; // Re-throw the error to maintain the original behavior
|