@wasm-fmt/json_fmt 0.2.5 → 0.2.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/json_fmt_bg.js +25 -25
- package/json_fmt_bg.wasm +0 -0
- package/package.json +1 -1
package/json_fmt_bg.js
CHANGED
|
@@ -30,61 +30,61 @@ export function format(src, config) {
|
|
|
30
30
|
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
33
|
+
export function __wbg_Error_dbcd8782dbb273a2(arg0, arg1) {
|
|
34
34
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
35
35
|
return addHeapObject(ret);
|
|
36
36
|
}
|
|
37
|
-
export function
|
|
37
|
+
export function __wbg_Number_012552ac4683228d(arg0) {
|
|
38
38
|
const ret = Number(getObject(arg0));
|
|
39
39
|
return ret;
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
41
|
+
export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
42
42
|
const ret = String(getObject(arg1));
|
|
43
43
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
44
44
|
const len1 = WASM_VECTOR_LEN;
|
|
45
45
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
46
46
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
47
47
|
}
|
|
48
|
-
export function
|
|
48
|
+
export function __wbg___wbindgen_boolean_get_7f1c4dd217655ab6(arg0) {
|
|
49
49
|
const v = getObject(arg0);
|
|
50
50
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
51
51
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
52
52
|
}
|
|
53
|
-
export function
|
|
53
|
+
export function __wbg___wbindgen_debug_string_6cf0badf0b90f6ef(arg0, arg1) {
|
|
54
54
|
const ret = debugString(getObject(arg1));
|
|
55
55
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
56
56
|
const len1 = WASM_VECTOR_LEN;
|
|
57
57
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
58
58
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
59
59
|
}
|
|
60
|
-
export function
|
|
60
|
+
export function __wbg___wbindgen_in_e32cbbbf71fdc915(arg0, arg1) {
|
|
61
61
|
const ret = getObject(arg0) in getObject(arg1);
|
|
62
62
|
return ret;
|
|
63
63
|
}
|
|
64
|
-
export function
|
|
64
|
+
export function __wbg___wbindgen_is_object_f8b6723c60349a13(arg0) {
|
|
65
65
|
const val = getObject(arg0);
|
|
66
66
|
const ret = typeof(val) === 'object' && val !== null;
|
|
67
67
|
return ret;
|
|
68
68
|
}
|
|
69
|
-
export function
|
|
69
|
+
export function __wbg___wbindgen_is_string_89134e23eba104e4(arg0) {
|
|
70
70
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
71
71
|
return ret;
|
|
72
72
|
}
|
|
73
|
-
export function
|
|
73
|
+
export function __wbg___wbindgen_is_undefined_1296fcc83c2da07a(arg0) {
|
|
74
74
|
const ret = getObject(arg0) === undefined;
|
|
75
75
|
return ret;
|
|
76
76
|
}
|
|
77
|
-
export function
|
|
77
|
+
export function __wbg___wbindgen_jsval_loose_eq_3173dea557396a92(arg0, arg1) {
|
|
78
78
|
const ret = getObject(arg0) == getObject(arg1);
|
|
79
79
|
return ret;
|
|
80
80
|
}
|
|
81
|
-
export function
|
|
81
|
+
export function __wbg___wbindgen_number_get_3330675b4e5c3680(arg0, arg1) {
|
|
82
82
|
const obj = getObject(arg1);
|
|
83
83
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
84
84
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
85
85
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
86
86
|
}
|
|
87
|
-
export function
|
|
87
|
+
export function __wbg___wbindgen_string_get_7b8bc463f6cbeefe(arg0, arg1) {
|
|
88
88
|
const obj = getObject(arg1);
|
|
89
89
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
90
90
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -92,22 +92,22 @@ export function __wbg___wbindgen_string_get_72fb696202c56729(arg0, arg1) {
|
|
|
92
92
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
93
93
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
94
94
|
}
|
|
95
|
-
export function
|
|
95
|
+
export function __wbg___wbindgen_throw_89ca9e2c67795ec1(arg0, arg1) {
|
|
96
96
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
97
97
|
}
|
|
98
|
-
export function
|
|
98
|
+
export function __wbg_entries_46c64fadfaa3b525(arg0) {
|
|
99
99
|
const ret = Object.entries(getObject(arg0));
|
|
100
100
|
return addHeapObject(ret);
|
|
101
101
|
}
|
|
102
|
-
export function
|
|
102
|
+
export function __wbg_get_229657ec2da079cd(arg0, arg1) {
|
|
103
103
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
104
104
|
return addHeapObject(ret);
|
|
105
105
|
}
|
|
106
|
-
export function
|
|
106
|
+
export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
107
107
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
108
108
|
return addHeapObject(ret);
|
|
109
109
|
}
|
|
110
|
-
export function
|
|
110
|
+
export function __wbg_instanceof_ArrayBuffer_4f2b9b5ed416155d(arg0) {
|
|
111
111
|
let result;
|
|
112
112
|
try {
|
|
113
113
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -117,7 +117,7 @@ export function __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04(arg0) {
|
|
|
117
117
|
const ret = result;
|
|
118
118
|
return ret;
|
|
119
119
|
}
|
|
120
|
-
export function
|
|
120
|
+
export function __wbg_instanceof_Uint8Array_6482c66fce35827d(arg0) {
|
|
121
121
|
let result;
|
|
122
122
|
try {
|
|
123
123
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -127,23 +127,23 @@ export function __wbg_instanceof_Uint8Array_9b9075935c74707c(arg0) {
|
|
|
127
127
|
const ret = result;
|
|
128
128
|
return ret;
|
|
129
129
|
}
|
|
130
|
-
export function
|
|
130
|
+
export function __wbg_isSafeInteger_d6215c7562dbc4db(arg0) {
|
|
131
131
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
132
132
|
return ret;
|
|
133
133
|
}
|
|
134
|
-
export function
|
|
134
|
+
export function __wbg_length_f875d3a041bab91a(arg0) {
|
|
135
135
|
const ret = getObject(arg0).length;
|
|
136
136
|
return ret;
|
|
137
137
|
}
|
|
138
|
-
export function
|
|
138
|
+
export function __wbg_length_feaf2a40e5f9755a(arg0) {
|
|
139
139
|
const ret = getObject(arg0).length;
|
|
140
140
|
return ret;
|
|
141
141
|
}
|
|
142
|
-
export function
|
|
142
|
+
export function __wbg_new_6e7681a5f6f98ceb(arg0) {
|
|
143
143
|
const ret = new Uint8Array(getObject(arg0));
|
|
144
144
|
return addHeapObject(ret);
|
|
145
145
|
}
|
|
146
|
-
export function
|
|
146
|
+
export function __wbg_prototypesetcall_37f00e1be5c4015a(arg0, arg1, arg2) {
|
|
147
147
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
148
148
|
}
|
|
149
149
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
@@ -233,7 +233,7 @@ function debugString(val) {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
function dropObject(idx) {
|
|
236
|
-
if (idx <
|
|
236
|
+
if (idx < 1028) return;
|
|
237
237
|
heap[idx] = heap_next;
|
|
238
238
|
heap_next = idx;
|
|
239
239
|
}
|
|
@@ -266,7 +266,7 @@ function getUint8ArrayMemory0() {
|
|
|
266
266
|
|
|
267
267
|
function getObject(idx) { return heap[idx]; }
|
|
268
268
|
|
|
269
|
-
let heap = new Array(
|
|
269
|
+
let heap = new Array(1024).fill(undefined);
|
|
270
270
|
heap.push(undefined, null, true, false);
|
|
271
271
|
|
|
272
272
|
let heap_next = heap.length;
|
package/json_fmt_bg.wasm
CHANGED
|
Binary file
|