@next/swc-wasm-nodejs 16.0.2-canary.1 → 16.0.2-canary.10
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 +50 -50
- 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
|
|
3
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
4
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
4
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
7
|
+
export function parseSync(s: string, opts: any): any;
|
|
5
8
|
export function transformSync(s: any, opts: any): any;
|
|
6
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
7
9
|
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
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
10
10
|
export function mdxCompileSync(value: string, opts: any): any;
|
|
11
11
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -216,69 +216,34 @@ function debugString(val) {
|
|
|
216
216
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
217
217
|
return className;
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
function takeFromExternrefTable0(idx) {
|
|
221
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
222
|
-
wasm.__externref_table_dealloc(idx);
|
|
223
|
-
return value;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* @param {string} s
|
|
227
|
-
* @param {any} opts
|
|
228
|
-
* @returns {any}
|
|
229
|
-
*/
|
|
230
|
-
module.exports.parseSync = function(s, opts) {
|
|
231
|
-
const ret = wasm.parseSync(s, opts);
|
|
232
|
-
if (ret[2]) {
|
|
233
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
234
|
-
}
|
|
235
|
-
return takeFromExternrefTable0(ret[0]);
|
|
236
|
-
};
|
|
237
|
-
|
|
238
219
|
/**
|
|
239
220
|
* @param {string} s
|
|
240
221
|
* @param {any} opts
|
|
241
222
|
* @returns {Promise<any>}
|
|
242
223
|
*/
|
|
243
|
-
module.exports.
|
|
244
|
-
const ret = wasm.
|
|
224
|
+
module.exports.parse = function(s, opts) {
|
|
225
|
+
const ret = wasm.parse(s, opts);
|
|
245
226
|
return ret;
|
|
246
227
|
};
|
|
247
228
|
|
|
248
229
|
/**
|
|
249
230
|
* @param {any} s
|
|
250
231
|
* @param {any} opts
|
|
251
|
-
* @returns {any}
|
|
252
|
-
*/
|
|
253
|
-
module.exports.transformSync = function(s, opts) {
|
|
254
|
-
const ret = wasm.transformSync(s, opts);
|
|
255
|
-
if (ret[2]) {
|
|
256
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
257
|
-
}
|
|
258
|
-
return takeFromExternrefTable0(ret[0]);
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* @param {string} s
|
|
263
|
-
* @param {any} opts
|
|
264
232
|
* @returns {Promise<any>}
|
|
265
233
|
*/
|
|
266
|
-
module.exports.
|
|
267
|
-
const ret = wasm.
|
|
234
|
+
module.exports.transform = function(s, opts) {
|
|
235
|
+
const ret = wasm.transform(s, opts);
|
|
268
236
|
return ret;
|
|
269
237
|
};
|
|
270
238
|
|
|
271
239
|
/**
|
|
272
240
|
* @param {string} s
|
|
273
241
|
* @param {any} opts
|
|
274
|
-
* @returns {any}
|
|
242
|
+
* @returns {Promise<any>}
|
|
275
243
|
*/
|
|
276
|
-
module.exports.
|
|
277
|
-
const ret = wasm.
|
|
278
|
-
|
|
279
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
280
|
-
}
|
|
281
|
-
return takeFromExternrefTable0(ret[0]);
|
|
244
|
+
module.exports.minify = function(s, opts) {
|
|
245
|
+
const ret = wasm.minify(s, opts);
|
|
246
|
+
return ret;
|
|
282
247
|
};
|
|
283
248
|
|
|
284
249
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -287,6 +252,12 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
287
252
|
WASM_VECTOR_LEN = arg.length;
|
|
288
253
|
return ptr;
|
|
289
254
|
}
|
|
255
|
+
|
|
256
|
+
function takeFromExternrefTable0(idx) {
|
|
257
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
258
|
+
wasm.__externref_table_dealloc(idx);
|
|
259
|
+
return value;
|
|
260
|
+
}
|
|
290
261
|
/**
|
|
291
262
|
* @param {Uint8Array} content
|
|
292
263
|
* @param {string} template_path
|
|
@@ -312,14 +283,43 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
|
|
|
312
283
|
return v4;
|
|
313
284
|
};
|
|
314
285
|
|
|
286
|
+
/**
|
|
287
|
+
* @param {string} s
|
|
288
|
+
* @param {any} opts
|
|
289
|
+
* @returns {any}
|
|
290
|
+
*/
|
|
291
|
+
module.exports.parseSync = function(s, opts) {
|
|
292
|
+
const ret = wasm.parseSync(s, opts);
|
|
293
|
+
if (ret[2]) {
|
|
294
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
295
|
+
}
|
|
296
|
+
return takeFromExternrefTable0(ret[0]);
|
|
297
|
+
};
|
|
298
|
+
|
|
315
299
|
/**
|
|
316
300
|
* @param {any} s
|
|
317
301
|
* @param {any} opts
|
|
318
|
-
* @returns {
|
|
302
|
+
* @returns {any}
|
|
319
303
|
*/
|
|
320
|
-
module.exports.
|
|
321
|
-
const ret = wasm.
|
|
322
|
-
|
|
304
|
+
module.exports.transformSync = function(s, opts) {
|
|
305
|
+
const ret = wasm.transformSync(s, opts);
|
|
306
|
+
if (ret[2]) {
|
|
307
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
308
|
+
}
|
|
309
|
+
return takeFromExternrefTable0(ret[0]);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @param {string} s
|
|
314
|
+
* @param {any} opts
|
|
315
|
+
* @returns {any}
|
|
316
|
+
*/
|
|
317
|
+
module.exports.minifySync = function(s, opts) {
|
|
318
|
+
const ret = wasm.minifySync(s, opts);
|
|
319
|
+
if (ret[2]) {
|
|
320
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
321
|
+
}
|
|
322
|
+
return takeFromExternrefTable0(ret[0]);
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
/**
|
|
@@ -346,7 +346,7 @@ module.exports.mdxCompile = function(value, opts) {
|
|
|
346
346
|
};
|
|
347
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_wrapper23888 = 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
|