@next/swc-wasm-web 16.0.2-canary.10 → 16.0.2-canary.12
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 +1 -1
- package/wasm.d.ts +5 -5
- package/wasm.js +44 -44
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
4
|
-
export function
|
|
3
|
+
export function transformSync(s: any, opts: any): any;
|
|
4
|
+
export function parseSync(s: string, opts: any): any;
|
|
5
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
6
6
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
7
|
-
export function
|
|
8
|
-
export function transformSync(s: any, opts: any): any;
|
|
7
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
9
8
|
export function minifySync(s: string, opts: any): any;
|
|
10
|
-
export function
|
|
9
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
11
10
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
11
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
12
12
|
|
|
13
13
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
14
14
|
|
package/wasm.js
CHANGED
|
@@ -212,24 +212,36 @@ function debugString(val) {
|
|
|
212
212
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
213
213
|
return className;
|
|
214
214
|
}
|
|
215
|
+
|
|
216
|
+
function takeFromExternrefTable0(idx) {
|
|
217
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
218
|
+
wasm.__externref_table_dealloc(idx);
|
|
219
|
+
return value;
|
|
220
|
+
}
|
|
215
221
|
/**
|
|
216
|
-
* @param {
|
|
222
|
+
* @param {any} s
|
|
217
223
|
* @param {any} opts
|
|
218
|
-
* @returns {
|
|
224
|
+
* @returns {any}
|
|
219
225
|
*/
|
|
220
|
-
export function
|
|
221
|
-
const ret = wasm.
|
|
222
|
-
|
|
226
|
+
export function transformSync(s, opts) {
|
|
227
|
+
const ret = wasm.transformSync(s, opts);
|
|
228
|
+
if (ret[2]) {
|
|
229
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
230
|
+
}
|
|
231
|
+
return takeFromExternrefTable0(ret[0]);
|
|
223
232
|
}
|
|
224
233
|
|
|
225
234
|
/**
|
|
226
|
-
* @param {
|
|
235
|
+
* @param {string} s
|
|
227
236
|
* @param {any} opts
|
|
228
|
-
* @returns {
|
|
237
|
+
* @returns {any}
|
|
229
238
|
*/
|
|
230
|
-
export function
|
|
231
|
-
const ret = wasm.
|
|
232
|
-
|
|
239
|
+
export function parseSync(s, opts) {
|
|
240
|
+
const ret = wasm.parseSync(s, opts);
|
|
241
|
+
if (ret[2]) {
|
|
242
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
243
|
+
}
|
|
244
|
+
return takeFromExternrefTable0(ret[0]);
|
|
233
245
|
}
|
|
234
246
|
|
|
235
247
|
/**
|
|
@@ -248,12 +260,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
248
260
|
WASM_VECTOR_LEN = arg.length;
|
|
249
261
|
return ptr;
|
|
250
262
|
}
|
|
251
|
-
|
|
252
|
-
function takeFromExternrefTable0(idx) {
|
|
253
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
254
|
-
wasm.__externref_table_dealloc(idx);
|
|
255
|
-
return value;
|
|
256
|
-
}
|
|
257
263
|
/**
|
|
258
264
|
* @param {Uint8Array} content
|
|
259
265
|
* @param {string} template_path
|
|
@@ -279,13 +285,23 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
279
285
|
return v4;
|
|
280
286
|
}
|
|
281
287
|
|
|
288
|
+
/**
|
|
289
|
+
* @param {string} s
|
|
290
|
+
* @param {any} opts
|
|
291
|
+
* @returns {Promise<any>}
|
|
292
|
+
*/
|
|
293
|
+
export function parse(s, opts) {
|
|
294
|
+
const ret = wasm.parse(s, opts);
|
|
295
|
+
return ret;
|
|
296
|
+
}
|
|
297
|
+
|
|
282
298
|
/**
|
|
283
299
|
* @param {string} s
|
|
284
300
|
* @param {any} opts
|
|
285
301
|
* @returns {any}
|
|
286
302
|
*/
|
|
287
|
-
export function
|
|
288
|
-
const ret = wasm.
|
|
303
|
+
export function minifySync(s, opts) {
|
|
304
|
+
const ret = wasm.minifySync(s, opts);
|
|
289
305
|
if (ret[2]) {
|
|
290
306
|
throw takeFromExternrefTable0(ret[1]);
|
|
291
307
|
}
|
|
@@ -295,27 +311,21 @@ export function parseSync(s, opts) {
|
|
|
295
311
|
/**
|
|
296
312
|
* @param {any} s
|
|
297
313
|
* @param {any} opts
|
|
298
|
-
* @returns {any}
|
|
314
|
+
* @returns {Promise<any>}
|
|
299
315
|
*/
|
|
300
|
-
export function
|
|
301
|
-
const ret = wasm.
|
|
302
|
-
|
|
303
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
304
|
-
}
|
|
305
|
-
return takeFromExternrefTable0(ret[0]);
|
|
316
|
+
export function transform(s, opts) {
|
|
317
|
+
const ret = wasm.transform(s, opts);
|
|
318
|
+
return ret;
|
|
306
319
|
}
|
|
307
320
|
|
|
308
321
|
/**
|
|
309
|
-
* @param {string}
|
|
322
|
+
* @param {string} value
|
|
310
323
|
* @param {any} opts
|
|
311
|
-
* @returns {any}
|
|
324
|
+
* @returns {Promise<any>}
|
|
312
325
|
*/
|
|
313
|
-
export function
|
|
314
|
-
const ret = wasm.
|
|
315
|
-
|
|
316
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
317
|
-
}
|
|
318
|
-
return takeFromExternrefTable0(ret[0]);
|
|
326
|
+
export function mdxCompile(value, opts) {
|
|
327
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
328
|
+
return ret;
|
|
319
329
|
}
|
|
320
330
|
|
|
321
331
|
/**
|
|
@@ -331,16 +341,6 @@ export function mdxCompileSync(value, opts) {
|
|
|
331
341
|
return takeFromExternrefTable0(ret[0]);
|
|
332
342
|
}
|
|
333
343
|
|
|
334
|
-
/**
|
|
335
|
-
* @param {string} value
|
|
336
|
-
* @param {any} opts
|
|
337
|
-
* @returns {Promise<any>}
|
|
338
|
-
*/
|
|
339
|
-
export function mdxCompile(value, opts) {
|
|
340
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
341
|
-
return ret;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
344
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
345
345
|
wasm.closure1163_externref_shim(arg0, arg1, arg2);
|
|
346
346
|
}
|
|
@@ -612,7 +612,7 @@ function __wbg_get_imports() {
|
|
|
612
612
|
const ret = false;
|
|
613
613
|
return ret;
|
|
614
614
|
};
|
|
615
|
-
imports.wbg.
|
|
615
|
+
imports.wbg.__wbindgen_closure_wrapper23887 = function(arg0, arg1, arg2) {
|
|
616
616
|
const ret = makeMutClosure(arg0, arg1, 1164, __wbg_adapter_50);
|
|
617
617
|
return ret;
|
|
618
618
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|