@takumi-rs/wasm 2.9.2 → 2.10.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/dist/export.cjs +43 -42
- package/dist/export.mjs +43 -42
- package/package.json +2 -2
- package/pkg/takumi_wasm_bg.wasm +0 -0
package/dist/export.cjs
CHANGED
|
@@ -154,10 +154,10 @@ function __wbg_get_imports() {
|
|
|
154
154
|
__proto__: null,
|
|
155
155
|
"./takumi_wasm_bg.js": {
|
|
156
156
|
__proto__: null,
|
|
157
|
-
|
|
157
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
158
158
|
return Error(getStringFromWasm0(arg0, arg1));
|
|
159
159
|
},
|
|
160
|
-
|
|
160
|
+
__wbg_Number_3890faa6d3ff057d: function(arg0) {
|
|
161
161
|
return Number(arg0);
|
|
162
162
|
},
|
|
163
163
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
@@ -166,55 +166,55 @@ function __wbg_get_imports() {
|
|
|
166
166
|
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
167
167
|
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
168
168
|
},
|
|
169
|
-
|
|
169
|
+
__wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
|
|
170
170
|
const v = arg1;
|
|
171
171
|
const ret = typeof v === "bigint" ? v : void 0;
|
|
172
172
|
getDataViewMemory0().setBigInt64(arg0 + 8, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
173
173
|
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
174
174
|
},
|
|
175
|
-
|
|
175
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
176
176
|
const v = arg0;
|
|
177
177
|
const ret = typeof v === "boolean" ? v : void 0;
|
|
178
178
|
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
179
179
|
},
|
|
180
|
-
|
|
180
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
181
181
|
const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
182
182
|
const len1 = WASM_VECTOR_LEN;
|
|
183
183
|
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
184
184
|
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
185
185
|
},
|
|
186
|
-
|
|
186
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
187
187
|
return arg0 in arg1;
|
|
188
188
|
},
|
|
189
|
-
|
|
189
|
+
__wbg___wbindgen_is_bigint_8ffbbef442139384: function(arg0) {
|
|
190
190
|
return typeof arg0 === "bigint";
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
193
193
|
return typeof arg0 === "function";
|
|
194
194
|
},
|
|
195
|
-
|
|
195
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
196
196
|
const val = arg0;
|
|
197
197
|
return typeof val === "object" && val !== null;
|
|
198
198
|
},
|
|
199
|
-
|
|
199
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
200
200
|
return typeof arg0 === "string";
|
|
201
201
|
},
|
|
202
|
-
|
|
202
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
203
203
|
return arg0 === void 0;
|
|
204
204
|
},
|
|
205
|
-
|
|
205
|
+
__wbg___wbindgen_jsval_eq_0a18949a61670320: function(arg0, arg1) {
|
|
206
206
|
return arg0 === arg1;
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
209
209
|
return arg0 == arg1;
|
|
210
210
|
},
|
|
211
|
-
|
|
211
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
212
212
|
const obj = arg1;
|
|
213
213
|
const ret = typeof obj === "number" ? obj : void 0;
|
|
214
214
|
getDataViewMemory0().setFloat64(arg0 + 8, isLikeNone(ret) ? 0 : ret, true);
|
|
215
215
|
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
216
216
|
},
|
|
217
|
-
|
|
217
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
218
218
|
const obj = arg1;
|
|
219
219
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
220
220
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -222,35 +222,35 @@ function __wbg_get_imports() {
|
|
|
222
222
|
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
223
223
|
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
224
224
|
},
|
|
225
|
-
|
|
225
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
226
226
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
__wbg_call_1c5886ab9c57d1c7: function() {
|
|
229
229
|
return handleError(function(arg0, arg1) {
|
|
230
230
|
return arg0.call(arg1);
|
|
231
231
|
}, arguments);
|
|
232
232
|
},
|
|
233
|
-
|
|
233
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
234
234
|
return arg0.done;
|
|
235
235
|
},
|
|
236
|
-
|
|
236
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
237
237
|
return Object.entries(arg0);
|
|
238
238
|
},
|
|
239
|
-
|
|
239
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
240
240
|
return arg0[arg1 >>> 0];
|
|
241
241
|
},
|
|
242
|
-
|
|
242
|
+
__wbg_get_d173c0308df22d37: function() {
|
|
243
243
|
return handleError(function(arg0, arg1) {
|
|
244
244
|
return Reflect.get(arg0, arg1);
|
|
245
245
|
}, arguments);
|
|
246
246
|
},
|
|
247
|
-
|
|
247
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
248
248
|
return arg0[arg1 >>> 0];
|
|
249
249
|
},
|
|
250
250
|
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
251
251
|
return arg0[arg1];
|
|
252
252
|
},
|
|
253
|
-
|
|
253
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
254
254
|
let result;
|
|
255
255
|
try {
|
|
256
256
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -259,7 +259,7 @@ function __wbg_get_imports() {
|
|
|
259
259
|
}
|
|
260
260
|
return result;
|
|
261
261
|
},
|
|
262
|
-
|
|
262
|
+
__wbg_instanceof_Map_9a4d6ead180ae3a9: function(arg0) {
|
|
263
263
|
let result;
|
|
264
264
|
try {
|
|
265
265
|
result = arg0 instanceof Map;
|
|
@@ -268,7 +268,7 @@ function __wbg_get_imports() {
|
|
|
268
268
|
}
|
|
269
269
|
return result;
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
272
272
|
let result;
|
|
273
273
|
try {
|
|
274
274
|
result = arg0 instanceof Uint8Array;
|
|
@@ -277,51 +277,51 @@ function __wbg_get_imports() {
|
|
|
277
277
|
}
|
|
278
278
|
return result;
|
|
279
279
|
},
|
|
280
|
-
|
|
280
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
281
281
|
return Array.isArray(arg0);
|
|
282
282
|
},
|
|
283
|
-
|
|
283
|
+
__wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
|
|
284
284
|
return Number.isSafeInteger(arg0);
|
|
285
285
|
},
|
|
286
|
-
|
|
286
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
287
287
|
return Symbol.iterator;
|
|
288
288
|
},
|
|
289
|
-
|
|
289
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
290
290
|
return arg0.length;
|
|
291
291
|
},
|
|
292
|
-
|
|
292
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
293
293
|
return arg0.length;
|
|
294
294
|
},
|
|
295
|
-
|
|
295
|
+
__wbg_new_116be93542d39019: function() {
|
|
296
296
|
return new Array();
|
|
297
297
|
},
|
|
298
|
-
|
|
298
|
+
__wbg_new_358857d90afd5a2d: function(arg0, arg1) {
|
|
299
299
|
return new Error(getStringFromWasm0(arg0, arg1));
|
|
300
300
|
},
|
|
301
|
-
|
|
301
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
302
302
|
return new Uint8Array(arg0);
|
|
303
303
|
},
|
|
304
|
-
|
|
304
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
305
305
|
return /* @__PURE__ */ new Object();
|
|
306
306
|
},
|
|
307
|
-
|
|
308
|
-
return arg0.next;
|
|
309
|
-
},
|
|
310
|
-
__wbg_next_71f2aa1cb3d1e37e: function() {
|
|
307
|
+
__wbg_next_42cf16ee0dafc9e2: function() {
|
|
311
308
|
return handleError(function(arg0) {
|
|
312
309
|
return arg0.next();
|
|
313
310
|
}, arguments);
|
|
314
311
|
},
|
|
315
|
-
|
|
312
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
313
|
+
return arg0.next;
|
|
314
|
+
},
|
|
315
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
316
316
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
317
317
|
},
|
|
318
318
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
319
319
|
arg0[arg1] = arg2;
|
|
320
320
|
},
|
|
321
|
-
|
|
321
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
322
322
|
arg0[arg1 >>> 0] = arg2;
|
|
323
323
|
},
|
|
324
|
-
|
|
324
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
325
325
|
return arg0.value;
|
|
326
326
|
},
|
|
327
327
|
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
@@ -491,10 +491,11 @@ function __wbg_finalize_init(instance, module) {
|
|
|
491
491
|
}
|
|
492
492
|
async function __wbg_load(module, imports) {
|
|
493
493
|
if (typeof Response === "function" && module instanceof Response) {
|
|
494
|
+
if (!module.ok) throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
494
495
|
if (typeof WebAssembly.instantiateStreaming === "function") try {
|
|
495
496
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
496
497
|
} catch (e) {
|
|
497
|
-
if (
|
|
498
|
+
if (expectedResponseType(module.type) && module.headers.get("Content-Type") !== "application/wasm") console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
498
499
|
else throw e;
|
|
499
500
|
}
|
|
500
501
|
const bytes = await module.arrayBuffer();
|
package/dist/export.mjs
CHANGED
|
@@ -150,10 +150,10 @@ function __wbg_get_imports() {
|
|
|
150
150
|
__proto__: null,
|
|
151
151
|
"./takumi_wasm_bg.js": {
|
|
152
152
|
__proto__: null,
|
|
153
|
-
|
|
153
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
154
154
|
return Error(getStringFromWasm0(arg0, arg1));
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
__wbg_Number_3890faa6d3ff057d: function(arg0) {
|
|
157
157
|
return Number(arg0);
|
|
158
158
|
},
|
|
159
159
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
@@ -162,55 +162,55 @@ function __wbg_get_imports() {
|
|
|
162
162
|
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
163
163
|
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
164
164
|
},
|
|
165
|
-
|
|
165
|
+
__wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
|
|
166
166
|
const v = arg1;
|
|
167
167
|
const ret = typeof v === "bigint" ? v : void 0;
|
|
168
168
|
getDataViewMemory0().setBigInt64(arg0 + 8, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
169
169
|
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
170
170
|
},
|
|
171
|
-
|
|
171
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
172
172
|
const v = arg0;
|
|
173
173
|
const ret = typeof v === "boolean" ? v : void 0;
|
|
174
174
|
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
175
175
|
},
|
|
176
|
-
|
|
176
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
177
177
|
const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
178
178
|
const len1 = WASM_VECTOR_LEN;
|
|
179
179
|
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
180
180
|
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
183
183
|
return arg0 in arg1;
|
|
184
184
|
},
|
|
185
|
-
|
|
185
|
+
__wbg___wbindgen_is_bigint_8ffbbef442139384: function(arg0) {
|
|
186
186
|
return typeof arg0 === "bigint";
|
|
187
187
|
},
|
|
188
|
-
|
|
188
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
189
189
|
return typeof arg0 === "function";
|
|
190
190
|
},
|
|
191
|
-
|
|
191
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
192
192
|
const val = arg0;
|
|
193
193
|
return typeof val === "object" && val !== null;
|
|
194
194
|
},
|
|
195
|
-
|
|
195
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
196
196
|
return typeof arg0 === "string";
|
|
197
197
|
},
|
|
198
|
-
|
|
198
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
199
199
|
return arg0 === void 0;
|
|
200
200
|
},
|
|
201
|
-
|
|
201
|
+
__wbg___wbindgen_jsval_eq_0a18949a61670320: function(arg0, arg1) {
|
|
202
202
|
return arg0 === arg1;
|
|
203
203
|
},
|
|
204
|
-
|
|
204
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
205
205
|
return arg0 == arg1;
|
|
206
206
|
},
|
|
207
|
-
|
|
207
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
208
208
|
const obj = arg1;
|
|
209
209
|
const ret = typeof obj === "number" ? obj : void 0;
|
|
210
210
|
getDataViewMemory0().setFloat64(arg0 + 8, isLikeNone(ret) ? 0 : ret, true);
|
|
211
211
|
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
212
212
|
},
|
|
213
|
-
|
|
213
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
214
214
|
const obj = arg1;
|
|
215
215
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
216
216
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -218,35 +218,35 @@ function __wbg_get_imports() {
|
|
|
218
218
|
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
219
219
|
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
220
220
|
},
|
|
221
|
-
|
|
221
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
222
222
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
__wbg_call_1c5886ab9c57d1c7: function() {
|
|
225
225
|
return handleError(function(arg0, arg1) {
|
|
226
226
|
return arg0.call(arg1);
|
|
227
227
|
}, arguments);
|
|
228
228
|
},
|
|
229
|
-
|
|
229
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
230
230
|
return arg0.done;
|
|
231
231
|
},
|
|
232
|
-
|
|
232
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
233
233
|
return Object.entries(arg0);
|
|
234
234
|
},
|
|
235
|
-
|
|
235
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
236
236
|
return arg0[arg1 >>> 0];
|
|
237
237
|
},
|
|
238
|
-
|
|
238
|
+
__wbg_get_d173c0308df22d37: function() {
|
|
239
239
|
return handleError(function(arg0, arg1) {
|
|
240
240
|
return Reflect.get(arg0, arg1);
|
|
241
241
|
}, arguments);
|
|
242
242
|
},
|
|
243
|
-
|
|
243
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
244
244
|
return arg0[arg1 >>> 0];
|
|
245
245
|
},
|
|
246
246
|
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
247
247
|
return arg0[arg1];
|
|
248
248
|
},
|
|
249
|
-
|
|
249
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
250
250
|
let result;
|
|
251
251
|
try {
|
|
252
252
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -255,7 +255,7 @@ function __wbg_get_imports() {
|
|
|
255
255
|
}
|
|
256
256
|
return result;
|
|
257
257
|
},
|
|
258
|
-
|
|
258
|
+
__wbg_instanceof_Map_9a4d6ead180ae3a9: function(arg0) {
|
|
259
259
|
let result;
|
|
260
260
|
try {
|
|
261
261
|
result = arg0 instanceof Map;
|
|
@@ -264,7 +264,7 @@ function __wbg_get_imports() {
|
|
|
264
264
|
}
|
|
265
265
|
return result;
|
|
266
266
|
},
|
|
267
|
-
|
|
267
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
268
268
|
let result;
|
|
269
269
|
try {
|
|
270
270
|
result = arg0 instanceof Uint8Array;
|
|
@@ -273,51 +273,51 @@ function __wbg_get_imports() {
|
|
|
273
273
|
}
|
|
274
274
|
return result;
|
|
275
275
|
},
|
|
276
|
-
|
|
276
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
277
277
|
return Array.isArray(arg0);
|
|
278
278
|
},
|
|
279
|
-
|
|
279
|
+
__wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
|
|
280
280
|
return Number.isSafeInteger(arg0);
|
|
281
281
|
},
|
|
282
|
-
|
|
282
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
283
283
|
return Symbol.iterator;
|
|
284
284
|
},
|
|
285
|
-
|
|
285
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
286
286
|
return arg0.length;
|
|
287
287
|
},
|
|
288
|
-
|
|
288
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
289
289
|
return arg0.length;
|
|
290
290
|
},
|
|
291
|
-
|
|
291
|
+
__wbg_new_116be93542d39019: function() {
|
|
292
292
|
return new Array();
|
|
293
293
|
},
|
|
294
|
-
|
|
294
|
+
__wbg_new_358857d90afd5a2d: function(arg0, arg1) {
|
|
295
295
|
return new Error(getStringFromWasm0(arg0, arg1));
|
|
296
296
|
},
|
|
297
|
-
|
|
297
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
298
298
|
return new Uint8Array(arg0);
|
|
299
299
|
},
|
|
300
|
-
|
|
300
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
301
301
|
return /* @__PURE__ */ new Object();
|
|
302
302
|
},
|
|
303
|
-
|
|
304
|
-
return arg0.next;
|
|
305
|
-
},
|
|
306
|
-
__wbg_next_71f2aa1cb3d1e37e: function() {
|
|
303
|
+
__wbg_next_42cf16ee0dafc9e2: function() {
|
|
307
304
|
return handleError(function(arg0) {
|
|
308
305
|
return arg0.next();
|
|
309
306
|
}, arguments);
|
|
310
307
|
},
|
|
311
|
-
|
|
308
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
309
|
+
return arg0.next;
|
|
310
|
+
},
|
|
311
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
312
312
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
313
313
|
},
|
|
314
314
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
315
315
|
arg0[arg1] = arg2;
|
|
316
316
|
},
|
|
317
|
-
|
|
317
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
318
318
|
arg0[arg1 >>> 0] = arg2;
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
321
321
|
return arg0.value;
|
|
322
322
|
},
|
|
323
323
|
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
@@ -487,10 +487,11 @@ function __wbg_finalize_init(instance, module) {
|
|
|
487
487
|
}
|
|
488
488
|
async function __wbg_load(module, imports) {
|
|
489
489
|
if (typeof Response === "function" && module instanceof Response) {
|
|
490
|
+
if (!module.ok) throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
490
491
|
if (typeof WebAssembly.instantiateStreaming === "function") try {
|
|
491
492
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
492
493
|
} catch (e) {
|
|
493
|
-
if (
|
|
494
|
+
if (expectedResponseType(module.type) && module.headers.get("Content-Type") !== "application/wasm") console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
494
495
|
else throw e;
|
|
495
496
|
}
|
|
496
497
|
const bytes = await module.arrayBuffer();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/wasm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Render OG images from Takumi node trees with WebAssembly. No headless browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare-workers",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"publish-lint": "attw --pack . && publint --strict ."
|
|
145
145
|
},
|
|
146
146
|
"dependencies": {
|
|
147
|
-
"@takumi-rs/helpers": "2.
|
|
147
|
+
"@takumi-rs/helpers": "2.10.0"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
150
|
"@types/bun": "^1.3.14",
|
package/pkg/takumi_wasm_bg.wasm
CHANGED
|
Binary file
|