@prospective.co/procss 0.1.14 → 0.1.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/src/ast/token/space.rs +18 -14
- package/target/cjs/procss.js +1 -1
- package/target/cjs/procss_bg.wasm +0 -0
- package/target/esm/procss.js +1 -1
- package/target/esm/procss_bg.wasm +0 -0
package/package.json
CHANGED
package/src/ast/token/space.rs
CHANGED
|
@@ -31,14 +31,30 @@ impl NeedsWhitespaceStringExt for str {
|
|
|
31
31
|
fn needs_pre_ws(&self) -> bool {
|
|
32
32
|
self.chars()
|
|
33
33
|
.next()
|
|
34
|
-
.map(|x|
|
|
34
|
+
.map(|x| {
|
|
35
|
+
x.is_ascii_alphanumeric()
|
|
36
|
+
|| x == '-'
|
|
37
|
+
|| x == '_'
|
|
38
|
+
|| x == '%'
|
|
39
|
+
|| x == '+'
|
|
40
|
+
|| x == '"'
|
|
41
|
+
|| x == '\''
|
|
42
|
+
})
|
|
35
43
|
.unwrap_or_default()
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
fn needs_post_ws(&self) -> bool {
|
|
39
47
|
self.chars()
|
|
40
48
|
.last()
|
|
41
|
-
.map(|x|
|
|
49
|
+
.map(|x| {
|
|
50
|
+
x.is_ascii_alphanumeric()
|
|
51
|
+
|| x == '"'
|
|
52
|
+
|| x == '\''
|
|
53
|
+
|| x == '-'
|
|
54
|
+
|| x == '_'
|
|
55
|
+
|| x == '%'
|
|
56
|
+
|| x == '+'
|
|
57
|
+
})
|
|
42
58
|
.unwrap_or_default()
|
|
43
59
|
}
|
|
44
60
|
}
|
|
@@ -57,18 +73,6 @@ pub fn trim_whitespace(s: &str, f: &mut std::fmt::Formatter<'_>) {
|
|
|
57
73
|
});
|
|
58
74
|
}
|
|
59
75
|
|
|
60
|
-
// pub fn trim_whitespace(s: &str, f: &mut std::fmt::Formatter<'_>) {
|
|
61
|
-
// let mut flag = false;
|
|
62
|
-
// s.split_whitespace().for_each(|w| {
|
|
63
|
-
// if flag {
|
|
64
|
-
// write!(f, " ").unwrap();
|
|
65
|
-
// }
|
|
66
|
-
|
|
67
|
-
// flag = flag || !w.is_empty();
|
|
68
|
-
// write!(f, "{}", w).unwrap();
|
|
69
|
-
// });
|
|
70
|
-
// }
|
|
71
|
-
|
|
72
76
|
fn parse_comment<'a, E>(input: &'a str) -> IResult<&'a str, (), E>
|
|
73
77
|
where
|
|
74
78
|
E: ParseError<&'a str>,
|
package/target/cjs/procss.js
CHANGED
|
@@ -263,7 +263,7 @@ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
|
263
263
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
-
module.exports.
|
|
266
|
+
module.exports.__wbg_readFileSync_8fc702e6693b9168 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
267
267
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
268
268
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
269
269
|
const len1 = WASM_VECTOR_LEN;
|
|
Binary file
|
package/target/esm/procss.js
CHANGED
|
@@ -281,7 +281,7 @@ function __wbg_get_imports() {
|
|
|
281
281
|
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
282
282
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
283
283
|
};
|
|
284
|
-
imports.wbg.
|
|
284
|
+
imports.wbg.__wbg_readFileSync_8fc702e6693b9168 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
285
285
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
286
286
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
287
287
|
const len1 = WASM_VECTOR_LEN;
|
|
Binary file
|