@swc/wasm-web 1.2.247 → 1.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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.2.247",
7
+ "version": "1.3.0",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm-web.js CHANGED
@@ -85,10 +85,6 @@ function passStringToWasm0(arg, malloc, realloc) {
85
85
  return ptr;
86
86
  }
87
87
 
88
- function isLikeNone(x) {
89
- return x === undefined || x === null;
90
- }
91
-
92
88
  let cachedInt32Memory0 = new Int32Array();
93
89
 
94
90
  function getInt32Memory0() {
@@ -98,6 +94,10 @@ function getInt32Memory0() {
98
94
  return cachedInt32Memory0;
99
95
  }
100
96
 
97
+ function isLikeNone(x) {
98
+ return x === undefined || x === null;
99
+ }
100
+
101
101
  const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
102
102
 
103
103
  cachedTextDecoder.decode();
@@ -337,9 +337,13 @@ function getImports() {
337
337
  const ret = getObject(arg0) === undefined;
338
338
  return ret;
339
339
  };
340
- imports.wbg.__wbindgen_is_string = function(arg0) {
341
- const ret = typeof(getObject(arg0)) === 'string';
342
- return ret;
340
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
341
+ const obj = getObject(arg1);
342
+ const ret = JSON.stringify(obj === undefined ? null : obj);
343
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
344
+ const len0 = WASM_VECTOR_LEN;
345
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
346
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
343
347
  };
344
348
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
345
349
  const obj = getObject(arg1);
@@ -349,18 +353,14 @@ function getImports() {
349
353
  getInt32Memory0()[arg0 / 4 + 1] = len0;
350
354
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
351
355
  };
352
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
353
- const obj = getObject(arg1);
354
- const ret = JSON.stringify(obj === undefined ? null : obj);
355
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
356
- const len0 = WASM_VECTOR_LEN;
357
- getInt32Memory0()[arg0 / 4 + 1] = len0;
358
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
359
- };
360
356
  imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
361
357
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
362
358
  return addHeapObject(ret);
363
359
  };
360
+ imports.wbg.__wbindgen_is_string = function(arg0) {
361
+ const ret = typeof(getObject(arg0)) === 'string';
362
+ return ret;
363
+ };
364
364
  imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
365
365
  try {
366
366
  var state0 = {a: arg0, b: arg1};
@@ -431,7 +431,7 @@ imports.wbg.__wbg_then_18da6e5453572fc8 = function(arg0, arg1) {
431
431
  const ret = getObject(arg0).then(getObject(arg1));
432
432
  return addHeapObject(ret);
433
433
  };
434
- imports.wbg.__wbindgen_closure_wrapper14777 = function(arg0, arg1, arg2) {
434
+ imports.wbg.__wbindgen_closure_wrapper14781 = function(arg0, arg1, arg2) {
435
435
  const ret = makeMutClosure(arg0, arg1, 162, __wbg_adapter_22);
436
436
  return addHeapObject(ret);
437
437
  };
package/wasm-web_bg.wasm CHANGED
Binary file