@next/swc-wasm-nodejs 16.0.2 → 16.0.3
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 +53 -54
- 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
|
|
4
|
-
export function minifySync(s: string, opts: any): any;
|
|
3
|
+
export function transformSync(s: any, opts: any): any;
|
|
5
4
|
export function parseSync(s: string, opts: any): any;
|
|
6
5
|
export function minify(s: string, opts: any): Promise<any>;
|
|
7
|
-
export function
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
8
7
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
-
export function
|
|
10
|
-
export function
|
|
8
|
+
export function minifySync(s: string, opts: any): any;
|
|
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;
|
package/wasm.js
CHANGED
|
@@ -217,18 +217,53 @@ 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 {any} s
|
|
227
|
+
* @param {any} opts
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
230
|
+
module.exports.transformSync = function(s, opts) {
|
|
231
|
+
const ret = wasm.transformSync(s, opts);
|
|
232
|
+
if (ret[2]) {
|
|
233
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
234
|
+
}
|
|
235
|
+
return takeFromExternrefTable0(ret[0]);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @param {string} s
|
|
240
|
+
* @param {any} opts
|
|
241
|
+
* @returns {any}
|
|
242
|
+
*/
|
|
243
|
+
module.exports.parseSync = function(s, opts) {
|
|
244
|
+
const ret = wasm.parseSync(s, opts);
|
|
245
|
+
if (ret[2]) {
|
|
246
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
247
|
+
}
|
|
248
|
+
return takeFromExternrefTable0(ret[0]);
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @param {string} s
|
|
253
|
+
* @param {any} opts
|
|
254
|
+
* @returns {Promise<any>}
|
|
255
|
+
*/
|
|
256
|
+
module.exports.minify = function(s, opts) {
|
|
257
|
+
const ret = wasm.minify(s, opts);
|
|
258
|
+
return ret;
|
|
259
|
+
};
|
|
260
|
+
|
|
220
261
|
function passArray8ToWasm0(arg, malloc) {
|
|
221
262
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
222
263
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
223
264
|
WASM_VECTOR_LEN = arg.length;
|
|
224
265
|
return ptr;
|
|
225
266
|
}
|
|
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
267
|
/**
|
|
233
268
|
* @param {Uint8Array} content
|
|
234
269
|
* @param {string} template_path
|
|
@@ -257,14 +292,11 @@ module.exports.expandNextJsTemplate = function(content, template_path, next_pack
|
|
|
257
292
|
/**
|
|
258
293
|
* @param {string} s
|
|
259
294
|
* @param {any} opts
|
|
260
|
-
* @returns {any}
|
|
295
|
+
* @returns {Promise<any>}
|
|
261
296
|
*/
|
|
262
|
-
module.exports.
|
|
263
|
-
const ret = wasm.
|
|
264
|
-
|
|
265
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
266
|
-
}
|
|
267
|
-
return takeFromExternrefTable0(ret[0]);
|
|
297
|
+
module.exports.parse = function(s, opts) {
|
|
298
|
+
const ret = wasm.parse(s, opts);
|
|
299
|
+
return ret;
|
|
268
300
|
};
|
|
269
301
|
|
|
270
302
|
/**
|
|
@@ -272,24 +304,14 @@ module.exports.minifySync = function(s, opts) {
|
|
|
272
304
|
* @param {any} opts
|
|
273
305
|
* @returns {any}
|
|
274
306
|
*/
|
|
275
|
-
module.exports.
|
|
276
|
-
const ret = wasm.
|
|
307
|
+
module.exports.minifySync = function(s, opts) {
|
|
308
|
+
const ret = wasm.minifySync(s, opts);
|
|
277
309
|
if (ret[2]) {
|
|
278
310
|
throw takeFromExternrefTable0(ret[1]);
|
|
279
311
|
}
|
|
280
312
|
return takeFromExternrefTable0(ret[0]);
|
|
281
313
|
};
|
|
282
314
|
|
|
283
|
-
/**
|
|
284
|
-
* @param {string} s
|
|
285
|
-
* @param {any} opts
|
|
286
|
-
* @returns {Promise<any>}
|
|
287
|
-
*/
|
|
288
|
-
module.exports.minify = function(s, opts) {
|
|
289
|
-
const ret = wasm.minify(s, opts);
|
|
290
|
-
return ret;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
315
|
/**
|
|
294
316
|
* @param {any} s
|
|
295
317
|
* @param {any} opts
|
|
@@ -301,28 +323,15 @@ module.exports.transform = function(s, opts) {
|
|
|
301
323
|
};
|
|
302
324
|
|
|
303
325
|
/**
|
|
304
|
-
* @param {string}
|
|
326
|
+
* @param {string} value
|
|
305
327
|
* @param {any} opts
|
|
306
328
|
* @returns {Promise<any>}
|
|
307
329
|
*/
|
|
308
|
-
module.exports.
|
|
309
|
-
const ret = wasm.
|
|
330
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
331
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
310
332
|
return ret;
|
|
311
333
|
};
|
|
312
334
|
|
|
313
|
-
/**
|
|
314
|
-
* @param {any} s
|
|
315
|
-
* @param {any} opts
|
|
316
|
-
* @returns {any}
|
|
317
|
-
*/
|
|
318
|
-
module.exports.transformSync = function(s, opts) {
|
|
319
|
-
const ret = wasm.transformSync(s, opts);
|
|
320
|
-
if (ret[2]) {
|
|
321
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
322
|
-
}
|
|
323
|
-
return takeFromExternrefTable0(ret[0]);
|
|
324
|
-
};
|
|
325
|
-
|
|
326
335
|
/**
|
|
327
336
|
* @param {string} value
|
|
328
337
|
* @param {any} opts
|
|
@@ -336,18 +345,8 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
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.closure1163_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_wrapper23888 = function(arg0, arg1, arg2) {
|
|
634
|
+
const ret = makeMutClosure(arg0, arg1, 1164, __wbg_adapter_50);
|
|
636
635
|
return ret;
|
|
637
636
|
};
|
|
638
637
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|