@next/swc-wasm-nodejs 16.0.1-canary.6 → 16.0.2-canary.0
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 +54 -55
- 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 expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
4
|
-
export function minifySync(s: string, opts: any): any;
|
|
5
3
|
export function parseSync(s: string, opts: any): any;
|
|
6
4
|
export function minify(s: string, opts: any): Promise<any>;
|
|
7
|
-
export function transform(s: any, opts: any): Promise<any>;
|
|
8
|
-
export function parse(s: string, opts: any): Promise<any>;
|
|
9
5
|
export function transformSync(s: any, opts: any): any;
|
|
6
|
+
export function parse(s: string, opts: any): Promise<any>;
|
|
7
|
+
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
|
@@ -217,56 +217,11 @@ function debugString(val) {
|
|
|
217
217
|
return className;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
221
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
222
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
223
|
-
WASM_VECTOR_LEN = arg.length;
|
|
224
|
-
return ptr;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
220
|
function takeFromExternrefTable0(idx) {
|
|
228
221
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
229
222
|
wasm.__externref_table_dealloc(idx);
|
|
230
223
|
return value;
|
|
231
224
|
}
|
|
232
|
-
/**
|
|
233
|
-
* @param {Uint8Array} content
|
|
234
|
-
* @param {string} template_path
|
|
235
|
-
* @param {string} next_package_dir_path
|
|
236
|
-
* @param {any} replacements
|
|
237
|
-
* @param {any} injections
|
|
238
|
-
* @param {any} imports
|
|
239
|
-
* @returns {string}
|
|
240
|
-
*/
|
|
241
|
-
module.exports.expandNextJsTemplate = function(content, template_path, next_package_dir_path, replacements, injections, imports) {
|
|
242
|
-
const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
243
|
-
const len0 = WASM_VECTOR_LEN;
|
|
244
|
-
const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
-
const len1 = WASM_VECTOR_LEN;
|
|
246
|
-
const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
247
|
-
const len2 = WASM_VECTOR_LEN;
|
|
248
|
-
const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
|
|
249
|
-
if (ret[3]) {
|
|
250
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
251
|
-
}
|
|
252
|
-
var v4 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
253
|
-
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
254
|
-
return v4;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @param {string} s
|
|
259
|
-
* @param {any} opts
|
|
260
|
-
* @returns {any}
|
|
261
|
-
*/
|
|
262
|
-
module.exports.minifySync = function(s, opts) {
|
|
263
|
-
const ret = wasm.minifySync(s, opts);
|
|
264
|
-
if (ret[2]) {
|
|
265
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
266
|
-
}
|
|
267
|
-
return takeFromExternrefTable0(ret[0]);
|
|
268
|
-
};
|
|
269
|
-
|
|
270
225
|
/**
|
|
271
226
|
* @param {string} s
|
|
272
227
|
* @param {any} opts
|
|
@@ -293,11 +248,14 @@ module.exports.minify = function(s, opts) {
|
|
|
293
248
|
/**
|
|
294
249
|
* @param {any} s
|
|
295
250
|
* @param {any} opts
|
|
296
|
-
* @returns {
|
|
251
|
+
* @returns {any}
|
|
297
252
|
*/
|
|
298
|
-
module.exports.
|
|
299
|
-
const ret = wasm.
|
|
300
|
-
|
|
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]);
|
|
301
259
|
};
|
|
302
260
|
|
|
303
261
|
/**
|
|
@@ -311,18 +269,59 @@ module.exports.parse = function(s, opts) {
|
|
|
311
269
|
};
|
|
312
270
|
|
|
313
271
|
/**
|
|
314
|
-
* @param {
|
|
272
|
+
* @param {string} s
|
|
315
273
|
* @param {any} opts
|
|
316
274
|
* @returns {any}
|
|
317
275
|
*/
|
|
318
|
-
module.exports.
|
|
319
|
-
const ret = wasm.
|
|
276
|
+
module.exports.minifySync = function(s, opts) {
|
|
277
|
+
const ret = wasm.minifySync(s, opts);
|
|
320
278
|
if (ret[2]) {
|
|
321
279
|
throw takeFromExternrefTable0(ret[1]);
|
|
322
280
|
}
|
|
323
281
|
return takeFromExternrefTable0(ret[0]);
|
|
324
282
|
};
|
|
325
283
|
|
|
284
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
285
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
286
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
287
|
+
WASM_VECTOR_LEN = arg.length;
|
|
288
|
+
return ptr;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @param {Uint8Array} content
|
|
292
|
+
* @param {string} template_path
|
|
293
|
+
* @param {string} next_package_dir_path
|
|
294
|
+
* @param {any} replacements
|
|
295
|
+
* @param {any} injections
|
|
296
|
+
* @param {any} imports
|
|
297
|
+
* @returns {string}
|
|
298
|
+
*/
|
|
299
|
+
module.exports.expandNextJsTemplate = function(content, template_path, next_package_dir_path, replacements, injections, imports) {
|
|
300
|
+
const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
301
|
+
const len0 = WASM_VECTOR_LEN;
|
|
302
|
+
const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
303
|
+
const len1 = WASM_VECTOR_LEN;
|
|
304
|
+
const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
const len2 = WASM_VECTOR_LEN;
|
|
306
|
+
const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
|
|
307
|
+
if (ret[3]) {
|
|
308
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
309
|
+
}
|
|
310
|
+
var v4 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
311
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
312
|
+
return v4;
|
|
313
|
+
};
|
|
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
|
+
|
|
326
325
|
/**
|
|
327
326
|
* @param {string} value
|
|
328
327
|
* @param {any} opts
|
|
@@ -347,7 +346,7 @@ module.exports.mdxCompile = function(value, opts) {
|
|
|
347
346
|
};
|
|
348
347
|
|
|
349
348
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
350
|
-
wasm.
|
|
349
|
+
wasm.closure1168_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_wrapper23909 = function(arg0, arg1, arg2) {
|
|
634
|
+
const ret = makeMutClosure(arg0, arg1, 1169, __wbg_adapter_50);
|
|
636
635
|
return ret;
|
|
637
636
|
};
|
|
638
637
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|