@janssenproject/cedarling_wasm 0.0.283-nodejs → 0.0.284-nodejs
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/cedarling_wasm.d.ts +13 -32
- package/cedarling_wasm.js +281 -307
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
* Create a new instance of the Cedarling application.
|
|
5
|
-
* This function can take as config parameter the eather `Map` other `Object`
|
|
6
|
-
*/
|
|
7
|
-
export function init(config: any): Promise<Cedarling>;
|
|
8
|
-
/**
|
|
9
|
-
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
10
|
-
* Represents the result of an authorization request.
|
|
11
|
-
*/
|
|
3
|
+
|
|
12
4
|
export class AuthorizeResult {
|
|
13
5
|
private constructor();
|
|
14
6
|
free(): void;
|
|
@@ -47,10 +39,7 @@ export class AuthorizeResult {
|
|
|
47
39
|
*/
|
|
48
40
|
request_id: string;
|
|
49
41
|
}
|
|
50
|
-
|
|
51
|
-
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
52
|
-
* Represents the result of an authorization request.
|
|
53
|
-
*/
|
|
42
|
+
|
|
54
43
|
export class AuthorizeResultResponse {
|
|
55
44
|
private constructor();
|
|
56
45
|
free(): void;
|
|
@@ -64,9 +53,7 @@ export class AuthorizeResultResponse {
|
|
|
64
53
|
*/
|
|
65
54
|
readonly diagnostics: Diagnostics;
|
|
66
55
|
}
|
|
67
|
-
|
|
68
|
-
* The instance of the Cedarling application.
|
|
69
|
-
*/
|
|
56
|
+
|
|
70
57
|
export class Cedarling {
|
|
71
58
|
private constructor();
|
|
72
59
|
free(): void;
|
|
@@ -132,12 +119,7 @@ export class Cedarling {
|
|
|
132
119
|
*/
|
|
133
120
|
shut_down(): Promise<void>;
|
|
134
121
|
}
|
|
135
|
-
|
|
136
|
-
* Diagnostics
|
|
137
|
-
* ===========
|
|
138
|
-
*
|
|
139
|
-
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
140
|
-
*/
|
|
122
|
+
|
|
141
123
|
export class Diagnostics {
|
|
142
124
|
private constructor();
|
|
143
125
|
free(): void;
|
|
@@ -155,16 +137,14 @@ export class Diagnostics {
|
|
|
155
137
|
*/
|
|
156
138
|
readonly errors: PolicyEvaluationError[];
|
|
157
139
|
}
|
|
140
|
+
|
|
158
141
|
export class JsJsonLogic {
|
|
159
142
|
free(): void;
|
|
160
143
|
[Symbol.dispose](): void;
|
|
161
144
|
constructor();
|
|
162
145
|
apply(logic: any, data: any): any;
|
|
163
146
|
}
|
|
164
|
-
|
|
165
|
-
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
166
|
-
* Represents the result of a multi-issuer authorization request.
|
|
167
|
-
*/
|
|
147
|
+
|
|
168
148
|
export class MultiIssuerAuthorizeResult {
|
|
169
149
|
private constructor();
|
|
170
150
|
free(): void;
|
|
@@ -188,12 +168,7 @@ export class MultiIssuerAuthorizeResult {
|
|
|
188
168
|
*/
|
|
189
169
|
request_id: string;
|
|
190
170
|
}
|
|
191
|
-
|
|
192
|
-
* PolicyEvaluationError
|
|
193
|
-
* =====================
|
|
194
|
-
*
|
|
195
|
-
* Represents an error that occurred when evaluating a Cedar policy.
|
|
196
|
-
*/
|
|
171
|
+
|
|
197
172
|
export class PolicyEvaluationError {
|
|
198
173
|
private constructor();
|
|
199
174
|
free(): void;
|
|
@@ -207,3 +182,9 @@ export class PolicyEvaluationError {
|
|
|
207
182
|
*/
|
|
208
183
|
readonly error: string;
|
|
209
184
|
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Create a new instance of the Cedarling application.
|
|
188
|
+
* This function can take as config parameter the eather `Map` other `Object`
|
|
189
|
+
*/
|
|
190
|
+
export function init(config: any): Promise<Cedarling>;
|
package/cedarling_wasm.js
CHANGED
|
@@ -2,94 +2,21 @@
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
10
|
-
}
|
|
11
|
-
return cachedUint8ArrayMemory0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
15
|
-
|
|
16
|
-
cachedTextDecoder.decode();
|
|
17
|
-
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function getStringFromWasm0(ptr, len) {
|
|
23
|
-
ptr = ptr >>> 0;
|
|
24
|
-
return decodeText(ptr, len);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let WASM_VECTOR_LEN = 0;
|
|
28
|
-
|
|
29
|
-
const cachedTextEncoder = new TextEncoder();
|
|
30
|
-
|
|
31
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
32
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
33
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
34
|
-
view.set(buf);
|
|
35
|
-
return {
|
|
36
|
-
read: arg.length,
|
|
37
|
-
written: buf.length
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
43
|
-
|
|
44
|
-
if (realloc === undefined) {
|
|
45
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
47
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
48
|
-
WASM_VECTOR_LEN = buf.length;
|
|
49
|
-
return ptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let len = arg.length;
|
|
53
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
54
|
-
|
|
55
|
-
const mem = getUint8ArrayMemory0();
|
|
56
|
-
|
|
57
|
-
let offset = 0;
|
|
58
|
-
|
|
59
|
-
for (; offset < len; offset++) {
|
|
60
|
-
const code = arg.charCodeAt(offset);
|
|
61
|
-
if (code > 0x7F) break;
|
|
62
|
-
mem[ptr + offset] = code;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (offset !== len) {
|
|
66
|
-
if (offset !== 0) {
|
|
67
|
-
arg = arg.slice(offset);
|
|
68
|
-
}
|
|
69
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
70
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
71
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
72
|
-
|
|
73
|
-
offset += ret.written;
|
|
74
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
WASM_VECTOR_LEN = offset;
|
|
78
|
-
return ptr;
|
|
5
|
+
function addToExternrefTable0(obj) {
|
|
6
|
+
const idx = wasm.__externref_table_alloc();
|
|
7
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
8
|
+
return idx;
|
|
79
9
|
}
|
|
80
10
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
85
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
11
|
+
function _assertClass(instance, klass) {
|
|
12
|
+
if (!(instance instanceof klass)) {
|
|
13
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
86
14
|
}
|
|
87
|
-
return cachedDataViewMemory0;
|
|
88
15
|
}
|
|
89
16
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
17
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
18
|
+
? { register: () => {}, unregister: () => {} }
|
|
19
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
93
20
|
|
|
94
21
|
function debugString(val) {
|
|
95
22
|
// primitive types
|
|
@@ -156,10 +83,41 @@ function debugString(val) {
|
|
|
156
83
|
return className;
|
|
157
84
|
}
|
|
158
85
|
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
86
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
87
|
+
ptr = ptr >>> 0;
|
|
88
|
+
const mem = getDataViewMemory0();
|
|
89
|
+
const result = [];
|
|
90
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
91
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
92
|
+
}
|
|
93
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
98
|
+
ptr = ptr >>> 0;
|
|
99
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
let cachedDataViewMemory0 = null;
|
|
103
|
+
function getDataViewMemory0() {
|
|
104
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
105
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
106
|
+
}
|
|
107
|
+
return cachedDataViewMemory0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function getStringFromWasm0(ptr, len) {
|
|
111
|
+
ptr = ptr >>> 0;
|
|
112
|
+
return decodeText(ptr, len);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
let cachedUint8ArrayMemory0 = null;
|
|
116
|
+
function getUint8ArrayMemory0() {
|
|
117
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
118
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
119
|
+
}
|
|
120
|
+
return cachedUint8ArrayMemory0;
|
|
163
121
|
}
|
|
164
122
|
|
|
165
123
|
function handleError(f, args) {
|
|
@@ -171,15 +129,10 @@ function handleError(f, args) {
|
|
|
171
129
|
}
|
|
172
130
|
}
|
|
173
131
|
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
132
|
+
function isLikeNone(x) {
|
|
133
|
+
return x === undefined || x === null;
|
|
177
134
|
}
|
|
178
135
|
|
|
179
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
180
|
-
? { register: () => {}, unregister: () => {} }
|
|
181
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
182
|
-
|
|
183
136
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
184
137
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
185
138
|
const real = (...args) => {
|
|
@@ -208,21 +161,42 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
208
161
|
return real;
|
|
209
162
|
}
|
|
210
163
|
|
|
211
|
-
function
|
|
212
|
-
if (
|
|
213
|
-
|
|
164
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
165
|
+
if (realloc === undefined) {
|
|
166
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
167
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
168
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
169
|
+
WASM_VECTOR_LEN = buf.length;
|
|
170
|
+
return ptr;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
let len = arg.length;
|
|
174
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
175
|
+
|
|
176
|
+
const mem = getUint8ArrayMemory0();
|
|
177
|
+
|
|
178
|
+
let offset = 0;
|
|
179
|
+
|
|
180
|
+
for (; offset < len; offset++) {
|
|
181
|
+
const code = arg.charCodeAt(offset);
|
|
182
|
+
if (code > 0x7F) break;
|
|
183
|
+
mem[ptr + offset] = code;
|
|
214
184
|
}
|
|
185
|
+
if (offset !== len) {
|
|
186
|
+
if (offset !== 0) {
|
|
187
|
+
arg = arg.slice(offset);
|
|
188
|
+
}
|
|
189
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
190
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
191
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
192
|
+
|
|
193
|
+
offset += ret.written;
|
|
194
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
WASM_VECTOR_LEN = offset;
|
|
198
|
+
return ptr;
|
|
215
199
|
}
|
|
216
|
-
/**
|
|
217
|
-
* Create a new instance of the Cedarling application.
|
|
218
|
-
* This function can take as config parameter the eather `Map` other `Object`
|
|
219
|
-
* @param {any} config
|
|
220
|
-
* @returns {Promise<Cedarling>}
|
|
221
|
-
*/
|
|
222
|
-
exports.init = function(config) {
|
|
223
|
-
const ret = wasm.init(config);
|
|
224
|
-
return ret;
|
|
225
|
-
};
|
|
226
200
|
|
|
227
201
|
function takeFromExternrefTable0(idx) {
|
|
228
202
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
@@ -230,26 +204,37 @@ function takeFromExternrefTable0(idx) {
|
|
|
230
204
|
return value;
|
|
231
205
|
}
|
|
232
206
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
207
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
208
|
+
cachedTextDecoder.decode();
|
|
209
|
+
function decodeText(ptr, len) {
|
|
210
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const cachedTextEncoder = new TextEncoder();
|
|
214
|
+
|
|
215
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
216
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
217
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
218
|
+
view.set(buf);
|
|
219
|
+
return {
|
|
220
|
+
read: arg.length,
|
|
221
|
+
written: buf.length
|
|
222
|
+
};
|
|
239
223
|
}
|
|
240
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
241
|
-
return result;
|
|
242
224
|
}
|
|
243
|
-
|
|
244
|
-
|
|
225
|
+
|
|
226
|
+
let WASM_VECTOR_LEN = 0;
|
|
227
|
+
|
|
228
|
+
function wasm_bindgen__convert__closures_____invoke__he934e31379087ee0(arg0, arg1, arg2) {
|
|
229
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he934e31379087ee0(arg0, arg1, arg2);
|
|
245
230
|
}
|
|
246
231
|
|
|
247
|
-
function
|
|
248
|
-
wasm.
|
|
232
|
+
function wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97(arg0, arg1) {
|
|
233
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97(arg0, arg1);
|
|
249
234
|
}
|
|
250
235
|
|
|
251
|
-
function
|
|
252
|
-
wasm.
|
|
236
|
+
function wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(arg0, arg1, arg2, arg3) {
|
|
237
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(arg0, arg1, arg2, arg3);
|
|
253
238
|
}
|
|
254
239
|
|
|
255
240
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -261,12 +246,36 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
261
246
|
const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
262
247
|
? { register: () => {}, unregister: () => {} }
|
|
263
248
|
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresult_free(ptr >>> 0, 1));
|
|
249
|
+
|
|
250
|
+
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
251
|
+
? { register: () => {}, unregister: () => {} }
|
|
252
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
253
|
+
|
|
254
|
+
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
255
|
+
? { register: () => {}, unregister: () => {} }
|
|
256
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
257
|
+
|
|
258
|
+
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
259
|
+
? { register: () => {}, unregister: () => {} }
|
|
260
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
261
|
+
|
|
262
|
+
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
263
|
+
? { register: () => {}, unregister: () => {} }
|
|
264
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
265
|
+
|
|
266
|
+
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
267
|
+
? { register: () => {}, unregister: () => {} }
|
|
268
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
269
|
+
|
|
270
|
+
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
271
|
+
? { register: () => {}, unregister: () => {} }
|
|
272
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
273
|
+
|
|
264
274
|
/**
|
|
265
275
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
266
276
|
* Represents the result of an authorization request.
|
|
267
277
|
*/
|
|
268
278
|
class AuthorizeResult {
|
|
269
|
-
|
|
270
279
|
static __wrap(ptr) {
|
|
271
280
|
ptr = ptr >>> 0;
|
|
272
281
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -274,14 +283,12 @@ class AuthorizeResult {
|
|
|
274
283
|
AuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
275
284
|
return obj;
|
|
276
285
|
}
|
|
277
|
-
|
|
278
286
|
__destroy_into_raw() {
|
|
279
287
|
const ptr = this.__wbg_ptr;
|
|
280
288
|
this.__wbg_ptr = 0;
|
|
281
289
|
AuthorizeResultFinalization.unregister(this);
|
|
282
290
|
return ptr;
|
|
283
291
|
}
|
|
284
|
-
|
|
285
292
|
free() {
|
|
286
293
|
const ptr = this.__destroy_into_raw();
|
|
287
294
|
wasm.__wbg_authorizeresult_free(ptr, 0);
|
|
@@ -402,18 +409,13 @@ class AuthorizeResult {
|
|
|
402
409
|
}
|
|
403
410
|
}
|
|
404
411
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
405
|
-
|
|
406
412
|
exports.AuthorizeResult = AuthorizeResult;
|
|
407
413
|
|
|
408
|
-
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
409
|
-
? { register: () => {}, unregister: () => {} }
|
|
410
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
411
414
|
/**
|
|
412
415
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
413
416
|
* Represents the result of an authorization request.
|
|
414
417
|
*/
|
|
415
418
|
class AuthorizeResultResponse {
|
|
416
|
-
|
|
417
419
|
static __wrap(ptr) {
|
|
418
420
|
ptr = ptr >>> 0;
|
|
419
421
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -421,14 +423,12 @@ class AuthorizeResultResponse {
|
|
|
421
423
|
AuthorizeResultResponseFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
422
424
|
return obj;
|
|
423
425
|
}
|
|
424
|
-
|
|
425
426
|
__destroy_into_raw() {
|
|
426
427
|
const ptr = this.__wbg_ptr;
|
|
427
428
|
this.__wbg_ptr = 0;
|
|
428
429
|
AuthorizeResultResponseFinalization.unregister(this);
|
|
429
430
|
return ptr;
|
|
430
431
|
}
|
|
431
|
-
|
|
432
432
|
free() {
|
|
433
433
|
const ptr = this.__destroy_into_raw();
|
|
434
434
|
wasm.__wbg_authorizeresultresponse_free(ptr, 0);
|
|
@@ -451,17 +451,12 @@ class AuthorizeResultResponse {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
454
|
-
|
|
455
454
|
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
456
455
|
|
|
457
|
-
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
458
|
-
? { register: () => {}, unregister: () => {} }
|
|
459
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
460
456
|
/**
|
|
461
457
|
* The instance of the Cedarling application.
|
|
462
458
|
*/
|
|
463
459
|
class Cedarling {
|
|
464
|
-
|
|
465
460
|
static __wrap(ptr) {
|
|
466
461
|
ptr = ptr >>> 0;
|
|
467
462
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -469,14 +464,12 @@ class Cedarling {
|
|
|
469
464
|
CedarlingFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
470
465
|
return obj;
|
|
471
466
|
}
|
|
472
|
-
|
|
473
467
|
__destroy_into_raw() {
|
|
474
468
|
const ptr = this.__wbg_ptr;
|
|
475
469
|
this.__wbg_ptr = 0;
|
|
476
470
|
CedarlingFinalization.unregister(this);
|
|
477
471
|
return ptr;
|
|
478
472
|
}
|
|
479
|
-
|
|
480
473
|
free() {
|
|
481
474
|
const ptr = this.__destroy_into_raw();
|
|
482
475
|
wasm.__wbg_cedarling_free(ptr, 0);
|
|
@@ -632,12 +625,8 @@ class Cedarling {
|
|
|
632
625
|
}
|
|
633
626
|
}
|
|
634
627
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
635
|
-
|
|
636
628
|
exports.Cedarling = Cedarling;
|
|
637
629
|
|
|
638
|
-
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
639
|
-
? { register: () => {}, unregister: () => {} }
|
|
640
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
641
630
|
/**
|
|
642
631
|
* Diagnostics
|
|
643
632
|
* ===========
|
|
@@ -645,7 +634,6 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
645
634
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
646
635
|
*/
|
|
647
636
|
class Diagnostics {
|
|
648
|
-
|
|
649
637
|
static __wrap(ptr) {
|
|
650
638
|
ptr = ptr >>> 0;
|
|
651
639
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -653,14 +641,12 @@ class Diagnostics {
|
|
|
653
641
|
DiagnosticsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
654
642
|
return obj;
|
|
655
643
|
}
|
|
656
|
-
|
|
657
644
|
__destroy_into_raw() {
|
|
658
645
|
const ptr = this.__wbg_ptr;
|
|
659
646
|
this.__wbg_ptr = 0;
|
|
660
647
|
DiagnosticsFinalization.unregister(this);
|
|
661
648
|
return ptr;
|
|
662
649
|
}
|
|
663
|
-
|
|
664
650
|
free() {
|
|
665
651
|
const ptr = this.__destroy_into_raw();
|
|
666
652
|
wasm.__wbg_diagnostics_free(ptr, 0);
|
|
@@ -691,22 +677,15 @@ class Diagnostics {
|
|
|
691
677
|
}
|
|
692
678
|
}
|
|
693
679
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
694
|
-
|
|
695
680
|
exports.Diagnostics = Diagnostics;
|
|
696
681
|
|
|
697
|
-
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
698
|
-
? { register: () => {}, unregister: () => {} }
|
|
699
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
700
|
-
|
|
701
682
|
class JsJsonLogic {
|
|
702
|
-
|
|
703
683
|
__destroy_into_raw() {
|
|
704
684
|
const ptr = this.__wbg_ptr;
|
|
705
685
|
this.__wbg_ptr = 0;
|
|
706
686
|
JsJsonLogicFinalization.unregister(this);
|
|
707
687
|
return ptr;
|
|
708
688
|
}
|
|
709
|
-
|
|
710
689
|
free() {
|
|
711
690
|
const ptr = this.__destroy_into_raw();
|
|
712
691
|
wasm.__wbg_jsjsonlogic_free(ptr, 0);
|
|
@@ -731,18 +710,13 @@ class JsJsonLogic {
|
|
|
731
710
|
}
|
|
732
711
|
}
|
|
733
712
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
734
|
-
|
|
735
713
|
exports.JsJsonLogic = JsJsonLogic;
|
|
736
714
|
|
|
737
|
-
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
738
|
-
? { register: () => {}, unregister: () => {} }
|
|
739
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
740
715
|
/**
|
|
741
716
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
742
717
|
* Represents the result of a multi-issuer authorization request.
|
|
743
718
|
*/
|
|
744
719
|
class MultiIssuerAuthorizeResult {
|
|
745
|
-
|
|
746
720
|
static __wrap(ptr) {
|
|
747
721
|
ptr = ptr >>> 0;
|
|
748
722
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -750,14 +724,12 @@ class MultiIssuerAuthorizeResult {
|
|
|
750
724
|
MultiIssuerAuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
751
725
|
return obj;
|
|
752
726
|
}
|
|
753
|
-
|
|
754
727
|
__destroy_into_raw() {
|
|
755
728
|
const ptr = this.__wbg_ptr;
|
|
756
729
|
this.__wbg_ptr = 0;
|
|
757
730
|
MultiIssuerAuthorizeResultFinalization.unregister(this);
|
|
758
731
|
return ptr;
|
|
759
732
|
}
|
|
760
|
-
|
|
761
733
|
free() {
|
|
762
734
|
const ptr = this.__destroy_into_raw();
|
|
763
735
|
wasm.__wbg_multiissuerauthorizeresult_free(ptr, 0);
|
|
@@ -841,12 +813,8 @@ class MultiIssuerAuthorizeResult {
|
|
|
841
813
|
}
|
|
842
814
|
}
|
|
843
815
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
844
|
-
|
|
845
816
|
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
846
817
|
|
|
847
|
-
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
848
|
-
? { register: () => {}, unregister: () => {} }
|
|
849
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
850
818
|
/**
|
|
851
819
|
* PolicyEvaluationError
|
|
852
820
|
* =====================
|
|
@@ -854,7 +822,6 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
854
822
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
855
823
|
*/
|
|
856
824
|
class PolicyEvaluationError {
|
|
857
|
-
|
|
858
825
|
static __wrap(ptr) {
|
|
859
826
|
ptr = ptr >>> 0;
|
|
860
827
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -862,14 +829,12 @@ class PolicyEvaluationError {
|
|
|
862
829
|
PolicyEvaluationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
863
830
|
return obj;
|
|
864
831
|
}
|
|
865
|
-
|
|
866
832
|
__destroy_into_raw() {
|
|
867
833
|
const ptr = this.__wbg_ptr;
|
|
868
834
|
this.__wbg_ptr = 0;
|
|
869
835
|
PolicyEvaluationErrorFinalization.unregister(this);
|
|
870
836
|
return ptr;
|
|
871
837
|
}
|
|
872
|
-
|
|
873
838
|
free() {
|
|
874
839
|
const ptr = this.__destroy_into_raw();
|
|
875
840
|
wasm.__wbg_policyevaluationerror_free(ptr, 0);
|
|
@@ -908,15 +873,26 @@ class PolicyEvaluationError {
|
|
|
908
873
|
}
|
|
909
874
|
}
|
|
910
875
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
911
|
-
|
|
912
876
|
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
913
877
|
|
|
914
|
-
|
|
878
|
+
/**
|
|
879
|
+
* Create a new instance of the Cedarling application.
|
|
880
|
+
* This function can take as config parameter the eather `Map` other `Object`
|
|
881
|
+
* @param {any} config
|
|
882
|
+
* @returns {Promise<Cedarling>}
|
|
883
|
+
*/
|
|
884
|
+
function init(config) {
|
|
885
|
+
const ret = wasm.init(config);
|
|
886
|
+
return ret;
|
|
887
|
+
}
|
|
888
|
+
exports.init = init;
|
|
889
|
+
|
|
890
|
+
exports.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
915
891
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
916
892
|
return ret;
|
|
917
893
|
};
|
|
918
894
|
|
|
919
|
-
exports.
|
|
895
|
+
exports.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
920
896
|
const ret = Number(arg0);
|
|
921
897
|
return ret;
|
|
922
898
|
};
|
|
@@ -929,20 +905,20 @@ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
|
929
905
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
930
906
|
};
|
|
931
907
|
|
|
932
|
-
exports.
|
|
908
|
+
exports.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
933
909
|
const v = arg1;
|
|
934
910
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
935
911
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
936
912
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
937
913
|
};
|
|
938
914
|
|
|
939
|
-
exports.
|
|
915
|
+
exports.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
940
916
|
const v = arg0;
|
|
941
917
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
942
918
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
943
919
|
};
|
|
944
920
|
|
|
945
|
-
exports.
|
|
921
|
+
exports.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
946
922
|
const ret = debugString(arg1);
|
|
947
923
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
948
924
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -950,55 +926,55 @@ exports.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
|
950
926
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
951
927
|
};
|
|
952
928
|
|
|
953
|
-
exports.
|
|
929
|
+
exports.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
954
930
|
const ret = arg0 in arg1;
|
|
955
931
|
return ret;
|
|
956
932
|
};
|
|
957
933
|
|
|
958
|
-
exports.
|
|
934
|
+
exports.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
959
935
|
const ret = typeof(arg0) === 'bigint';
|
|
960
936
|
return ret;
|
|
961
937
|
};
|
|
962
938
|
|
|
963
|
-
exports.
|
|
939
|
+
exports.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
964
940
|
const ret = typeof(arg0) === 'function';
|
|
965
941
|
return ret;
|
|
966
942
|
};
|
|
967
943
|
|
|
968
|
-
exports.
|
|
944
|
+
exports.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
969
945
|
const val = arg0;
|
|
970
946
|
const ret = typeof(val) === 'object' && val !== null;
|
|
971
947
|
return ret;
|
|
972
948
|
};
|
|
973
949
|
|
|
974
|
-
exports.
|
|
950
|
+
exports.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
975
951
|
const ret = typeof(arg0) === 'string';
|
|
976
952
|
return ret;
|
|
977
953
|
};
|
|
978
954
|
|
|
979
|
-
exports.
|
|
955
|
+
exports.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
980
956
|
const ret = arg0 === undefined;
|
|
981
957
|
return ret;
|
|
982
958
|
};
|
|
983
959
|
|
|
984
|
-
exports.
|
|
960
|
+
exports.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
985
961
|
const ret = arg0 === arg1;
|
|
986
962
|
return ret;
|
|
987
963
|
};
|
|
988
964
|
|
|
989
|
-
exports.
|
|
965
|
+
exports.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
990
966
|
const ret = arg0 == arg1;
|
|
991
967
|
return ret;
|
|
992
968
|
};
|
|
993
969
|
|
|
994
|
-
exports.
|
|
970
|
+
exports.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
995
971
|
const obj = arg1;
|
|
996
972
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
997
973
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
998
974
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
999
975
|
};
|
|
1000
976
|
|
|
1001
|
-
exports.
|
|
977
|
+
exports.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
1002
978
|
const obj = arg1;
|
|
1003
979
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1004
980
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1007,27 +983,27 @@ exports.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
|
1007
983
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1008
984
|
};
|
|
1009
985
|
|
|
1010
|
-
exports.
|
|
986
|
+
exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
1011
987
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1012
988
|
};
|
|
1013
989
|
|
|
1014
|
-
exports.
|
|
990
|
+
exports.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
1015
991
|
arg0._wbg_cb_unref();
|
|
1016
992
|
};
|
|
1017
993
|
|
|
1018
|
-
exports.
|
|
1019
|
-
arg0.abort(
|
|
994
|
+
exports.__wbg_abort_07646c894ebbf2bd = function(arg0) {
|
|
995
|
+
arg0.abort();
|
|
1020
996
|
};
|
|
1021
997
|
|
|
1022
|
-
exports.
|
|
1023
|
-
arg0.abort();
|
|
998
|
+
exports.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
|
|
999
|
+
arg0.abort(arg1);
|
|
1024
1000
|
};
|
|
1025
1001
|
|
|
1026
|
-
exports.
|
|
1002
|
+
exports.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1027
1003
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1028
1004
|
}, arguments) };
|
|
1029
1005
|
|
|
1030
|
-
exports.
|
|
1006
|
+
exports.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
|
|
1031
1007
|
const ret = arg0.arrayBuffer();
|
|
1032
1008
|
return ret;
|
|
1033
1009
|
}, arguments) };
|
|
@@ -1037,12 +1013,12 @@ exports.__wbg_authorizeresult_new = function(arg0) {
|
|
|
1037
1013
|
return ret;
|
|
1038
1014
|
};
|
|
1039
1015
|
|
|
1040
|
-
exports.
|
|
1016
|
+
exports.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1041
1017
|
const ret = arg0.call(arg1, arg2);
|
|
1042
1018
|
return ret;
|
|
1043
1019
|
}, arguments) };
|
|
1044
1020
|
|
|
1045
|
-
exports.
|
|
1021
|
+
exports.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
1046
1022
|
const ret = arg0.call(arg1);
|
|
1047
1023
|
return ret;
|
|
1048
1024
|
}, arguments) };
|
|
@@ -1062,26 +1038,26 @@ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
|
1062
1038
|
return ret;
|
|
1063
1039
|
};
|
|
1064
1040
|
|
|
1065
|
-
exports.
|
|
1041
|
+
exports.__wbg_debug_24d884048190fccc = function(arg0) {
|
|
1066
1042
|
console.debug(...arg0);
|
|
1067
1043
|
};
|
|
1068
1044
|
|
|
1069
|
-
exports.
|
|
1045
|
+
exports.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
1070
1046
|
const ret = arg0.done;
|
|
1071
1047
|
return ret;
|
|
1072
1048
|
};
|
|
1073
1049
|
|
|
1074
|
-
exports.
|
|
1050
|
+
exports.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
1075
1051
|
const ret = Object.entries(arg0);
|
|
1076
1052
|
return ret;
|
|
1077
1053
|
};
|
|
1078
1054
|
|
|
1079
|
-
exports.
|
|
1055
|
+
exports.__wbg_entries_9af46b7eaf7dfefa = function(arg0) {
|
|
1080
1056
|
const ret = arg0.entries();
|
|
1081
1057
|
return ret;
|
|
1082
1058
|
};
|
|
1083
1059
|
|
|
1084
|
-
exports.
|
|
1060
|
+
exports.__wbg_error_98d791de55bc7c97 = function(arg0) {
|
|
1085
1061
|
console.error(...arg0);
|
|
1086
1062
|
};
|
|
1087
1063
|
|
|
@@ -1090,12 +1066,12 @@ exports.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
|
1090
1066
|
return ret;
|
|
1091
1067
|
};
|
|
1092
1068
|
|
|
1093
|
-
exports.
|
|
1069
|
+
exports.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
|
|
1094
1070
|
const ret = arg0.fetch(arg1);
|
|
1095
1071
|
return ret;
|
|
1096
1072
|
};
|
|
1097
1073
|
|
|
1098
|
-
exports.
|
|
1074
|
+
exports.__wbg_fromEntries_743eaaa008e6db37 = function() { return handleError(function (arg0) {
|
|
1099
1075
|
const ret = Object.fromEntries(arg0);
|
|
1100
1076
|
return ret;
|
|
1101
1077
|
}, arguments) };
|
|
@@ -1108,22 +1084,22 @@ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError
|
|
|
1108
1084
|
arg0.getRandomValues(arg1);
|
|
1109
1085
|
}, arguments) };
|
|
1110
1086
|
|
|
1111
|
-
exports.
|
|
1087
|
+
exports.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
1112
1088
|
const ret = arg0.getTime();
|
|
1113
1089
|
return ret;
|
|
1114
1090
|
};
|
|
1115
1091
|
|
|
1116
|
-
exports.
|
|
1092
|
+
exports.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
1117
1093
|
const ret = arg0.getTimezoneOffset();
|
|
1118
1094
|
return ret;
|
|
1119
1095
|
};
|
|
1120
1096
|
|
|
1121
|
-
exports.
|
|
1097
|
+
exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1122
1098
|
const ret = arg0[arg1 >>> 0];
|
|
1123
1099
|
return ret;
|
|
1124
1100
|
};
|
|
1125
1101
|
|
|
1126
|
-
exports.
|
|
1102
|
+
exports.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1127
1103
|
const ret = Reflect.get(arg0, arg1);
|
|
1128
1104
|
return ret;
|
|
1129
1105
|
}, arguments) };
|
|
@@ -1133,21 +1109,21 @@ exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
|
1133
1109
|
return ret;
|
|
1134
1110
|
};
|
|
1135
1111
|
|
|
1136
|
-
exports.
|
|
1112
|
+
exports.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
|
|
1137
1113
|
const ret = Reflect.has(arg0, arg1);
|
|
1138
1114
|
return ret;
|
|
1139
1115
|
}, arguments) };
|
|
1140
1116
|
|
|
1141
|
-
exports.
|
|
1117
|
+
exports.__wbg_headers_654c30e1bcccc552 = function(arg0) {
|
|
1142
1118
|
const ret = arg0.headers;
|
|
1143
1119
|
return ret;
|
|
1144
1120
|
};
|
|
1145
1121
|
|
|
1146
|
-
exports.
|
|
1122
|
+
exports.__wbg_info_e951478d580c1573 = function(arg0) {
|
|
1147
1123
|
console.info(...arg0);
|
|
1148
1124
|
};
|
|
1149
1125
|
|
|
1150
|
-
exports.
|
|
1126
|
+
exports.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
1151
1127
|
let result;
|
|
1152
1128
|
try {
|
|
1153
1129
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1158,7 +1134,7 @@ exports.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
|
1158
1134
|
return ret;
|
|
1159
1135
|
};
|
|
1160
1136
|
|
|
1161
|
-
exports.
|
|
1137
|
+
exports.__wbg_instanceof_Array_bc64f5da83077362 = function(arg0) {
|
|
1162
1138
|
let result;
|
|
1163
1139
|
try {
|
|
1164
1140
|
result = arg0 instanceof Array;
|
|
@@ -1169,7 +1145,7 @@ exports.__wbg_instanceof_Array_fca44e0f4a7f6240 = function(arg0) {
|
|
|
1169
1145
|
return ret;
|
|
1170
1146
|
};
|
|
1171
1147
|
|
|
1172
|
-
exports.
|
|
1148
|
+
exports.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
1173
1149
|
let result;
|
|
1174
1150
|
try {
|
|
1175
1151
|
result = arg0 instanceof Map;
|
|
@@ -1180,7 +1156,7 @@ exports.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
|
1180
1156
|
return ret;
|
|
1181
1157
|
};
|
|
1182
1158
|
|
|
1183
|
-
exports.
|
|
1159
|
+
exports.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
|
|
1184
1160
|
let result;
|
|
1185
1161
|
try {
|
|
1186
1162
|
result = arg0 instanceof Response;
|
|
@@ -1191,7 +1167,7 @@ exports.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
|
|
|
1191
1167
|
return ret;
|
|
1192
1168
|
};
|
|
1193
1169
|
|
|
1194
|
-
exports.
|
|
1170
|
+
exports.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1195
1171
|
let result;
|
|
1196
1172
|
try {
|
|
1197
1173
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1202,37 +1178,37 @@ exports.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
|
1202
1178
|
return ret;
|
|
1203
1179
|
};
|
|
1204
1180
|
|
|
1205
|
-
exports.
|
|
1181
|
+
exports.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
1206
1182
|
const ret = Array.isArray(arg0);
|
|
1207
1183
|
return ret;
|
|
1208
1184
|
};
|
|
1209
1185
|
|
|
1210
|
-
exports.
|
|
1186
|
+
exports.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
1211
1187
|
const ret = Number.isSafeInteger(arg0);
|
|
1212
1188
|
return ret;
|
|
1213
1189
|
};
|
|
1214
1190
|
|
|
1215
|
-
exports.
|
|
1191
|
+
exports.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
1216
1192
|
const ret = Symbol.iterator;
|
|
1217
1193
|
return ret;
|
|
1218
1194
|
};
|
|
1219
1195
|
|
|
1220
|
-
exports.
|
|
1196
|
+
exports.__wbg_keys_f5c6002ff150fc6c = function(arg0) {
|
|
1221
1197
|
const ret = Object.keys(arg0);
|
|
1222
1198
|
return ret;
|
|
1223
1199
|
};
|
|
1224
1200
|
|
|
1225
|
-
exports.
|
|
1201
|
+
exports.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1226
1202
|
const ret = arg0.length;
|
|
1227
1203
|
return ret;
|
|
1228
1204
|
};
|
|
1229
1205
|
|
|
1230
|
-
exports.
|
|
1206
|
+
exports.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1231
1207
|
const ret = arg0.length;
|
|
1232
1208
|
return ret;
|
|
1233
1209
|
};
|
|
1234
1210
|
|
|
1235
|
-
exports.
|
|
1211
|
+
exports.__wbg_log_3f650af133a6de58 = function(arg0) {
|
|
1236
1212
|
console.log(...arg0);
|
|
1237
1213
|
};
|
|
1238
1214
|
|
|
@@ -1246,29 +1222,54 @@ exports.__wbg_multiissuerauthorizeresult_new = function(arg0) {
|
|
|
1246
1222
|
return ret;
|
|
1247
1223
|
};
|
|
1248
1224
|
|
|
1249
|
-
exports.
|
|
1225
|
+
exports.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1250
1226
|
const ret = new Date();
|
|
1251
1227
|
return ret;
|
|
1252
1228
|
};
|
|
1253
1229
|
|
|
1254
|
-
exports.
|
|
1230
|
+
exports.__wbg_new_1ba21ce319a06297 = function() {
|
|
1255
1231
|
const ret = new Object();
|
|
1256
1232
|
return ret;
|
|
1257
1233
|
};
|
|
1258
1234
|
|
|
1259
|
-
exports.
|
|
1235
|
+
exports.__wbg_new_25f239778d6112b9 = function() {
|
|
1236
|
+
const ret = new Array();
|
|
1237
|
+
return ret;
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
exports.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
|
|
1241
|
+
const ret = new Headers();
|
|
1242
|
+
return ret;
|
|
1243
|
+
}, arguments) };
|
|
1244
|
+
|
|
1245
|
+
exports.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
1246
|
+
const ret = new Uint8Array(arg0);
|
|
1247
|
+
return ret;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
exports.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
|
|
1260
1251
|
const ret = new AbortController();
|
|
1261
1252
|
return ret;
|
|
1262
1253
|
}, arguments) };
|
|
1263
1254
|
|
|
1264
|
-
exports.
|
|
1255
|
+
exports.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
1256
|
+
const ret = new Date(arg0);
|
|
1257
|
+
return ret;
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
exports.__wbg_new_b546ae120718850e = function() {
|
|
1261
|
+
const ret = new Map();
|
|
1262
|
+
return ret;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
exports.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1265
1266
|
try {
|
|
1266
1267
|
var state0 = {a: arg0, b: arg1};
|
|
1267
1268
|
var cb0 = (arg0, arg1) => {
|
|
1268
1269
|
const a = state0.a;
|
|
1269
1270
|
state0.a = 0;
|
|
1270
1271
|
try {
|
|
1271
|
-
return
|
|
1272
|
+
return wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(a, state0.b, arg0, arg1);
|
|
1272
1273
|
} finally {
|
|
1273
1274
|
state0.a = a;
|
|
1274
1275
|
}
|
|
@@ -1280,66 +1281,41 @@ exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
|
1280
1281
|
}
|
|
1281
1282
|
};
|
|
1282
1283
|
|
|
1283
|
-
exports.
|
|
1284
|
-
const ret = new Uint8Array(arg0);
|
|
1285
|
-
return ret;
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
exports.__wbg_new_68651c719dcda04e = function() {
|
|
1289
|
-
const ret = new Map();
|
|
1290
|
-
return ret;
|
|
1291
|
-
};
|
|
1292
|
-
|
|
1293
|
-
exports.__wbg_new_93d9417ed3fb115d = function(arg0) {
|
|
1294
|
-
const ret = new Date(arg0);
|
|
1295
|
-
return ret;
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
exports.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
|
|
1299
|
-
const ret = new Headers();
|
|
1300
|
-
return ret;
|
|
1301
|
-
}, arguments) };
|
|
1302
|
-
|
|
1303
|
-
exports.__wbg_new_e17d9f43105b08be = function() {
|
|
1304
|
-
const ret = new Array();
|
|
1305
|
-
return ret;
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
exports.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
1284
|
+
exports.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1309
1285
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1310
1286
|
return ret;
|
|
1311
1287
|
};
|
|
1312
1288
|
|
|
1313
|
-
exports.
|
|
1289
|
+
exports.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1314
1290
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1315
1291
|
return ret;
|
|
1316
1292
|
};
|
|
1317
1293
|
|
|
1318
|
-
exports.
|
|
1294
|
+
exports.__wbg_new_with_args_df9e7125ffe55248 = function(arg0, arg1, arg2, arg3) {
|
|
1319
1295
|
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1320
1296
|
return ret;
|
|
1321
1297
|
};
|
|
1322
1298
|
|
|
1323
|
-
exports.
|
|
1299
|
+
exports.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
1324
1300
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1325
1301
|
return ret;
|
|
1326
1302
|
};
|
|
1327
1303
|
|
|
1328
|
-
exports.
|
|
1304
|
+
exports.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1329
1305
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1330
1306
|
return ret;
|
|
1331
1307
|
}, arguments) };
|
|
1332
1308
|
|
|
1333
|
-
exports.
|
|
1334
|
-
const ret = arg0.next();
|
|
1335
|
-
return ret;
|
|
1336
|
-
}, arguments) };
|
|
1337
|
-
|
|
1338
|
-
exports.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
1309
|
+
exports.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
1339
1310
|
const ret = arg0.next;
|
|
1340
1311
|
return ret;
|
|
1341
1312
|
};
|
|
1342
1313
|
|
|
1314
|
+
exports.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
|
|
1315
|
+
const ret = arg0.next();
|
|
1316
|
+
return ret;
|
|
1317
|
+
}, arguments) };
|
|
1318
|
+
|
|
1343
1319
|
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1344
1320
|
const ret = arg0.node;
|
|
1345
1321
|
return ret;
|
|
@@ -1355,21 +1331,21 @@ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
|
1355
1331
|
return ret;
|
|
1356
1332
|
};
|
|
1357
1333
|
|
|
1358
|
-
exports.
|
|
1334
|
+
exports.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1359
1335
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1360
1336
|
};
|
|
1361
1337
|
|
|
1362
|
-
exports.
|
|
1338
|
+
exports.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1363
1339
|
const ret = arg0.push(arg1);
|
|
1364
1340
|
return ret;
|
|
1365
1341
|
};
|
|
1366
1342
|
|
|
1367
|
-
exports.
|
|
1343
|
+
exports.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1368
1344
|
const ret = arg0.queueMicrotask;
|
|
1369
1345
|
return ret;
|
|
1370
1346
|
};
|
|
1371
1347
|
|
|
1372
|
-
exports.
|
|
1348
|
+
exports.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1373
1349
|
queueMicrotask(arg0);
|
|
1374
1350
|
};
|
|
1375
1351
|
|
|
@@ -1382,7 +1358,7 @@ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(functio
|
|
|
1382
1358
|
return ret;
|
|
1383
1359
|
}, arguments) };
|
|
1384
1360
|
|
|
1385
|
-
exports.
|
|
1361
|
+
exports.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1386
1362
|
const ret = Promise.resolve(arg0);
|
|
1387
1363
|
return ret;
|
|
1388
1364
|
};
|
|
@@ -1396,108 +1372,108 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
|
1396
1372
|
arg0[arg1] = arg2;
|
|
1397
1373
|
};
|
|
1398
1374
|
|
|
1399
|
-
exports.
|
|
1400
|
-
const ret =
|
|
1375
|
+
exports.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1376
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1401
1377
|
return ret;
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
1405
|
-
arg0.body = arg1;
|
|
1406
|
-
};
|
|
1378
|
+
}, arguments) };
|
|
1407
1379
|
|
|
1408
|
-
exports.
|
|
1380
|
+
exports.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
1409
1381
|
arg0[arg1 >>> 0] = arg2;
|
|
1410
1382
|
};
|
|
1411
1383
|
|
|
1412
|
-
exports.
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
}, arguments) };
|
|
1384
|
+
exports.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
1385
|
+
arg0.body = arg1;
|
|
1386
|
+
};
|
|
1416
1387
|
|
|
1417
|
-
exports.
|
|
1388
|
+
exports.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
|
|
1418
1389
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1419
1390
|
};
|
|
1420
1391
|
|
|
1421
|
-
exports.
|
|
1392
|
+
exports.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) {
|
|
1422
1393
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1423
1394
|
};
|
|
1424
1395
|
|
|
1425
|
-
exports.
|
|
1396
|
+
exports.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1397
|
+
const ret = arg0.set(arg1, arg2);
|
|
1398
|
+
return ret;
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
exports.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
|
|
1426
1402
|
arg0.headers = arg1;
|
|
1427
1403
|
};
|
|
1428
1404
|
|
|
1429
|
-
exports.
|
|
1405
|
+
exports.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1430
1406
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1431
1407
|
};
|
|
1432
1408
|
|
|
1433
|
-
exports.
|
|
1409
|
+
exports.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
|
|
1434
1410
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1435
1411
|
};
|
|
1436
1412
|
|
|
1437
|
-
exports.
|
|
1413
|
+
exports.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
|
|
1438
1414
|
arg0.signal = arg1;
|
|
1439
1415
|
};
|
|
1440
1416
|
|
|
1441
|
-
exports.
|
|
1417
|
+
exports.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
|
|
1442
1418
|
const ret = arg0.signal;
|
|
1443
1419
|
return ret;
|
|
1444
1420
|
};
|
|
1445
1421
|
|
|
1446
|
-
exports.
|
|
1422
|
+
exports.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1447
1423
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1448
1424
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1449
1425
|
};
|
|
1450
1426
|
|
|
1451
|
-
exports.
|
|
1427
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1452
1428
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1453
1429
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1454
1430
|
};
|
|
1455
1431
|
|
|
1456
|
-
exports.
|
|
1432
|
+
exports.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1457
1433
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1458
1434
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1459
1435
|
};
|
|
1460
1436
|
|
|
1461
|
-
exports.
|
|
1437
|
+
exports.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1462
1438
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1463
1439
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1464
1440
|
};
|
|
1465
1441
|
|
|
1466
|
-
exports.
|
|
1442
|
+
exports.__wbg_status_9bfc680efca4bdfd = function(arg0) {
|
|
1467
1443
|
const ret = arg0.status;
|
|
1468
1444
|
return ret;
|
|
1469
1445
|
};
|
|
1470
1446
|
|
|
1471
|
-
exports.
|
|
1447
|
+
exports.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) {
|
|
1472
1448
|
const ret = JSON.stringify(arg0);
|
|
1473
1449
|
return ret;
|
|
1474
1450
|
}, arguments) };
|
|
1475
1451
|
|
|
1476
|
-
exports.
|
|
1452
|
+
exports.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
|
|
1477
1453
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1478
1454
|
return ret;
|
|
1479
1455
|
};
|
|
1480
1456
|
|
|
1481
|
-
exports.
|
|
1457
|
+
exports.__wbg_text_51046bb33d257f63 = function() { return handleError(function (arg0) {
|
|
1482
1458
|
const ret = arg0.text();
|
|
1483
1459
|
return ret;
|
|
1484
1460
|
}, arguments) };
|
|
1485
1461
|
|
|
1486
|
-
exports.
|
|
1487
|
-
const ret = arg0.then(arg1);
|
|
1462
|
+
exports.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1463
|
+
const ret = arg0.then(arg1, arg2);
|
|
1488
1464
|
return ret;
|
|
1489
1465
|
};
|
|
1490
1466
|
|
|
1491
|
-
exports.
|
|
1492
|
-
const ret = arg0.then(arg1
|
|
1467
|
+
exports.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1468
|
+
const ret = arg0.then(arg1);
|
|
1493
1469
|
return ret;
|
|
1494
1470
|
};
|
|
1495
1471
|
|
|
1496
|
-
exports.
|
|
1472
|
+
exports.__wbg_trace_b213249bfc587469 = function(arg0) {
|
|
1497
1473
|
console.trace(...arg0);
|
|
1498
1474
|
};
|
|
1499
1475
|
|
|
1500
|
-
exports.
|
|
1476
|
+
exports.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) {
|
|
1501
1477
|
const ret = arg1.url;
|
|
1502
1478
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1503
1479
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1505,7 +1481,7 @@ exports.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
|
|
|
1505
1481
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1506
1482
|
};
|
|
1507
1483
|
|
|
1508
|
-
exports.
|
|
1484
|
+
exports.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
1509
1485
|
const ret = arg0.value;
|
|
1510
1486
|
return ret;
|
|
1511
1487
|
};
|
|
@@ -1515,13 +1491,13 @@ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
|
1515
1491
|
return ret;
|
|
1516
1492
|
};
|
|
1517
1493
|
|
|
1518
|
-
exports.
|
|
1494
|
+
exports.__wbg_warn_14a9fd75d0abe5d7 = function(arg0) {
|
|
1519
1495
|
console.warn(...arg0);
|
|
1520
1496
|
};
|
|
1521
1497
|
|
|
1522
|
-
exports.
|
|
1523
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1524
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1498
|
+
exports.__wbindgen_cast_06e9015128396e60 = function(arg0, arg1) {
|
|
1499
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 505, function: Function { arguments: [], shim_idx: 506, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1500
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3b69c8350c009da1, wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97);
|
|
1525
1501
|
return ret;
|
|
1526
1502
|
};
|
|
1527
1503
|
|
|
@@ -1537,9 +1513,9 @@ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
|
1537
1513
|
return ret;
|
|
1538
1514
|
};
|
|
1539
1515
|
|
|
1540
|
-
exports.
|
|
1541
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1542
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1516
|
+
exports.__wbindgen_cast_4bdd81be241a5b48 = function(arg0, arg1) {
|
|
1517
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 549, function: Function { arguments: [Externref], shim_idx: 550, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1518
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5f4f3416747f6981, wasm_bindgen__convert__closures_____invoke__he934e31379087ee0);
|
|
1543
1519
|
return ret;
|
|
1544
1520
|
};
|
|
1545
1521
|
|
|
@@ -1569,7 +1545,6 @@ exports.__wbindgen_init_externref_table = function() {
|
|
|
1569
1545
|
table.set(offset + 1, null);
|
|
1570
1546
|
table.set(offset + 2, true);
|
|
1571
1547
|
table.set(offset + 3, false);
|
|
1572
|
-
;
|
|
1573
1548
|
};
|
|
1574
1549
|
|
|
1575
1550
|
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
@@ -1578,4 +1553,3 @@ const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
|
1578
1553
|
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
1579
1554
|
|
|
1580
1555
|
wasm.__wbindgen_start();
|
|
1581
|
-
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
3
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.284-nodejs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|