@swc-next/core-binding-wasm 0.8.0 → 0.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-next/core-binding-wasm",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "The extensible Node.js API for SWC Next",
5
5
  "type": "module",
6
6
  "main": "./swc-next-core.node.mjs",
@@ -77,7 +77,8 @@ export function transformSync(source, sourceUtf16Len, options) {
77
77
  (optionsPointer) => call(sourcePointer, encodeU32(sourceUtf16Len, "sourceUtf16Len"), optionsPointer),
78
78
  ),
79
79
  )) >>> 0;
80
- return takeBytes(resultPointer);
80
+ const payload = takeFallibleResult(resultPointer);
81
+ return payload;
81
82
  }
82
83
 
83
84
  function encodeU32(value, name) {
@@ -3,7 +3,7 @@ import { initializeAsync } from "./swc-next-core.runtime.mjs";
3
3
 
4
4
  export * from "./swc-next-core.bridge.mjs";
5
5
 
6
- export const version = "0.8.0";
6
+ export const version = "0.9.1";
7
7
 
8
8
  export default function init() {
9
9
  return initializeAsync(() =>
@@ -7,7 +7,7 @@ initializeSync(wasm);
7
7
 
8
8
  export * from "./swc-next-core.bridge.mjs";
9
9
 
10
- export const version = "0.8.0";
10
+ export const version = "0.9.1";
11
11
 
12
12
  export default function init() {
13
13
  return Promise.resolve();
@@ -7,7 +7,7 @@ initializeSync(readFileSync(new URL("./swc-next-core.wasm", import.meta.url)));
7
7
 
8
8
  export * from "./swc-next-core.bridge.mjs";
9
9
 
10
- export const version = "0.8.0";
10
+ export const version = "0.9.1";
11
11
 
12
12
  export default function init() {
13
13
  return Promise.resolve();
Binary file