@cratestack/cbor-web 0.13.0 → 0.13.1
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.
|
@@ -96,7 +96,7 @@ export function start() {
|
|
|
96
96
|
function __wbg_get_imports() {
|
|
97
97
|
const import0 = {
|
|
98
98
|
__proto__: null,
|
|
99
|
-
|
|
99
|
+
__wbg_Error_30c8987f7c2ed4e2: function(arg0, arg1) {
|
|
100
100
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
101
101
|
return ret;
|
|
102
102
|
},
|
|
@@ -107,60 +107,60 @@ function __wbg_get_imports() {
|
|
|
107
107
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
108
108
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
109
109
|
},
|
|
110
|
-
|
|
110
|
+
__wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c: function(arg0, arg1) {
|
|
111
111
|
const v = arg1;
|
|
112
112
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
113
113
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
114
114
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
115
115
|
},
|
|
116
|
-
|
|
116
|
+
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
|
|
117
117
|
const v = arg0;
|
|
118
118
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
119
119
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
120
120
|
},
|
|
121
|
-
|
|
121
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
122
122
|
const ret = debugString(arg1);
|
|
123
123
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
124
124
|
const len1 = WASM_VECTOR_LEN;
|
|
125
125
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
126
126
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
127
127
|
},
|
|
128
|
-
|
|
128
|
+
__wbg___wbindgen_in_92f62ee1427d9e49: function(arg0, arg1) {
|
|
129
129
|
const ret = arg0 in arg1;
|
|
130
130
|
return ret;
|
|
131
131
|
},
|
|
132
|
-
|
|
132
|
+
__wbg___wbindgen_is_bigint_b123553bed3bb382: function(arg0) {
|
|
133
133
|
const ret = typeof(arg0) === 'bigint';
|
|
134
134
|
return ret;
|
|
135
135
|
},
|
|
136
|
-
|
|
136
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
137
137
|
const ret = typeof(arg0) === 'function';
|
|
138
138
|
return ret;
|
|
139
139
|
},
|
|
140
|
-
|
|
140
|
+
__wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
|
|
141
141
|
const val = arg0;
|
|
142
142
|
const ret = typeof(val) === 'object' && val !== null;
|
|
143
143
|
return ret;
|
|
144
144
|
},
|
|
145
|
-
|
|
145
|
+
__wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
|
|
146
146
|
const ret = typeof(arg0) === 'string';
|
|
147
147
|
return ret;
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
__wbg___wbindgen_jsval_eq_02babf21faa37971: function(arg0, arg1) {
|
|
150
150
|
const ret = arg0 === arg1;
|
|
151
151
|
return ret;
|
|
152
152
|
},
|
|
153
|
-
|
|
153
|
+
__wbg___wbindgen_jsval_loose_eq_677f21e468d6b461: function(arg0, arg1) {
|
|
154
154
|
const ret = arg0 == arg1;
|
|
155
155
|
return ret;
|
|
156
156
|
},
|
|
157
|
-
|
|
157
|
+
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
|
|
158
158
|
const obj = arg1;
|
|
159
159
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
160
160
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
161
161
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
162
162
|
},
|
|
163
|
-
|
|
163
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
164
164
|
const obj = arg1;
|
|
165
165
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
166
166
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -168,18 +168,18 @@ function __wbg_get_imports() {
|
|
|
168
168
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
169
169
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
170
170
|
},
|
|
171
|
-
|
|
171
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
172
172
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
173
173
|
},
|
|
174
|
-
|
|
174
|
+
__wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
|
|
175
175
|
const ret = arg0.call(arg1);
|
|
176
176
|
return ret;
|
|
177
177
|
}, arguments); },
|
|
178
|
-
|
|
178
|
+
__wbg_done_b41a1d26cdb37fb6: function(arg0) {
|
|
179
179
|
const ret = arg0.done;
|
|
180
180
|
return ret;
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
__wbg_entries_fb6397112b1de25f: function(arg0) {
|
|
183
183
|
const ret = Object.entries(arg0);
|
|
184
184
|
return ret;
|
|
185
185
|
},
|
|
@@ -194,23 +194,23 @@ function __wbg_get_imports() {
|
|
|
194
194
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
-
|
|
197
|
+
__wbg_from_296ca31f8d0f1c52: function(arg0) {
|
|
198
198
|
const ret = Array.from(arg0);
|
|
199
199
|
return ret;
|
|
200
200
|
},
|
|
201
|
-
|
|
202
|
-
const ret = arg0[arg1 >>> 0];
|
|
203
|
-
return ret;
|
|
204
|
-
},
|
|
205
|
-
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
201
|
+
__wbg_get_658f6698067d9515: function() { return handleError(function (arg0, arg1) {
|
|
206
202
|
const ret = Reflect.get(arg0, arg1);
|
|
207
203
|
return ret;
|
|
208
204
|
}, arguments); },
|
|
209
|
-
|
|
205
|
+
__wbg_get_6c896e0571ddae51: function(arg0, arg1) {
|
|
210
206
|
const ret = arg0[arg1 >>> 0];
|
|
211
207
|
return ret;
|
|
212
208
|
},
|
|
213
|
-
|
|
209
|
+
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
210
|
+
const ret = arg0[arg1 >>> 0];
|
|
211
|
+
return ret;
|
|
212
|
+
},
|
|
213
|
+
__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
|
|
214
214
|
let result;
|
|
215
215
|
try {
|
|
216
216
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -220,7 +220,7 @@ function __wbg_get_imports() {
|
|
|
220
220
|
const ret = result;
|
|
221
221
|
return ret;
|
|
222
222
|
},
|
|
223
|
-
|
|
223
|
+
__wbg_instanceof_Map_b2611749102d7ba3: function(arg0) {
|
|
224
224
|
let result;
|
|
225
225
|
try {
|
|
226
226
|
result = arg0 instanceof Map;
|
|
@@ -230,7 +230,7 @@ function __wbg_get_imports() {
|
|
|
230
230
|
const ret = result;
|
|
231
231
|
return ret;
|
|
232
232
|
},
|
|
233
|
-
|
|
233
|
+
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
|
|
234
234
|
let result;
|
|
235
235
|
try {
|
|
236
236
|
result = arg0 instanceof Uint8Array;
|
|
@@ -240,65 +240,65 @@ function __wbg_get_imports() {
|
|
|
240
240
|
const ret = result;
|
|
241
241
|
return ret;
|
|
242
242
|
},
|
|
243
|
-
|
|
243
|
+
__wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
|
|
244
244
|
const ret = Array.isArray(arg0);
|
|
245
245
|
return ret;
|
|
246
246
|
},
|
|
247
|
-
|
|
247
|
+
__wbg_isSafeInteger_717808ad6a54bd9e: function(arg0) {
|
|
248
248
|
const ret = Number.isSafeInteger(arg0);
|
|
249
249
|
return ret;
|
|
250
250
|
},
|
|
251
|
-
|
|
251
|
+
__wbg_iterator_e3c31c892080e444: function() {
|
|
252
252
|
const ret = Symbol.iterator;
|
|
253
253
|
return ret;
|
|
254
254
|
},
|
|
255
|
-
|
|
255
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
256
256
|
const ret = arg0.length;
|
|
257
257
|
return ret;
|
|
258
258
|
},
|
|
259
|
-
|
|
259
|
+
__wbg_length_d4bdea10311bd9cf: function(arg0) {
|
|
260
260
|
const ret = arg0.length;
|
|
261
261
|
return ret;
|
|
262
262
|
},
|
|
263
|
-
|
|
264
|
-
const ret = new
|
|
263
|
+
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
264
|
+
const ret = new Uint8Array(arg0);
|
|
265
265
|
return ret;
|
|
266
266
|
},
|
|
267
267
|
__wbg_new_227d7c05414eb861: function() {
|
|
268
268
|
const ret = new Error();
|
|
269
269
|
return ret;
|
|
270
270
|
},
|
|
271
|
-
|
|
272
|
-
const ret = new Uint8Array(arg0);
|
|
273
|
-
return ret;
|
|
274
|
-
},
|
|
275
|
-
__wbg_new_cdf041679ded4c5f: function() {
|
|
271
|
+
__wbg_new_28744009d011f847: function() {
|
|
276
272
|
const ret = new Map();
|
|
277
273
|
return ret;
|
|
278
274
|
},
|
|
279
|
-
|
|
275
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
280
276
|
const ret = new Object();
|
|
281
277
|
return ret;
|
|
282
278
|
},
|
|
283
|
-
|
|
284
|
-
const ret =
|
|
279
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
280
|
+
const ret = new Array();
|
|
285
281
|
return ret;
|
|
286
|
-
},
|
|
287
|
-
|
|
282
|
+
},
|
|
283
|
+
__wbg_next_33784799010f1bbe: function(arg0) {
|
|
288
284
|
const ret = arg0.next;
|
|
289
285
|
return ret;
|
|
290
286
|
},
|
|
291
|
-
|
|
287
|
+
__wbg_next_f4aac29c42af995c: function() { return handleError(function (arg0) {
|
|
288
|
+
const ret = arg0.next();
|
|
289
|
+
return ret;
|
|
290
|
+
}, arguments); },
|
|
291
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
292
292
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
293
293
|
},
|
|
294
|
-
|
|
294
|
+
__wbg_set_6ae97e73113c4f0b: function(arg0, arg1, arg2) {
|
|
295
295
|
const ret = arg0.set(arg1, arg2);
|
|
296
296
|
return ret;
|
|
297
297
|
},
|
|
298
298
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
299
299
|
arg0[arg1] = arg2;
|
|
300
300
|
},
|
|
301
|
-
|
|
301
|
+
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
302
302
|
arg0[arg1 >>> 0] = arg2;
|
|
303
303
|
},
|
|
304
304
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -308,31 +308,31 @@ function __wbg_get_imports() {
|
|
|
308
308
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
309
309
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
310
310
|
},
|
|
311
|
-
|
|
311
|
+
__wbg_value_f3c585ee8f5ba40c: function(arg0) {
|
|
312
312
|
const ret = arg0.value;
|
|
313
313
|
return ret;
|
|
314
314
|
},
|
|
315
|
-
|
|
315
|
+
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
316
316
|
// Cast intrinsic for `F64 -> Externref`.
|
|
317
317
|
const ret = arg0;
|
|
318
318
|
return ret;
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
321
321
|
// Cast intrinsic for `I64 -> Externref`.
|
|
322
322
|
const ret = arg0;
|
|
323
323
|
return ret;
|
|
324
324
|
},
|
|
325
|
-
|
|
325
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
326
326
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
327
327
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
328
328
|
return ret;
|
|
329
329
|
},
|
|
330
|
-
|
|
330
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
331
331
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
332
332
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
333
333
|
return ret;
|
|
334
334
|
},
|
|
335
|
-
|
|
335
|
+
__wbindgen_generic_0000000000000005: function(arg0) {
|
|
336
336
|
// Cast intrinsic for `U64 -> Externref`.
|
|
337
337
|
const ret = BigInt.asUintN(64, arg0);
|
|
338
338
|
return ret;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratestack/cbor-web",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "wasm-bindgen CBOR codec for browser CrateStack RPC clients. Async one-time WASM init, synchronous encode/decode after — backed by the same Rust CborCodec the server and Rust client already use.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint": "biome check ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cratestack/ts-types": "0.13.
|
|
46
|
+
"@cratestack/ts-types": "0.13.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "^7.0.2",
|