@swc/wasm 1.2.238 → 1.2.241

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/wasm.js +20 -20
  3. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.2.238",
7
+ "version": "1.2.241",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.js CHANGED
@@ -87,6 +87,10 @@ function passStringToWasm0(arg, malloc, realloc) {
87
87
  return ptr;
88
88
  }
89
89
 
90
+ function isLikeNone(x) {
91
+ return x === undefined || x === null;
92
+ }
93
+
90
94
  let cachedInt32Memory0 = new Int32Array();
91
95
 
92
96
  function getInt32Memory0() {
@@ -96,10 +100,6 @@ function getInt32Memory0() {
96
100
  return cachedInt32Memory0;
97
101
  }
98
102
 
99
- function isLikeNone(x) {
100
- return x === undefined || x === null;
101
- }
102
-
103
103
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
104
104
 
105
105
  cachedTextDecoder.decode();
@@ -142,7 +142,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
142
142
  return real;
143
143
  }
144
144
  function __wbg_adapter_22(arg0, arg1, arg2) {
145
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcaf6c4d2c56489f9(arg0, arg1, addHeapObject(arg2));
145
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7cd6562814f1e46d(arg0, arg1, addHeapObject(arg2));
146
146
  }
147
147
 
148
148
  /**
@@ -287,13 +287,27 @@ function handleError(f, args) {
287
287
  }
288
288
  }
289
289
  function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
290
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h27f4a498bb42380d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
290
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h62d3bea6a3c25ef1(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
291
291
  }
292
292
 
293
293
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
294
294
  takeObject(arg0);
295
295
  };
296
296
 
297
+ module.exports.__wbindgen_is_string = function(arg0) {
298
+ const ret = typeof(getObject(arg0)) === 'string';
299
+ return ret;
300
+ };
301
+
302
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
303
+ const obj = getObject(arg1);
304
+ const ret = typeof(obj) === 'string' ? obj : undefined;
305
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
+ var len0 = WASM_VECTOR_LEN;
307
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
308
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
309
+ };
310
+
297
311
  module.exports.__wbindgen_is_null = function(arg0) {
298
312
  const ret = getObject(arg0) === null;
299
313
  return ret;
@@ -313,20 +327,6 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
313
327
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
314
328
  };
315
329
 
316
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
317
- const obj = getObject(arg1);
318
- const ret = typeof(obj) === 'string' ? obj : undefined;
319
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
- var len0 = WASM_VECTOR_LEN;
321
- getInt32Memory0()[arg0 / 4 + 1] = len0;
322
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
323
- };
324
-
325
- module.exports.__wbindgen_is_string = function(arg0) {
326
- const ret = typeof(getObject(arg0)) === 'string';
327
- return ret;
328
- };
329
-
330
330
  module.exports.__wbindgen_json_parse = function(arg0, arg1) {
331
331
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
332
332
  return addHeapObject(ret);
package/wasm_bg.wasm CHANGED
Binary file