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