@next/swc-wasm-nodejs 14.1.1-canary.5 → 14.1.1-canary.6
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 +20 -16
- package/wasm.js +44 -43
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string} value
|
|
5
|
-
* @param {any} opts
|
|
6
|
-
* @returns {any}
|
|
7
|
-
*/
|
|
8
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} value
|
|
11
|
-
* @param {any} opts
|
|
12
|
-
* @returns {Promise<any>}
|
|
13
|
-
*/
|
|
14
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
4
|
* @param {string} s
|
|
17
5
|
* @param {any} opts
|
|
18
6
|
* @returns {any}
|
|
@@ -37,14 +25,30 @@ export function transformSync(s: any, opts: any): any;
|
|
|
37
25
|
*/
|
|
38
26
|
export function transform(s: any, opts: any): Promise<any>;
|
|
39
27
|
/**
|
|
40
|
-
*
|
|
28
|
+
* Detect if metadata routes is a dynamic route, which containing
|
|
29
|
+
* generateImageMetadata or generateSitemaps as export
|
|
30
|
+
* Unlike native bindings, caller should provide the contents of the pages
|
|
31
|
+
* sine our wasm bindings does not have access to the file system
|
|
32
|
+
* @param {string} page_file_path
|
|
33
|
+
* @param {string} page_contents
|
|
34
|
+
* @returns {Promise<any>}
|
|
35
|
+
*/
|
|
36
|
+
export function isDynamicMetadataRoute(page_file_path: string, page_contents: string): Promise<any>;
|
|
37
|
+
/**
|
|
38
|
+
* @param {string} page_file_path
|
|
39
|
+
* @param {string} page_contents
|
|
40
|
+
* @returns {Promise<any>}
|
|
41
|
+
*/
|
|
42
|
+
export function getPageStaticInfo(page_file_path: string, page_contents: string): Promise<any>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} value
|
|
41
45
|
* @param {any} opts
|
|
42
46
|
* @returns {any}
|
|
43
47
|
*/
|
|
44
|
-
export function
|
|
48
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
45
49
|
/**
|
|
46
|
-
* @param {string}
|
|
50
|
+
* @param {string} value
|
|
47
51
|
* @param {any} opts
|
|
48
52
|
* @returns {Promise<any>}
|
|
49
53
|
*/
|
|
50
|
-
export function
|
|
54
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -228,37 +228,6 @@ function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
|
228
228
|
wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke1_mut___wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
/**
|
|
232
|
-
* @param {string} value
|
|
233
|
-
* @param {any} opts
|
|
234
|
-
* @returns {any}
|
|
235
|
-
*/
|
|
236
|
-
module.exports.mdxCompileSync = function(value, opts) {
|
|
237
|
-
try {
|
|
238
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
239
|
-
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
240
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
241
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
242
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
243
|
-
if (r2) {
|
|
244
|
-
throw takeObject(r1);
|
|
245
|
-
}
|
|
246
|
-
return takeObject(r0);
|
|
247
|
-
} finally {
|
|
248
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* @param {string} value
|
|
254
|
-
* @param {any} opts
|
|
255
|
-
* @returns {Promise<any>}
|
|
256
|
-
*/
|
|
257
|
-
module.exports.mdxCompile = function(value, opts) {
|
|
258
|
-
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
259
|
-
return takeObject(ret);
|
|
260
|
-
};
|
|
261
|
-
|
|
262
231
|
/**
|
|
263
232
|
* @param {string} s
|
|
264
233
|
* @param {any} opts
|
|
@@ -322,14 +291,46 @@ module.exports.transform = function(s, opts) {
|
|
|
322
291
|
};
|
|
323
292
|
|
|
324
293
|
/**
|
|
325
|
-
*
|
|
294
|
+
* Detect if metadata routes is a dynamic route, which containing
|
|
295
|
+
* generateImageMetadata or generateSitemaps as export
|
|
296
|
+
* Unlike native bindings, caller should provide the contents of the pages
|
|
297
|
+
* sine our wasm bindings does not have access to the file system
|
|
298
|
+
* @param {string} page_file_path
|
|
299
|
+
* @param {string} page_contents
|
|
300
|
+
* @returns {Promise<any>}
|
|
301
|
+
*/
|
|
302
|
+
module.exports.isDynamicMetadataRoute = function(page_file_path, page_contents) {
|
|
303
|
+
const ptr0 = passStringToWasm0(page_file_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
+
const len0 = WASM_VECTOR_LEN;
|
|
305
|
+
const ptr1 = passStringToWasm0(page_contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
const len1 = WASM_VECTOR_LEN;
|
|
307
|
+
const ret = wasm.isDynamicMetadataRoute(ptr0, len0, ptr1, len1);
|
|
308
|
+
return takeObject(ret);
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @param {string} page_file_path
|
|
313
|
+
* @param {string} page_contents
|
|
314
|
+
* @returns {Promise<any>}
|
|
315
|
+
*/
|
|
316
|
+
module.exports.getPageStaticInfo = function(page_file_path, page_contents) {
|
|
317
|
+
const ptr0 = passStringToWasm0(page_file_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
318
|
+
const len0 = WASM_VECTOR_LEN;
|
|
319
|
+
const ptr1 = passStringToWasm0(page_contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
320
|
+
const len1 = WASM_VECTOR_LEN;
|
|
321
|
+
const ret = wasm.getPageStaticInfo(ptr0, len0, ptr1, len1);
|
|
322
|
+
return takeObject(ret);
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @param {string} value
|
|
326
327
|
* @param {any} opts
|
|
327
328
|
* @returns {any}
|
|
328
329
|
*/
|
|
329
|
-
module.exports.
|
|
330
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
330
331
|
try {
|
|
331
332
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
332
|
-
wasm.
|
|
333
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
333
334
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
334
335
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
335
336
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -343,12 +344,12 @@ module.exports.parseSync = function(s, opts) {
|
|
|
343
344
|
};
|
|
344
345
|
|
|
345
346
|
/**
|
|
346
|
-
* @param {string}
|
|
347
|
+
* @param {string} value
|
|
347
348
|
* @param {any} opts
|
|
348
349
|
* @returns {Promise<any>}
|
|
349
350
|
*/
|
|
350
|
-
module.exports.
|
|
351
|
-
const ret = wasm.
|
|
351
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
352
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
352
353
|
return takeObject(ret);
|
|
353
354
|
};
|
|
354
355
|
|
|
@@ -438,13 +439,13 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
438
439
|
return ret;
|
|
439
440
|
};
|
|
440
441
|
|
|
441
|
-
module.exports.
|
|
442
|
-
const ret =
|
|
442
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
443
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
443
444
|
return addHeapObject(ret);
|
|
444
445
|
};
|
|
445
446
|
|
|
446
|
-
module.exports.
|
|
447
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
447
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
448
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
448
449
|
return addHeapObject(ret);
|
|
449
450
|
};
|
|
450
451
|
|
|
@@ -769,8 +770,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
769
770
|
return addHeapObject(ret);
|
|
770
771
|
};
|
|
771
772
|
|
|
772
|
-
module.exports.
|
|
773
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
773
|
+
module.exports.__wbindgen_closure_wrapper14626 = function(arg0, arg1, arg2) {
|
|
774
|
+
const ret = makeMutClosure(arg0, arg1, 3221, __wbg_adapter_48);
|
|
774
775
|
return addHeapObject(ret);
|
|
775
776
|
};
|
|
776
777
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|