@next/swc-wasm-nodejs 16.3.0-canary.14 → 16.3.0-canary.15
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.js +15 -15
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @returns {string}
|
|
8
8
|
*/
|
|
9
9
|
function codeFrameColumns(source, location, options) {
|
|
10
|
-
const ptr0 = passArray8ToWasm0(source, wasm.
|
|
10
|
+
const ptr0 = passArray8ToWasm0(source, wasm.__wbindgen_malloc);
|
|
11
11
|
const len0 = WASM_VECTOR_LEN;
|
|
12
12
|
const ret = wasm.codeFrameColumns(ptr0, len0, location, options);
|
|
13
13
|
if (ret[3]) {
|
|
14
14
|
throw takeFromExternrefTable0(ret[2]);
|
|
15
15
|
}
|
|
16
16
|
var v2 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
17
|
-
if (ret[0] !== 0) { wasm.
|
|
17
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
18
18
|
return v2;
|
|
19
19
|
}
|
|
20
20
|
exports.codeFrameColumns = codeFrameColumns;
|
|
@@ -29,18 +29,18 @@ exports.codeFrameColumns = codeFrameColumns;
|
|
|
29
29
|
* @returns {string}
|
|
30
30
|
*/
|
|
31
31
|
function expandNextJsTemplate(content, template_path, next_package_dir_path, replacements, injections, imports) {
|
|
32
|
-
const ptr0 = passArray8ToWasm0(content, wasm.
|
|
32
|
+
const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_malloc);
|
|
33
33
|
const len0 = WASM_VECTOR_LEN;
|
|
34
|
-
const ptr1 = passStringToWasm0(template_path, wasm.
|
|
34
|
+
const ptr1 = passStringToWasm0(template_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
35
35
|
const len1 = WASM_VECTOR_LEN;
|
|
36
|
-
const ptr2 = passStringToWasm0(next_package_dir_path, wasm.
|
|
36
|
+
const ptr2 = passStringToWasm0(next_package_dir_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37
37
|
const len2 = WASM_VECTOR_LEN;
|
|
38
38
|
const ret = wasm.expandNextJsTemplate(ptr0, len0, ptr1, len1, ptr2, len2, replacements, injections, imports);
|
|
39
39
|
if (ret[3]) {
|
|
40
40
|
throw takeFromExternrefTable0(ret[2]);
|
|
41
41
|
}
|
|
42
42
|
var v4 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
43
|
-
if (ret[0] !== 0) { wasm.
|
|
43
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
44
44
|
return v4;
|
|
45
45
|
}
|
|
46
46
|
exports.expandNextJsTemplate = expandNextJsTemplate;
|
|
@@ -155,7 +155,7 @@ function __wbg_get_imports() {
|
|
|
155
155
|
},
|
|
156
156
|
__wbg_String_11905339415cf58e: function(arg0, arg1) {
|
|
157
157
|
const ret = String(arg1);
|
|
158
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
158
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
159
159
|
const len1 = WASM_VECTOR_LEN;
|
|
160
160
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
161
161
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -173,7 +173,7 @@ function __wbg_get_imports() {
|
|
|
173
173
|
},
|
|
174
174
|
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
175
175
|
const ret = debugString(arg1);
|
|
176
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
176
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
177
177
|
const len1 = WASM_VECTOR_LEN;
|
|
178
178
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
179
179
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -220,7 +220,7 @@ function __wbg_get_imports() {
|
|
|
220
220
|
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
221
221
|
const obj = arg1;
|
|
222
222
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
223
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
223
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
224
224
|
var len1 = WASM_VECTOR_LEN;
|
|
225
225
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
226
226
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -250,7 +250,7 @@ function __wbg_get_imports() {
|
|
|
250
250
|
},
|
|
251
251
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
252
252
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
253
|
-
if (arg0 !== 0) { wasm.
|
|
253
|
+
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
254
254
|
console.error(v0);
|
|
255
255
|
},
|
|
256
256
|
__wbg_getRandomValues_6f269dae5feacb57: function() { return handleError(function (arg0, arg1) {
|
|
@@ -392,7 +392,7 @@ function __wbg_get_imports() {
|
|
|
392
392
|
},
|
|
393
393
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
394
394
|
const ret = arg1.stack;
|
|
395
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
395
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
396
396
|
const len1 = WASM_VECTOR_LEN;
|
|
397
397
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
398
398
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -422,7 +422,7 @@ function __wbg_get_imports() {
|
|
|
422
422
|
return ret;
|
|
423
423
|
},
|
|
424
424
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
425
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
425
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4331, function: Function { arguments: [Externref], shim_idx: 421, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
426
426
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2eab34b7dade483a___closure__destroy___dyn_core_4b0d4602549cae5f___ops__function__FnMut__wasm_bindgen_2eab34b7dade483a___JsValue____Output___core_4b0d4602549cae5f___result__Result_____wasm_bindgen_2eab34b7dade483a___JsError___, wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___wasm_bindgen_2eab34b7dade483a___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_2eab34b7dade483a___JsError___true_);
|
|
427
427
|
return ret;
|
|
428
428
|
},
|
|
@@ -475,7 +475,7 @@ function wasm_bindgen_2eab34b7dade483a___convert__closures_____invoke___js_sys_d
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
function addToExternrefTable0(obj) {
|
|
478
|
-
const idx = wasm.
|
|
478
|
+
const idx = wasm.__externref_table_alloc();
|
|
479
479
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
480
480
|
return idx;
|
|
481
481
|
}
|
|
@@ -590,7 +590,7 @@ function handleError(f, args) {
|
|
|
590
590
|
return f.apply(this, args);
|
|
591
591
|
} catch (e) {
|
|
592
592
|
const idx = addToExternrefTable0(e);
|
|
593
|
-
wasm.
|
|
593
|
+
wasm.__wbindgen_exn_store(idx);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
|
|
@@ -672,7 +672,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
672
672
|
|
|
673
673
|
function takeFromExternrefTable0(idx) {
|
|
674
674
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
675
|
-
wasm.
|
|
675
|
+
wasm.__externref_table_dealloc(idx);
|
|
676
676
|
return value;
|
|
677
677
|
}
|
|
678
678
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|