@jesscss/less-parser 2.0.0-alpha.10 → 2.0.0-alpha.11
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/lib/grammar.d.ts.map +1 -1
- package/lib/grammar2.cjs +84240 -83455
- package/lib/grammar2.js +84240 -83455
- package/lib/index.cjs +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/parse-error.d.ts.map +1 -1
- package/package.json +10 -7
package/lib/index.cjs
CHANGED
|
@@ -38,8 +38,8 @@ function parse(input) {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Parse Less for the product plugin path. Parser packages own recognition facts;
|
|
41
|
-
* this boundary attaches file/source context once and returns
|
|
42
|
-
*
|
|
41
|
+
* this boundary attaches file/source context once and returns normalized
|
|
42
|
+
* diagnostics for compiler and CLI consumers to render.
|
|
43
43
|
*/
|
|
44
44
|
function safeParse(filePath, input) {
|
|
45
45
|
try {
|
package/lib/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { LessBareVariableInterpolationError, LessDynamicCharsetError, LessInline
|
|
|
5
5
|
export declare function parse(input: string): Stylesheet;
|
|
6
6
|
/**
|
|
7
7
|
* Parse Less for the product plugin path. Parser packages own recognition facts;
|
|
8
|
-
* this boundary attaches file/source context once and returns
|
|
9
|
-
*
|
|
8
|
+
* this boundary attaches file/source context once and returns normalized
|
|
9
|
+
* diagnostics for compiler and CLI consumers to render.
|
|
10
10
|
*/
|
|
11
11
|
export declare function safeParse(filePath: string, input: string): ISafeParseResult;
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -37,8 +37,8 @@ function parse(input) {
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Parse Less for the product plugin path. Parser packages own recognition facts;
|
|
40
|
-
* this boundary attaches file/source context once and returns
|
|
41
|
-
*
|
|
40
|
+
* this boundary attaches file/source context once and returns normalized
|
|
41
|
+
* diagnostics for compiler and CLI consumers to render.
|
|
42
42
|
*/
|
|
43
43
|
function safeParse(filePath, input) {
|
|
44
44
|
try {
|
package/lib/parse-error.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-error.d.ts","sourceRoot":"","sources":["../src/parse-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-error.d.ts","sourceRoot":"","sources":["../src/parse-error.ts"],"names":[],"mappings":"AA0BA,6DAA6D;AAC7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C,QAAQ,CAAC,IAAI,EAAG,oBAAoB,CAAU;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEtB,YACE,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAO,EASlE;CACF;AAED,+DAA+D;AAC/D,qBAAa,uBAAwB,SAAQ,WAAW;IACtD,QAAQ,CAAC,IAAI,EAAG,uBAAuB,CAAU;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,+DAA+D;IAC9E,QAAQ,CAAC,GAAG,0DAAwD;IAEpE,YAAY,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAK5C;CACF;AAED,yFAAyF;AACzF,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,QAAQ,CAAC,IAAI,EAAG,qCAAqC,CAAU;IAC/D,Q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,EAK5C;CACF;AAED,wFAAwF;AACxF,qBAAa,kCAAmC,SAAQ,WAAW;IACjE,QAAQ,CAAC,IAAI,EAAG,mCAAmC,CAAU;IAC7D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,iGAAiG;IAChH,QAAQ,CAAC,GAAG,8DAA8D;IAE1E,YAAY,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAK5C;CACF"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.0-alpha.
|
|
7
|
+
"version": "2.0.0-alpha.11",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": "^20.19.0 || >=22.12.0"
|
|
10
10
|
},
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"known-css-properties": "~0.37.0",
|
|
37
|
-
"@jesscss/css-parser": "2.0.0-alpha.
|
|
37
|
+
"@jesscss/css-parser": "2.0.0-alpha.11"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"parseman": "^0.41.0",
|
|
41
|
-
"@jesscss/core": "2.0.0-alpha.
|
|
41
|
+
"@jesscss/core": "2.0.0-alpha.11"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@jesscss/core": {
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
"@types/node": "^18.19.31",
|
|
50
50
|
"less": "^4.6.3",
|
|
51
51
|
"parseman": "^0.41.0",
|
|
52
|
+
"postcss-less": "~6.0.0",
|
|
52
53
|
"tsx": "~4.21.0",
|
|
53
|
-
"@jesscss/
|
|
54
|
-
"@jesscss/
|
|
55
|
-
"@jesscss/shared": "
|
|
54
|
+
"@jesscss/core": "2.0.0-alpha.11",
|
|
55
|
+
"@jesscss/shared": "2.0.0-alpha.1",
|
|
56
|
+
"@jesscss/parser-shared": "0.0.0"
|
|
56
57
|
},
|
|
57
58
|
"author": "Matthew Dean <matthew-dean@users.noreply.github.com>",
|
|
58
59
|
"license": "MIT",
|
|
@@ -69,6 +70,8 @@
|
|
|
69
70
|
"test": "cross-env TEST=true vitest --watch=false",
|
|
70
71
|
"test:coverage": "cross-env TEST=true vitest --coverage",
|
|
71
72
|
"lint:fix": "eslint --fix '**/*.{js,ts}'",
|
|
72
|
-
"lint": "eslint '**/*.{js,ts}'"
|
|
73
|
+
"lint": "eslint '**/*.{js,ts}'",
|
|
74
|
+
"oracle:postcss-less": "node test/postcss-less-oracle.mjs",
|
|
75
|
+
"bench:postcss-less": "node test/postcss-less-oracle.mjs --bench"
|
|
73
76
|
}
|
|
74
77
|
}
|