@next/swc-wasm-web 16.1.0-canary.14 → 16.1.0-canary.15
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 +4 -4
- package/wasm.js +41 -40
- 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 mdxCompile(value: string, opts: any): Promise<any>;
|
|
4
3
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
5
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
6
|
+
export function minify(s: string, opts: any): Promise<any>;
|
|
5
7
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
8
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
6
9
|
export function minifySync(s: string, opts: any): any;
|
|
7
10
|
export function transformSync(s: any, opts: any): any;
|
|
8
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
9
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
10
11
|
export function parseSync(s: string, opts: any): any;
|
|
11
|
-
export function minify(s: string, opts: any): Promise<any>;
|
|
12
12
|
|
|
13
13
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
14
14
|
|
package/wasm.js
CHANGED
|
@@ -212,15 +212,6 @@ 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
|
-
* @param {string} value
|
|
217
|
-
* @param {any} opts
|
|
218
|
-
* @returns {Promise<any>}
|
|
219
|
-
*/
|
|
220
|
-
export function mdxCompile(value, opts) {
|
|
221
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
222
|
-
return ret;
|
|
223
|
-
}
|
|
224
215
|
|
|
225
216
|
function takeFromExternrefTable0(idx) {
|
|
226
217
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -240,6 +231,36 @@ export function mdxCompileSync(value, opts) {
|
|
|
240
231
|
return takeFromExternrefTable0(ret[0]);
|
|
241
232
|
}
|
|
242
233
|
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} value
|
|
236
|
+
* @param {any} opts
|
|
237
|
+
* @returns {Promise<any>}
|
|
238
|
+
*/
|
|
239
|
+
export function mdxCompile(value, opts) {
|
|
240
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
241
|
+
return ret;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @param {string} s
|
|
246
|
+
* @param {any} opts
|
|
247
|
+
* @returns {Promise<any>}
|
|
248
|
+
*/
|
|
249
|
+
export function parse(s, opts) {
|
|
250
|
+
const ret = wasm.parse(s, opts);
|
|
251
|
+
return ret;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @param {string} s
|
|
256
|
+
* @param {any} opts
|
|
257
|
+
* @returns {Promise<any>}
|
|
258
|
+
*/
|
|
259
|
+
export function minify(s, opts) {
|
|
260
|
+
const ret = wasm.minify(s, opts);
|
|
261
|
+
return ret;
|
|
262
|
+
}
|
|
263
|
+
|
|
243
264
|
function passArray8ToWasm0(arg, malloc) {
|
|
244
265
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
245
266
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -271,6 +292,16 @@ export function expandNextJsTemplate(content, template_path, next_package_dir_pa
|
|
|
271
292
|
return v4;
|
|
272
293
|
}
|
|
273
294
|
|
|
295
|
+
/**
|
|
296
|
+
* @param {any} s
|
|
297
|
+
* @param {any} opts
|
|
298
|
+
* @returns {Promise<any>}
|
|
299
|
+
*/
|
|
300
|
+
export function transform(s, opts) {
|
|
301
|
+
const ret = wasm.transform(s, opts);
|
|
302
|
+
return ret;
|
|
303
|
+
}
|
|
304
|
+
|
|
274
305
|
/**
|
|
275
306
|
* @param {string} s
|
|
276
307
|
* @param {any} opts
|
|
@@ -297,26 +328,6 @@ export function transformSync(s, opts) {
|
|
|
297
328
|
return takeFromExternrefTable0(ret[0]);
|
|
298
329
|
}
|
|
299
330
|
|
|
300
|
-
/**
|
|
301
|
-
* @param {any} s
|
|
302
|
-
* @param {any} opts
|
|
303
|
-
* @returns {Promise<any>}
|
|
304
|
-
*/
|
|
305
|
-
export function transform(s, opts) {
|
|
306
|
-
const ret = wasm.transform(s, opts);
|
|
307
|
-
return ret;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* @param {string} s
|
|
312
|
-
* @param {any} opts
|
|
313
|
-
* @returns {Promise<any>}
|
|
314
|
-
*/
|
|
315
|
-
export function parse(s, opts) {
|
|
316
|
-
const ret = wasm.parse(s, opts);
|
|
317
|
-
return ret;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
331
|
/**
|
|
321
332
|
* @param {string} s
|
|
322
333
|
* @param {any} opts
|
|
@@ -330,16 +341,6 @@ export function parseSync(s, opts) {
|
|
|
330
341
|
return takeFromExternrefTable0(ret[0]);
|
|
331
342
|
}
|
|
332
343
|
|
|
333
|
-
/**
|
|
334
|
-
* @param {string} s
|
|
335
|
-
* @param {any} opts
|
|
336
|
-
* @returns {Promise<any>}
|
|
337
|
-
*/
|
|
338
|
-
export function minify(s, opts) {
|
|
339
|
-
const ret = wasm.minify(s, opts);
|
|
340
|
-
return ret;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
344
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
344
345
|
wasm.closure1159_externref_shim(arg0, arg1, arg2);
|
|
345
346
|
}
|
|
@@ -611,7 +612,7 @@ function __wbg_get_imports() {
|
|
|
611
612
|
const ret = false;
|
|
612
613
|
return ret;
|
|
613
614
|
};
|
|
614
|
-
imports.wbg.
|
|
615
|
+
imports.wbg.__wbindgen_closure_wrapper23586 = function(arg0, arg1, arg2) {
|
|
615
616
|
const ret = makeMutClosure(arg0, arg1, 1160, __wbg_adapter_50);
|
|
616
617
|
return ret;
|
|
617
618
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|