@bamboocss/generator 1.42.0 → 1.43.1
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/dist/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -4198,7 +4198,8 @@ var Generator = class extends _bamboocss_core.Context {
|
|
|
4198
4198
|
_bamboocss_logger.logger.warn("strict-values", message);
|
|
4199
4199
|
};
|
|
4200
4200
|
assertNoUnresolvedTokens = () => {
|
|
4201
|
-
|
|
4201
|
+
const severity = this.utility.unresolvedToken;
|
|
4202
|
+
if (severity.token !== "error" && severity.grammar !== "error") return;
|
|
4202
4203
|
const found = new Map(this.utility.unresolvedTokens);
|
|
4203
4204
|
for (const atom of this.decoder.atomic) {
|
|
4204
4205
|
const { prop, value } = atom.entry;
|
|
@@ -4208,6 +4209,7 @@ var Generator = class extends _bamboocss_core.Context {
|
|
|
4208
4209
|
const bare = this.utility.bareTokenPath(key, value);
|
|
4209
4210
|
found.set(`${key}:${bare}`, this.utility.unresolvedTokenRef(key, bare));
|
|
4210
4211
|
}
|
|
4212
|
+
for (const [id, ref] of found) if (severity[ref.kind] !== "error") found.delete(id);
|
|
4211
4213
|
if (!found.size) return;
|
|
4212
4214
|
const detail = (0, _bamboocss_shared.truncateList)(Array.from(found.values(), (ref) => `- ${this.utility.explainUnresolvedToken(ref)}`), {
|
|
4213
4215
|
limit: 25,
|
package/dist/index.mjs
CHANGED
|
@@ -4172,7 +4172,8 @@ var Generator = class extends Context {
|
|
|
4172
4172
|
logger.warn("strict-values", message);
|
|
4173
4173
|
};
|
|
4174
4174
|
assertNoUnresolvedTokens = () => {
|
|
4175
|
-
|
|
4175
|
+
const severity = this.utility.unresolvedToken;
|
|
4176
|
+
if (severity.token !== "error" && severity.grammar !== "error") return;
|
|
4176
4177
|
const found = new Map(this.utility.unresolvedTokens);
|
|
4177
4178
|
for (const atom of this.decoder.atomic) {
|
|
4178
4179
|
const { prop, value } = atom.entry;
|
|
@@ -4182,6 +4183,7 @@ var Generator = class extends Context {
|
|
|
4182
4183
|
const bare = this.utility.bareTokenPath(key, value);
|
|
4183
4184
|
found.set(`${key}:${bare}`, this.utility.unresolvedTokenRef(key, bare));
|
|
4184
4185
|
}
|
|
4186
|
+
for (const [id, ref] of found) if (severity[ref.kind] !== "error") found.delete(id);
|
|
4185
4187
|
if (!found.size) return;
|
|
4186
4188
|
const detail = truncateList(Array.from(found.values(), (ref) => `- ${this.utility.explainUnresolvedToken(ref)}`), {
|
|
4187
4189
|
limit: 25,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.1",
|
|
4
4
|
"description": "The css generator for css bamboo",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"pluralize": "8.0.0",
|
|
39
39
|
"postcss": "8.5.26",
|
|
40
40
|
"ts-pattern": "5.9.0",
|
|
41
|
-
"@bamboocss/core": "1.
|
|
42
|
-
"@bamboocss/is-valid-prop": "^1.
|
|
43
|
-
"@bamboocss/logger": "1.
|
|
44
|
-
"@bamboocss/
|
|
45
|
-
"@bamboocss/
|
|
46
|
-
"@bamboocss/types": "1.
|
|
41
|
+
"@bamboocss/core": "1.43.1",
|
|
42
|
+
"@bamboocss/is-valid-prop": "^1.43.1",
|
|
43
|
+
"@bamboocss/logger": "1.43.1",
|
|
44
|
+
"@bamboocss/token-dictionary": "1.43.1",
|
|
45
|
+
"@bamboocss/shared": "1.43.1",
|
|
46
|
+
"@bamboocss/types": "1.43.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/pluralize": "0.0.33"
|