@next/swc-wasm-nodejs 13.5.7-canary.19 → 13.5.7-canary.23
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 +12 -12
- package/wasm.js +39 -39
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
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
|
+
/**
|
|
4
16
|
* @param {string} s
|
|
5
17
|
* @param {any} opts
|
|
6
18
|
* @returns {any}
|
|
@@ -37,18 +49,6 @@ export function parseSync(s: string, opts: any): any;
|
|
|
37
49
|
*/
|
|
38
50
|
export function parse(s: string, opts: any): Promise<any>;
|
|
39
51
|
/**
|
|
40
|
-
* @param {string} value
|
|
41
|
-
* @param {any} opts
|
|
42
|
-
* @returns {any}
|
|
43
|
-
*/
|
|
44
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} value
|
|
47
|
-
* @param {any} opts
|
|
48
|
-
* @returns {Promise<any>}
|
|
49
|
-
*/
|
|
50
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
51
|
-
/**
|
|
52
52
|
* @param {string} query
|
|
53
53
|
* @param {any} opts
|
|
54
54
|
* @returns {any}
|
package/wasm.js
CHANGED
|
@@ -100,14 +100,6 @@ function getInt32Memory0() {
|
|
|
100
100
|
return cachedInt32Memory0;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
|
-
|
|
105
|
-
cachedTextDecoder.decode();
|
|
106
|
-
|
|
107
|
-
function getStringFromWasm0(ptr, len) {
|
|
108
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
109
|
-
}
|
|
110
|
-
|
|
111
103
|
function addHeapObject(obj) {
|
|
112
104
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
113
105
|
const idx = heap_next;
|
|
@@ -126,6 +118,14 @@ function getFloat64Memory0() {
|
|
|
126
118
|
return cachedFloat64Memory0;
|
|
127
119
|
}
|
|
128
120
|
|
|
121
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
122
|
+
|
|
123
|
+
cachedTextDecoder.decode();
|
|
124
|
+
|
|
125
|
+
function getStringFromWasm0(ptr, len) {
|
|
126
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
129
|
let cachedBigInt64Memory0 = null;
|
|
130
130
|
|
|
131
131
|
function getBigInt64Memory0() {
|
|
@@ -229,14 +229,14 @@ function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
|
-
* @param {string}
|
|
232
|
+
* @param {string} value
|
|
233
233
|
* @param {any} opts
|
|
234
234
|
* @returns {any}
|
|
235
235
|
*/
|
|
236
|
-
module.exports.
|
|
236
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
237
237
|
try {
|
|
238
238
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
239
|
-
wasm.
|
|
239
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
240
240
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
241
241
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
242
242
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -250,24 +250,24 @@ module.exports.minifySync = function(s, opts) {
|
|
|
250
250
|
};
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
|
-
* @param {string}
|
|
253
|
+
* @param {string} value
|
|
254
254
|
* @param {any} opts
|
|
255
255
|
* @returns {Promise<any>}
|
|
256
256
|
*/
|
|
257
|
-
module.exports.
|
|
258
|
-
const ret = wasm.
|
|
257
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
258
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
259
259
|
return takeObject(ret);
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
|
-
* @param {
|
|
263
|
+
* @param {string} s
|
|
264
264
|
* @param {any} opts
|
|
265
265
|
* @returns {any}
|
|
266
266
|
*/
|
|
267
|
-
module.exports.
|
|
267
|
+
module.exports.minifySync = function(s, opts) {
|
|
268
268
|
try {
|
|
269
269
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
270
|
-
wasm.
|
|
270
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
271
271
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
272
272
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
273
273
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -281,24 +281,24 @@ module.exports.transformSync = function(s, opts) {
|
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
/**
|
|
284
|
-
* @param {
|
|
284
|
+
* @param {string} s
|
|
285
285
|
* @param {any} opts
|
|
286
286
|
* @returns {Promise<any>}
|
|
287
287
|
*/
|
|
288
|
-
module.exports.
|
|
289
|
-
const ret = wasm.
|
|
288
|
+
module.exports.minify = function(s, opts) {
|
|
289
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
290
290
|
return takeObject(ret);
|
|
291
291
|
};
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
|
-
* @param {
|
|
294
|
+
* @param {any} s
|
|
295
295
|
* @param {any} opts
|
|
296
296
|
* @returns {any}
|
|
297
297
|
*/
|
|
298
|
-
module.exports.
|
|
298
|
+
module.exports.transformSync = function(s, opts) {
|
|
299
299
|
try {
|
|
300
300
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
301
|
-
wasm.
|
|
301
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
302
302
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
303
303
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
304
304
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -312,24 +312,24 @@ module.exports.parseSync = function(s, opts) {
|
|
|
312
312
|
};
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
|
-
* @param {
|
|
315
|
+
* @param {any} s
|
|
316
316
|
* @param {any} opts
|
|
317
317
|
* @returns {Promise<any>}
|
|
318
318
|
*/
|
|
319
|
-
module.exports.
|
|
320
|
-
const ret = wasm.
|
|
319
|
+
module.exports.transform = function(s, opts) {
|
|
320
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
321
321
|
return takeObject(ret);
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
|
-
* @param {string}
|
|
325
|
+
* @param {string} s
|
|
326
326
|
* @param {any} opts
|
|
327
327
|
* @returns {any}
|
|
328
328
|
*/
|
|
329
|
-
module.exports.
|
|
329
|
+
module.exports.parseSync = function(s, opts) {
|
|
330
330
|
try {
|
|
331
331
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
332
|
-
wasm.
|
|
332
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
333
333
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
334
334
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
335
335
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -343,12 +343,12 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
343
343
|
};
|
|
344
344
|
|
|
345
345
|
/**
|
|
346
|
-
* @param {string}
|
|
346
|
+
* @param {string} s
|
|
347
347
|
* @param {any} opts
|
|
348
348
|
* @returns {Promise<any>}
|
|
349
349
|
*/
|
|
350
|
-
module.exports.
|
|
351
|
-
const ret = wasm.
|
|
350
|
+
module.exports.parse = function(s, opts) {
|
|
351
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
352
352
|
return takeObject(ret);
|
|
353
353
|
};
|
|
354
354
|
|
|
@@ -406,11 +406,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
406
406
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
407
407
|
};
|
|
408
408
|
|
|
409
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
410
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
411
|
-
return addHeapObject(ret);
|
|
412
|
-
};
|
|
413
|
-
|
|
414
409
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
415
410
|
const v = getObject(arg0);
|
|
416
411
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -465,6 +460,11 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
465
460
|
return ret;
|
|
466
461
|
};
|
|
467
462
|
|
|
463
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
464
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
465
|
+
return addHeapObject(ret);
|
|
466
|
+
};
|
|
467
|
+
|
|
468
468
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
469
469
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
470
470
|
return addHeapObject(ret);
|
|
@@ -800,8 +800,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
800
800
|
return addHeapObject(ret);
|
|
801
801
|
};
|
|
802
802
|
|
|
803
|
-
module.exports.
|
|
804
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
803
|
+
module.exports.__wbindgen_closure_wrapper13405 = function(arg0, arg1, arg2) {
|
|
804
|
+
const ret = makeMutClosure(arg0, arg1, 2157, __wbg_adapter_48);
|
|
805
805
|
return addHeapObject(ret);
|
|
806
806
|
};
|
|
807
807
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|