@prospective.co/procss 0.1.16 → 0.1.17
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/src/ast/token/space.rs +2 -0
- package/target/cjs/procss.js +68 -46
- package/target/cjs/procss_bg.wasm +0 -0
- package/target/esm/procss.js +63 -45
- package/target/esm/procss_bg.wasm +0 -0
package/package.json
CHANGED
package/src/ast/token/space.rs
CHANGED
|
@@ -39,6 +39,7 @@ impl NeedsWhitespaceStringExt for str {
|
|
|
39
39
|
|| x == '+'
|
|
40
40
|
|| x == '"'
|
|
41
41
|
|| x == '\''
|
|
42
|
+
|| x == '('
|
|
42
43
|
})
|
|
43
44
|
.unwrap_or_default()
|
|
44
45
|
}
|
|
@@ -54,6 +55,7 @@ impl NeedsWhitespaceStringExt for str {
|
|
|
54
55
|
|| x == '_'
|
|
55
56
|
|| x == '%'
|
|
56
57
|
|| x == '+'
|
|
58
|
+
|| x == ')'
|
|
57
59
|
})
|
|
58
60
|
.unwrap_or_default()
|
|
59
61
|
}
|
package/target/cjs/procss.js
CHANGED
|
@@ -4,26 +4,6 @@ let wasm;
|
|
|
4
4
|
const { readFileSync } = require(`fs`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
const heap = new Array(128).fill(undefined);
|
|
8
|
-
|
|
9
|
-
heap.push(undefined, null, true, false);
|
|
10
|
-
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
|
-
let heap_next = heap.length;
|
|
14
|
-
|
|
15
|
-
function dropObject(idx) {
|
|
16
|
-
if (idx < 132) return;
|
|
17
|
-
heap[idx] = heap_next;
|
|
18
|
-
heap_next = idx;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function takeObject(idx) {
|
|
22
|
-
const ret = getObject(idx);
|
|
23
|
-
dropObject(idx);
|
|
24
|
-
return ret;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
7
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
8
|
|
|
29
9
|
cachedTextDecoder.decode();
|
|
@@ -42,6 +22,12 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
22
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
23
|
}
|
|
44
24
|
|
|
25
|
+
const heap = new Array(128).fill(undefined);
|
|
26
|
+
|
|
27
|
+
heap.push(undefined, null, true, false);
|
|
28
|
+
|
|
29
|
+
let heap_next = heap.length;
|
|
30
|
+
|
|
45
31
|
function addHeapObject(obj) {
|
|
46
32
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
33
|
const idx = heap_next;
|
|
@@ -51,6 +37,20 @@ function addHeapObject(obj) {
|
|
|
51
37
|
return idx;
|
|
52
38
|
}
|
|
53
39
|
|
|
40
|
+
function getObject(idx) { return heap[idx]; }
|
|
41
|
+
|
|
42
|
+
function dropObject(idx) {
|
|
43
|
+
if (idx < 132) return;
|
|
44
|
+
heap[idx] = heap_next;
|
|
45
|
+
heap_next = idx;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function takeObject(idx) {
|
|
49
|
+
const ret = getObject(idx);
|
|
50
|
+
dropObject(idx);
|
|
51
|
+
return ret;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -188,6 +188,18 @@ class BuildCss {
|
|
|
188
188
|
}
|
|
189
189
|
module.exports.BuildCss = BuildCss;
|
|
190
190
|
|
|
191
|
+
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
192
|
+
let deferred0_0;
|
|
193
|
+
let deferred0_1;
|
|
194
|
+
try {
|
|
195
|
+
deferred0_0 = arg0;
|
|
196
|
+
deferred0_1 = arg1;
|
|
197
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
198
|
+
} finally {
|
|
199
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
191
203
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
192
204
|
const ret = new Error();
|
|
193
205
|
return addHeapObject(ret);
|
|
@@ -201,33 +213,22 @@ module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
|
201
213
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
202
214
|
};
|
|
203
215
|
|
|
204
|
-
module.exports.
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
try {
|
|
208
|
-
deferred0_0 = arg0;
|
|
209
|
-
deferred0_1 = arg1;
|
|
210
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
211
|
-
} finally {
|
|
212
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
213
|
-
}
|
|
216
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
217
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
218
|
+
return addHeapObject(ret);
|
|
214
219
|
};
|
|
215
220
|
|
|
216
221
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
217
222
|
takeObject(arg0);
|
|
218
223
|
};
|
|
219
224
|
|
|
220
|
-
module.exports.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const len1 = WASM_VECTOR_LEN;
|
|
224
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
225
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
226
|
-
}, arguments) };
|
|
225
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
226
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
227
|
+
};
|
|
227
228
|
|
|
228
|
-
module.exports.
|
|
229
|
-
const ret =
|
|
230
|
-
return
|
|
229
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
230
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
231
|
+
return ret;
|
|
231
232
|
};
|
|
232
233
|
|
|
233
234
|
module.exports.__wbg_new_1b94180eeb48f2a2 = function() {
|
|
@@ -235,20 +236,41 @@ module.exports.__wbg_new_1b94180eeb48f2a2 = function() {
|
|
|
235
236
|
return addHeapObject(ret);
|
|
236
237
|
};
|
|
237
238
|
|
|
238
|
-
module.exports.
|
|
239
|
-
const ret =
|
|
239
|
+
module.exports.__wbg_set_3355b9f2d3092e3b = function(arg0, arg1, arg2) {
|
|
240
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
240
241
|
return addHeapObject(ret);
|
|
241
242
|
};
|
|
242
243
|
|
|
243
|
-
module.exports.
|
|
244
|
-
const ret =
|
|
244
|
+
module.exports.__wbg_new_c728d68b8b34487e = function() {
|
|
245
|
+
const ret = new Object();
|
|
245
246
|
return addHeapObject(ret);
|
|
246
247
|
};
|
|
247
248
|
|
|
248
|
-
module.exports.
|
|
249
|
-
|
|
249
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
250
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
251
|
+
return addHeapObject(ret);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
255
|
+
const ret = String(getObject(arg1));
|
|
256
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
257
|
+
const len1 = WASM_VECTOR_LEN;
|
|
258
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
259
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
250
260
|
};
|
|
251
261
|
|
|
262
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
263
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
module.exports.__wbg_readFileSync_74d9a0fda9d26176 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
267
|
+
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
268
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
269
|
+
const len1 = WASM_VECTOR_LEN;
|
|
270
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
271
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
272
|
+
}, arguments) };
|
|
273
|
+
|
|
252
274
|
const path = require('path').join(__dirname, 'procss_bg.wasm');
|
|
253
275
|
const bytes = require('fs').readFileSync(path);
|
|
254
276
|
|
|
Binary file
|
package/target/esm/procss.js
CHANGED
|
@@ -2,26 +2,6 @@ import { readFileSync } from 'fs';
|
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
5
|
-
const heap = new Array(128).fill(undefined);
|
|
6
|
-
|
|
7
|
-
heap.push(undefined, null, true, false);
|
|
8
|
-
|
|
9
|
-
function getObject(idx) { return heap[idx]; }
|
|
10
|
-
|
|
11
|
-
let heap_next = heap.length;
|
|
12
|
-
|
|
13
|
-
function dropObject(idx) {
|
|
14
|
-
if (idx < 132) return;
|
|
15
|
-
heap[idx] = heap_next;
|
|
16
|
-
heap_next = idx;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function takeObject(idx) {
|
|
20
|
-
const ret = getObject(idx);
|
|
21
|
-
dropObject(idx);
|
|
22
|
-
return ret;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
5
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
26
6
|
|
|
27
7
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -40,6 +20,12 @@ function getStringFromWasm0(ptr, len) {
|
|
|
40
20
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
21
|
}
|
|
42
22
|
|
|
23
|
+
const heap = new Array(128).fill(undefined);
|
|
24
|
+
|
|
25
|
+
heap.push(undefined, null, true, false);
|
|
26
|
+
|
|
27
|
+
let heap_next = heap.length;
|
|
28
|
+
|
|
43
29
|
function addHeapObject(obj) {
|
|
44
30
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
31
|
const idx = heap_next;
|
|
@@ -49,6 +35,20 @@ function addHeapObject(obj) {
|
|
|
49
35
|
return idx;
|
|
50
36
|
}
|
|
51
37
|
|
|
38
|
+
function getObject(idx) { return heap[idx]; }
|
|
39
|
+
|
|
40
|
+
function dropObject(idx) {
|
|
41
|
+
if (idx < 132) return;
|
|
42
|
+
heap[idx] = heap_next;
|
|
43
|
+
heap_next = idx;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function takeObject(idx) {
|
|
47
|
+
const ret = getObject(idx);
|
|
48
|
+
dropObject(idx);
|
|
49
|
+
return ret;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
52
|
let WASM_VECTOR_LEN = 0;
|
|
53
53
|
|
|
54
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -219,17 +219,6 @@ async function __wbg_load(module, imports) {
|
|
|
219
219
|
function __wbg_get_imports() {
|
|
220
220
|
const imports = {};
|
|
221
221
|
imports.wbg = {};
|
|
222
|
-
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
223
|
-
const ret = new Error();
|
|
224
|
-
return addHeapObject(ret);
|
|
225
|
-
};
|
|
226
|
-
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
227
|
-
const ret = getObject(arg1).stack;
|
|
228
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
229
|
-
const len1 = WASM_VECTOR_LEN;
|
|
230
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
231
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
232
|
-
};
|
|
233
222
|
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
234
223
|
let deferred0_0;
|
|
235
224
|
let deferred0_1;
|
|
@@ -241,35 +230,64 @@ function __wbg_get_imports() {
|
|
|
241
230
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
242
231
|
}
|
|
243
232
|
};
|
|
244
|
-
imports.wbg.
|
|
245
|
-
|
|
233
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
234
|
+
const ret = new Error();
|
|
235
|
+
return addHeapObject(ret);
|
|
246
236
|
};
|
|
247
|
-
imports.wbg.
|
|
248
|
-
const ret =
|
|
249
|
-
const ptr1 =
|
|
237
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
238
|
+
const ret = getObject(arg1).stack;
|
|
239
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
240
|
const len1 = WASM_VECTOR_LEN;
|
|
251
241
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
252
242
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
253
|
-
}
|
|
254
|
-
imports.wbg.
|
|
255
|
-
const ret =
|
|
243
|
+
};
|
|
244
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
245
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
256
246
|
return addHeapObject(ret);
|
|
257
247
|
};
|
|
248
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
249
|
+
takeObject(arg0);
|
|
250
|
+
};
|
|
251
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
252
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
253
|
+
};
|
|
254
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
255
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
256
|
+
return ret;
|
|
257
|
+
};
|
|
258
258
|
imports.wbg.__wbg_new_1b94180eeb48f2a2 = function() {
|
|
259
259
|
const ret = new Map();
|
|
260
260
|
return addHeapObject(ret);
|
|
261
261
|
};
|
|
262
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
263
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
264
|
-
return addHeapObject(ret);
|
|
265
|
-
};
|
|
266
262
|
imports.wbg.__wbg_set_3355b9f2d3092e3b = function(arg0, arg1, arg2) {
|
|
267
263
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
268
264
|
return addHeapObject(ret);
|
|
269
265
|
};
|
|
270
|
-
imports.wbg.
|
|
271
|
-
|
|
266
|
+
imports.wbg.__wbg_new_c728d68b8b34487e = function() {
|
|
267
|
+
const ret = new Object();
|
|
268
|
+
return addHeapObject(ret);
|
|
269
|
+
};
|
|
270
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
271
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
272
|
+
return addHeapObject(ret);
|
|
273
|
+
};
|
|
274
|
+
imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
275
|
+
const ret = String(getObject(arg1));
|
|
276
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
277
|
+
const len1 = WASM_VECTOR_LEN;
|
|
278
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
279
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
280
|
+
};
|
|
281
|
+
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
282
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
272
283
|
};
|
|
284
|
+
imports.wbg.__wbg_readFileSync_74d9a0fda9d26176 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
285
|
+
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
286
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
287
|
+
const len1 = WASM_VECTOR_LEN;
|
|
288
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
289
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
290
|
+
}, arguments) };
|
|
273
291
|
|
|
274
292
|
return imports;
|
|
275
293
|
}
|
|
Binary file
|