@next/swc-wasm-web 12.1.6-canary.7 → 12.1.6

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": "@next/swc-wasm-web",
3
- "version": "12.1.6-canary.7",
3
+ "version": "12.1.6",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -12,6 +12,12 @@ export function minifySync(s: string, opts: any): any;
12
12
  * @returns {any}
13
13
  */
14
14
  export function transformSync(s: string, opts: any): any;
15
+ /**
16
+ * @param {string} s
17
+ * @param {any} opts
18
+ * @returns {any}
19
+ */
20
+ export function parseSync(s: string, opts: any): any;
15
21
 
16
22
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
17
23
 
@@ -19,6 +25,7 @@ export interface InitOutput {
19
25
  readonly memory: WebAssembly.Memory;
20
26
  readonly minifySync: (a: number, b: number, c: number) => number;
21
27
  readonly transformSync: (a: number, b: number, c: number) => number;
28
+ readonly parseSync: (a: number, b: number, c: number) => number;
22
29
  readonly __wbindgen_malloc: (a: number) => number;
23
30
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
24
31
  readonly __wbindgen_free: (a: number, b: number) => void;
package/wasm.js CHANGED
@@ -132,6 +132,18 @@ export function transformSync(s, opts) {
132
132
  return takeObject(ret);
133
133
  }
134
134
 
135
+ /**
136
+ * @param {string} s
137
+ * @param {any} opts
138
+ * @returns {any}
139
+ */
140
+ export function parseSync(s, opts) {
141
+ var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
142
+ var len0 = WASM_VECTOR_LEN;
143
+ var ret = wasm.parseSync(ptr0, len0, addHeapObject(opts));
144
+ return takeObject(ret);
145
+ }
146
+
135
147
  async function load(module, imports) {
136
148
  if (typeof Response === 'function' && module instanceof Response) {
137
149
  if (typeof WebAssembly.instantiateStreaming === 'function') {
package/wasm_bg.wasm CHANGED
Binary file