@next/swc-wasm-nodejs 16.0.2-canary.2 → 16.0.2-canary.20
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 +3 -3
- package/wasm.js +39 -39
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function transformSync(s: any, opts: any): any;
|
|
3
4
|
export function parseSync(s: string, opts: any): any;
|
|
4
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
5
|
-
export function
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
6
7
|
export function parse(s: string, opts: any): Promise<any>;
|
|
7
8
|
export function minifySync(s: string, opts: any): any;
|
|
8
|
-
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
9
9
|
export function transform(s: any, opts: any): Promise<any>;
|
|
10
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
11
10
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
11
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
package/wasm.js
CHANGED
|
@@ -223,12 +223,12 @@ function takeFromExternrefTable0(idx) {
|
|
|
223
223
|
return value;
|
|
224
224
|
}
|
|
225
225
|
/**
|
|
226
|
-
* @param {
|
|
226
|
+
* @param {any} s
|
|
227
227
|
* @param {any} opts
|
|
228
228
|
* @returns {any}
|
|
229
229
|
*/
|
|
230
|
-
module.exports.
|
|
231
|
-
const ret = wasm.
|
|
230
|
+
module.exports.transformSync = function(s, opts) {
|
|
231
|
+
const ret = wasm.transformSync(s, opts);
|
|
232
232
|
if (ret[2]) {
|
|
233
233
|
throw takeFromExternrefTable0(ret[1]);
|
|
234
234
|
}
|
|
@@ -238,20 +238,10 @@ module.exports.parseSync = function(s, opts) {
|
|
|
238
238
|
/**
|
|
239
239
|
* @param {string} s
|
|
240
240
|
* @param {any} opts
|
|
241
|
-
* @returns {Promise<any>}
|
|
242
|
-
*/
|
|
243
|
-
module.exports.minify = function(s, opts) {
|
|
244
|
-
const ret = wasm.minify(s, opts);
|
|
245
|
-
return ret;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @param {any} s
|
|
250
|
-
* @param {any} opts
|
|
251
241
|
* @returns {any}
|
|
252
242
|
*/
|
|
253
|
-
module.exports.
|
|
254
|
-
const ret = wasm.
|
|
243
|
+
module.exports.parseSync = function(s, opts) {
|
|
244
|
+
const ret = wasm.parseSync(s, opts);
|
|
255
245
|
if (ret[2]) {
|
|
256
246
|
throw takeFromExternrefTable0(ret[1]);
|
|
257
247
|
}
|
|
@@ -263,24 +253,11 @@ module.exports.transformSync = function(s, opts) {
|
|
|
263
253
|
* @param {any} opts
|
|
264
254
|
* @returns {Promise<any>}
|
|
265
255
|
*/
|
|
266
|
-
module.exports.
|
|
267
|
-
const ret = wasm.
|
|
256
|
+
module.exports.minify = function(s, opts) {
|
|
257
|
+
const ret = wasm.minify(s, opts);
|
|
268
258
|
return ret;
|
|
269
259
|
};
|
|
270
260
|
|
|
271
|
-
/**
|
|
272
|
-
* @param {string} s
|
|
273
|
-
* @param {any} opts
|
|
274
|
-
* @returns {any}
|
|
275
|
-
*/
|
|
276
|
-
module.exports.minifySync = function(s, opts) {
|
|
277
|
-
const ret = wasm.minifySync(s, opts);
|
|
278
|
-
if (ret[2]) {
|
|
279
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
280
|
-
}
|
|
281
|
-
return takeFromExternrefTable0(ret[0]);
|
|
282
|
-
};
|
|
283
|
-
|
|
284
261
|
function passArray8ToWasm0(arg, malloc) {
|
|
285
262
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
286
263
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -313,28 +290,38 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
|
|
|
313
290
|
};
|
|
314
291
|
|
|
315
292
|
/**
|
|
316
|
-
* @param {
|
|
293
|
+
* @param {string} s
|
|
317
294
|
* @param {any} opts
|
|
318
295
|
* @returns {Promise<any>}
|
|
319
296
|
*/
|
|
320
|
-
module.exports.
|
|
321
|
-
const ret = wasm.
|
|
297
|
+
module.exports.parse = function(s, opts) {
|
|
298
|
+
const ret = wasm.parse(s, opts);
|
|
322
299
|
return ret;
|
|
323
300
|
};
|
|
324
301
|
|
|
325
302
|
/**
|
|
326
|
-
* @param {string}
|
|
303
|
+
* @param {string} s
|
|
327
304
|
* @param {any} opts
|
|
328
305
|
* @returns {any}
|
|
329
306
|
*/
|
|
330
|
-
module.exports.
|
|
331
|
-
const ret = wasm.
|
|
307
|
+
module.exports.minifySync = function(s, opts) {
|
|
308
|
+
const ret = wasm.minifySync(s, opts);
|
|
332
309
|
if (ret[2]) {
|
|
333
310
|
throw takeFromExternrefTable0(ret[1]);
|
|
334
311
|
}
|
|
335
312
|
return takeFromExternrefTable0(ret[0]);
|
|
336
313
|
};
|
|
337
314
|
|
|
315
|
+
/**
|
|
316
|
+
* @param {any} s
|
|
317
|
+
* @param {any} opts
|
|
318
|
+
* @returns {Promise<any>}
|
|
319
|
+
*/
|
|
320
|
+
module.exports.transform = function(s, opts) {
|
|
321
|
+
const ret = wasm.transform(s, opts);
|
|
322
|
+
return ret;
|
|
323
|
+
};
|
|
324
|
+
|
|
338
325
|
/**
|
|
339
326
|
* @param {string} value
|
|
340
327
|
* @param {any} opts
|
|
@@ -345,8 +332,21 @@ module.exports.mdxCompile = function(value, opts) {
|
|
|
345
332
|
return ret;
|
|
346
333
|
};
|
|
347
334
|
|
|
335
|
+
/**
|
|
336
|
+
* @param {string} value
|
|
337
|
+
* @param {any} opts
|
|
338
|
+
* @returns {any}
|
|
339
|
+
*/
|
|
340
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
341
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
342
|
+
if (ret[2]) {
|
|
343
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
344
|
+
}
|
|
345
|
+
return takeFromExternrefTable0(ret[0]);
|
|
346
|
+
};
|
|
347
|
+
|
|
348
348
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
349
|
-
wasm.
|
|
349
|
+
wasm.closure1163_externref_shim(arg0, arg1, arg2);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
@@ -630,8 +630,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
630
630
|
return ret;
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
module.exports.
|
|
634
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
633
|
+
module.exports.__wbindgen_closure_wrapper23889 = function(arg0, arg1, arg2) {
|
|
634
|
+
const ret = makeMutClosure(arg0, arg1, 1164, __wbg_adapter_50);
|
|
635
635
|
return ret;
|
|
636
636
|
};
|
|
637
637
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|