@cartridge/controller-wasm 0.2.6 → 0.3.0
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-controller/account_wasm.d.ts +11 -4
- package/pkg-controller/account_wasm_bg.js +44 -17
- package/pkg-controller/account_wasm_bg.wasm +0 -0
- package/pkg-session/session_wasm.d.ts +7 -2
- package/pkg-session/session_wasm_bg.js +21 -13
- package/pkg-session/session_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -42,6 +42,8 @@ export enum ErrorCode {
|
|
|
42
42
|
StarknetUnsupportedContractClassVersion = 62,
|
|
43
43
|
StarknetUnexpectedError = 63,
|
|
44
44
|
StarknetNoTraceAvailable = 10,
|
|
45
|
+
StarknetReplacementTransactionUnderpriced = 64,
|
|
46
|
+
StarknetFeeBelowMinimum = 65,
|
|
45
47
|
SignError = 101,
|
|
46
48
|
StorageError = 102,
|
|
47
49
|
AccountFactoryError = 103,
|
|
@@ -100,7 +102,6 @@ export interface JsFeeEstimate {
|
|
|
100
102
|
l1_data_gas_consumed: number;
|
|
101
103
|
l1_data_gas_price: number;
|
|
102
104
|
overall_fee: number;
|
|
103
|
-
unit: JsPriceUnit;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
export interface Owner {
|
|
@@ -146,7 +147,9 @@ export interface Signer {
|
|
|
146
147
|
eip191?: Eip191Signer;
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
export type
|
|
150
|
+
export type JsAddSignerInput = SignerInput;
|
|
151
|
+
|
|
152
|
+
export type JsRemoveSignerInput = SignerInput;
|
|
150
153
|
|
|
151
154
|
export type JsFelt = Felt;
|
|
152
155
|
|
|
@@ -154,6 +157,8 @@ export type Felts = JsFelt[];
|
|
|
154
157
|
|
|
155
158
|
export type JsFeeSource = "PAYMASTER" | "CREDITS";
|
|
156
159
|
|
|
160
|
+
export type JsSubscribeSessionResult = ResponseData;
|
|
161
|
+
|
|
157
162
|
export type JsRevokableSession = RevokableSession;
|
|
158
163
|
|
|
159
164
|
export interface AuthorizedSession {
|
|
@@ -215,8 +220,9 @@ export class CartridgeAccount {
|
|
|
215
220
|
register(register: JsRegister): Promise<JsRegisterResponse>;
|
|
216
221
|
createSession(policies: Policy[], expires_at: bigint): Promise<AuthorizedSession | undefined>;
|
|
217
222
|
skipSession(policies: Policy[]): Promise<void>;
|
|
218
|
-
addOwner(owner?: Signer | null, signer_input?:
|
|
219
|
-
|
|
223
|
+
addOwner(owner?: Signer | null, signer_input?: JsAddSignerInput | null, rp_id?: string | null): Promise<void>;
|
|
224
|
+
removeOwner(signer: JsRemoveSignerInput): Promise<void>;
|
|
225
|
+
createPasskeySigner(rp_id: string): Promise<JsAddSignerInput>;
|
|
220
226
|
estimateInvokeFee(calls: JsCall[]): Promise<JsFeeEstimate>;
|
|
221
227
|
execute(calls: JsCall[], max_fee?: JsFeeEstimate | null, fee_source?: JsFeeSource | null): Promise<any>;
|
|
222
228
|
executeFromOutsideV2(calls: JsCall[], fee_source?: JsFeeSource | null): Promise<any>;
|
|
@@ -231,6 +237,7 @@ export class CartridgeAccount {
|
|
|
231
237
|
delegateAccount(): Promise<JsFelt>;
|
|
232
238
|
hasAuthorizedPoliciesForCalls(calls: JsCall[]): Promise<boolean>;
|
|
233
239
|
hasAuthorizedPoliciesForMessage(typed_data: string): Promise<boolean>;
|
|
240
|
+
subscribeCreateSession(controller_id: string, session_key_guid: JsFelt): Promise<JsSubscribeSessionResult>;
|
|
234
241
|
}
|
|
235
242
|
/**
|
|
236
243
|
* A type for accessing fixed attributes of `CartridgeAccount`.
|
|
@@ -315,12 +315,12 @@ function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
|
315
315
|
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
function
|
|
318
|
+
function __wbg_adapter_280(arg0, arg1, arg2, arg3) {
|
|
319
319
|
wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138}
|
|
323
|
+
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138}
|
|
324
324
|
*/
|
|
325
325
|
export const ErrorCode = Object.freeze({
|
|
326
326
|
StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
|
|
@@ -349,6 +349,8 @@ export const ErrorCode = Object.freeze({
|
|
|
349
349
|
StarknetUnsupportedContractClassVersion: 62, "62": "StarknetUnsupportedContractClassVersion",
|
|
350
350
|
StarknetUnexpectedError: 63, "63": "StarknetUnexpectedError",
|
|
351
351
|
StarknetNoTraceAvailable: 10, "10": "StarknetNoTraceAvailable",
|
|
352
|
+
StarknetReplacementTransactionUnderpriced: 64, "64": "StarknetReplacementTransactionUnderpriced",
|
|
353
|
+
StarknetFeeBelowMinimum: 65, "65": "StarknetFeeBelowMinimum",
|
|
352
354
|
SignError: 101, "101": "SignError",
|
|
353
355
|
StorageError: 102, "102": "StorageError",
|
|
354
356
|
AccountFactoryError: 103, "103": "AccountFactoryError",
|
|
@@ -388,6 +390,8 @@ export const ErrorCode = Object.freeze({
|
|
|
388
390
|
GasPriceTooHigh: 138, "138": "GasPriceTooHigh",
|
|
389
391
|
});
|
|
390
392
|
|
|
393
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
394
|
+
|
|
391
395
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
392
396
|
|
|
393
397
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
@@ -605,7 +609,7 @@ export class CartridgeAccount {
|
|
|
605
609
|
}
|
|
606
610
|
/**
|
|
607
611
|
* @param {Signer | null} [owner]
|
|
608
|
-
* @param {
|
|
612
|
+
* @param {JsAddSignerInput | null} [signer_input]
|
|
609
613
|
* @param {string | null} [rp_id]
|
|
610
614
|
* @returns {Promise<void>}
|
|
611
615
|
*/
|
|
@@ -615,9 +619,17 @@ export class CartridgeAccount {
|
|
|
615
619
|
const ret = wasm.cartridgeaccount_addOwner(this.__wbg_ptr, isLikeNone(owner) ? 0 : addHeapObject(owner), isLikeNone(signer_input) ? 0 : addHeapObject(signer_input), ptr0, len0);
|
|
616
620
|
return takeObject(ret);
|
|
617
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* @param {JsRemoveSignerInput} signer
|
|
624
|
+
* @returns {Promise<void>}
|
|
625
|
+
*/
|
|
626
|
+
removeOwner(signer) {
|
|
627
|
+
const ret = wasm.cartridgeaccount_removeOwner(this.__wbg_ptr, addHeapObject(signer));
|
|
628
|
+
return takeObject(ret);
|
|
629
|
+
}
|
|
618
630
|
/**
|
|
619
631
|
* @param {string} rp_id
|
|
620
|
-
* @returns {Promise<
|
|
632
|
+
* @returns {Promise<JsAddSignerInput>}
|
|
621
633
|
*/
|
|
622
634
|
createPasskeySigner(rp_id) {
|
|
623
635
|
const ptr0 = passStringToWasm0(rp_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
@@ -760,6 +772,17 @@ export class CartridgeAccount {
|
|
|
760
772
|
const ret = wasm.cartridgeaccount_hasAuthorizedPoliciesForMessage(this.__wbg_ptr, ptr0, len0);
|
|
761
773
|
return takeObject(ret);
|
|
762
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* @param {string} controller_id
|
|
777
|
+
* @param {JsFelt} session_key_guid
|
|
778
|
+
* @returns {Promise<JsSubscribeSessionResult>}
|
|
779
|
+
*/
|
|
780
|
+
subscribeCreateSession(controller_id, session_key_guid) {
|
|
781
|
+
const ptr0 = passStringToWasm0(controller_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
782
|
+
const len0 = WASM_VECTOR_LEN;
|
|
783
|
+
const ret = wasm.cartridgeaccount_subscribeCreateSession(this.__wbg_ptr, ptr0, len0, addHeapObject(session_key_guid));
|
|
784
|
+
return takeObject(ret);
|
|
785
|
+
}
|
|
763
786
|
}
|
|
764
787
|
|
|
765
788
|
const CartridgeAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1115,7 +1138,7 @@ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg
|
|
|
1115
1138
|
return addHeapObject(ret);
|
|
1116
1139
|
}, arguments) };
|
|
1117
1140
|
|
|
1118
|
-
export function
|
|
1141
|
+
export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
|
|
1119
1142
|
const ret = clearTimeout(takeObject(arg0));
|
|
1120
1143
|
return addHeapObject(ret);
|
|
1121
1144
|
};
|
|
@@ -1153,13 +1176,13 @@ export function __wbg_error_524f506f44df1645(arg0) {
|
|
|
1153
1176
|
console.error(getObject(arg0));
|
|
1154
1177
|
};
|
|
1155
1178
|
|
|
1156
|
-
export function
|
|
1157
|
-
const ret = fetch(getObject(
|
|
1179
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
1180
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1158
1181
|
return addHeapObject(ret);
|
|
1159
1182
|
};
|
|
1160
1183
|
|
|
1161
|
-
export function
|
|
1162
|
-
const ret =
|
|
1184
|
+
export function __wbg_fetch_f156d10be9a5c88a(arg0) {
|
|
1185
|
+
const ret = fetch(getObject(arg0));
|
|
1163
1186
|
return addHeapObject(ret);
|
|
1164
1187
|
};
|
|
1165
1188
|
|
|
@@ -1337,7 +1360,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1337
1360
|
const a = state0.a;
|
|
1338
1361
|
state0.a = 0;
|
|
1339
1362
|
try {
|
|
1340
|
-
return
|
|
1363
|
+
return __wbg_adapter_280(a, state0.b, arg0, arg1);
|
|
1341
1364
|
} finally {
|
|
1342
1365
|
state0.a = a;
|
|
1343
1366
|
}
|
|
@@ -1490,7 +1513,7 @@ export function __wbg_setItem_212ecc915942ab0a() { return handleError(function (
|
|
|
1490
1513
|
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1491
1514
|
}, arguments) };
|
|
1492
1515
|
|
|
1493
|
-
export function
|
|
1516
|
+
export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
|
|
1494
1517
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
1495
1518
|
return addHeapObject(ret);
|
|
1496
1519
|
};
|
|
@@ -1535,6 +1558,10 @@ export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
|
1535
1558
|
getObject(arg0).body = getObject(arg1);
|
|
1536
1559
|
};
|
|
1537
1560
|
|
|
1561
|
+
export function __wbg_setcache_12f17c3a980650e4(arg0, arg1) {
|
|
1562
|
+
getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1538
1565
|
export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
|
|
1539
1566
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1540
1567
|
};
|
|
@@ -1675,18 +1702,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1675
1702
|
return ret;
|
|
1676
1703
|
};
|
|
1677
1704
|
|
|
1678
|
-
export function
|
|
1679
|
-
const ret = makeClosure(arg0, arg1,
|
|
1705
|
+
export function __wbindgen_closure_wrapper2565(arg0, arg1, arg2) {
|
|
1706
|
+
const ret = makeClosure(arg0, arg1, 33, __wbg_adapter_44);
|
|
1680
1707
|
return addHeapObject(ret);
|
|
1681
1708
|
};
|
|
1682
1709
|
|
|
1683
|
-
export function
|
|
1684
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1710
|
+
export function __wbindgen_closure_wrapper8144(arg0, arg1, arg2) {
|
|
1711
|
+
const ret = makeMutClosure(arg0, arg1, 871, __wbg_adapter_47);
|
|
1685
1712
|
return addHeapObject(ret);
|
|
1686
1713
|
};
|
|
1687
1714
|
|
|
1688
|
-
export function
|
|
1689
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1715
|
+
export function __wbindgen_closure_wrapper8293(arg0, arg1, arg2) {
|
|
1716
|
+
const ret = makeMutClosure(arg0, arg1, 905, __wbg_adapter_50);
|
|
1690
1717
|
return addHeapObject(ret);
|
|
1691
1718
|
};
|
|
1692
1719
|
|
|
Binary file
|
|
@@ -27,6 +27,8 @@ export enum ErrorCode {
|
|
|
27
27
|
StarknetUnsupportedContractClassVersion = 62,
|
|
28
28
|
StarknetUnexpectedError = 63,
|
|
29
29
|
StarknetNoTraceAvailable = 10,
|
|
30
|
+
StarknetReplacementTransactionUnderpriced = 64,
|
|
31
|
+
StarknetFeeBelowMinimum = 65,
|
|
30
32
|
SignError = 101,
|
|
31
33
|
StorageError = 102,
|
|
32
34
|
AccountFactoryError = 103,
|
|
@@ -85,7 +87,6 @@ export interface JsFeeEstimate {
|
|
|
85
87
|
l1_data_gas_consumed: number;
|
|
86
88
|
l1_data_gas_price: number;
|
|
87
89
|
overall_fee: number;
|
|
88
|
-
unit: JsPriceUnit;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
export interface Owner {
|
|
@@ -131,7 +132,9 @@ export interface Signer {
|
|
|
131
132
|
eip191?: Eip191Signer;
|
|
132
133
|
}
|
|
133
134
|
|
|
134
|
-
export type
|
|
135
|
+
export type JsAddSignerInput = SignerInput;
|
|
136
|
+
|
|
137
|
+
export type JsRemoveSignerInput = SignerInput;
|
|
135
138
|
|
|
136
139
|
export type JsFelt = Felt;
|
|
137
140
|
|
|
@@ -139,6 +142,8 @@ export type Felts = JsFelt[];
|
|
|
139
142
|
|
|
140
143
|
export type JsFeeSource = "PAYMASTER" | "CREDITS";
|
|
141
144
|
|
|
145
|
+
export type JsSubscribeSessionResult = ResponseData;
|
|
146
|
+
|
|
142
147
|
export type JsRevokableSession = RevokableSession;
|
|
143
148
|
|
|
144
149
|
export interface AuthorizedSession {
|
|
@@ -247,12 +247,12 @@ function __wbg_adapter_45(arg0, arg1, arg2) {
|
|
|
247
247
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
function
|
|
250
|
+
function __wbg_adapter_201(arg0, arg1, arg2, arg3) {
|
|
251
251
|
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138}
|
|
255
|
+
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138}
|
|
256
256
|
*/
|
|
257
257
|
export const ErrorCode = Object.freeze({
|
|
258
258
|
StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
|
|
@@ -281,6 +281,8 @@ export const ErrorCode = Object.freeze({
|
|
|
281
281
|
StarknetUnsupportedContractClassVersion: 62, "62": "StarknetUnsupportedContractClassVersion",
|
|
282
282
|
StarknetUnexpectedError: 63, "63": "StarknetUnexpectedError",
|
|
283
283
|
StarknetNoTraceAvailable: 10, "10": "StarknetNoTraceAvailable",
|
|
284
|
+
StarknetReplacementTransactionUnderpriced: 64, "64": "StarknetReplacementTransactionUnderpriced",
|
|
285
|
+
StarknetFeeBelowMinimum: 65, "65": "StarknetFeeBelowMinimum",
|
|
284
286
|
SignError: 101, "101": "SignError",
|
|
285
287
|
StorageError: 102, "102": "StorageError",
|
|
286
288
|
AccountFactoryError: 103, "103": "AccountFactoryError",
|
|
@@ -320,6 +322,8 @@ export const ErrorCode = Object.freeze({
|
|
|
320
322
|
GasPriceTooHigh: 138, "138": "GasPriceTooHigh",
|
|
321
323
|
});
|
|
322
324
|
|
|
325
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
326
|
+
|
|
323
327
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
324
328
|
|
|
325
329
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
@@ -570,7 +574,7 @@ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg
|
|
|
570
574
|
return addHeapObject(ret);
|
|
571
575
|
}, arguments) };
|
|
572
576
|
|
|
573
|
-
export function
|
|
577
|
+
export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
|
|
574
578
|
const ret = clearTimeout(takeObject(arg0));
|
|
575
579
|
return addHeapObject(ret);
|
|
576
580
|
};
|
|
@@ -590,13 +594,13 @@ export function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
|
590
594
|
return ret;
|
|
591
595
|
};
|
|
592
596
|
|
|
593
|
-
export function
|
|
594
|
-
const ret = fetch(getObject(
|
|
597
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
598
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
595
599
|
return addHeapObject(ret);
|
|
596
600
|
};
|
|
597
601
|
|
|
598
|
-
export function
|
|
599
|
-
const ret =
|
|
602
|
+
export function __wbg_fetch_f156d10be9a5c88a(arg0) {
|
|
603
|
+
const ret = fetch(getObject(arg0));
|
|
600
604
|
return addHeapObject(ret);
|
|
601
605
|
};
|
|
602
606
|
|
|
@@ -750,7 +754,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
750
754
|
const a = state0.a;
|
|
751
755
|
state0.a = 0;
|
|
752
756
|
try {
|
|
753
|
-
return
|
|
757
|
+
return __wbg_adapter_201(a, state0.b, arg0, arg1);
|
|
754
758
|
} finally {
|
|
755
759
|
state0.a = a;
|
|
756
760
|
}
|
|
@@ -868,7 +872,7 @@ export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
|
868
872
|
return addHeapObject(ret);
|
|
869
873
|
};
|
|
870
874
|
|
|
871
|
-
export function
|
|
875
|
+
export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
|
|
872
876
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
873
877
|
return addHeapObject(ret);
|
|
874
878
|
};
|
|
@@ -898,6 +902,10 @@ export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
|
898
902
|
getObject(arg0).body = getObject(arg1);
|
|
899
903
|
};
|
|
900
904
|
|
|
905
|
+
export function __wbg_setcache_12f17c3a980650e4(arg0, arg1) {
|
|
906
|
+
getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
|
|
907
|
+
};
|
|
908
|
+
|
|
901
909
|
export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
|
|
902
910
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
903
911
|
};
|
|
@@ -1025,13 +1033,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1025
1033
|
return ret;
|
|
1026
1034
|
};
|
|
1027
1035
|
|
|
1028
|
-
export function
|
|
1029
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1036
|
+
export function __wbindgen_closure_wrapper3363(arg0, arg1, arg2) {
|
|
1037
|
+
const ret = makeMutClosure(arg0, arg1, 401, __wbg_adapter_42);
|
|
1030
1038
|
return addHeapObject(ret);
|
|
1031
1039
|
};
|
|
1032
1040
|
|
|
1033
|
-
export function
|
|
1034
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1041
|
+
export function __wbindgen_closure_wrapper3499(arg0, arg1, arg2) {
|
|
1042
|
+
const ret = makeMutClosure(arg0, arg1, 436, __wbg_adapter_45);
|
|
1035
1043
|
return addHeapObject(ret);
|
|
1036
1044
|
};
|
|
1037
1045
|
|
|
Binary file
|