@html-validate/commitlint-config 3.5.0 → 3.6.0
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/commitlint.js +17842 -16593
- package/dist/formatter.js +6 -0
- package/dist/install.js +6 -1
- package/dist/parser-preset.js +18 -1
- package/package.json +2 -2
package/dist/formatter.js
CHANGED
|
@@ -284,6 +284,12 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
284
284
|
if (env.TERM === "xterm-kitty") {
|
|
285
285
|
return 3;
|
|
286
286
|
}
|
|
287
|
+
if (env.TERM === "xterm-ghostty") {
|
|
288
|
+
return 3;
|
|
289
|
+
}
|
|
290
|
+
if (env.TERM === "wezterm") {
|
|
291
|
+
return 3;
|
|
292
|
+
}
|
|
287
293
|
if ("TERM_PROGRAM" in env) {
|
|
288
294
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
289
295
|
switch (env.TERM_PROGRAM) {
|
package/dist/install.js
CHANGED
|
@@ -127,6 +127,11 @@ var require_vendors = __commonJS({
|
|
|
127
127
|
constant: "CLOUDFLARE_PAGES",
|
|
128
128
|
env: "CF_PAGES"
|
|
129
129
|
},
|
|
130
|
+
{
|
|
131
|
+
name: "Cloudflare Workers",
|
|
132
|
+
constant: "CLOUDFLARE_WORKERS",
|
|
133
|
+
env: "WORKERS_CI"
|
|
134
|
+
},
|
|
130
135
|
{
|
|
131
136
|
name: "Codefresh",
|
|
132
137
|
constant: "CODEFRESH",
|
|
@@ -421,7 +426,7 @@ var require_ci_info = __commonJS({
|
|
|
421
426
|
exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
422
427
|
(env.BUILD_ID || // Jenkins, Cloudbees
|
|
423
428
|
env.BUILD_NUMBER || // Jenkins, TeamCity
|
|
424
|
-
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
429
|
+
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
|
|
425
430
|
env.CI_APP_ID || // Appflow
|
|
426
431
|
env.CI_BUILD_ID || // Appflow
|
|
427
432
|
env.CI_BUILD_NUMBER || // Appflow
|
package/dist/parser-preset.js
CHANGED
|
@@ -285,12 +285,29 @@ import { resolve } from "path";
|
|
|
285
285
|
import { fileURLToPath } from "url";
|
|
286
286
|
|
|
287
287
|
// node_modules/conventional-changelog-conventionalcommits/src/utils.js
|
|
288
|
+
function hasIntersection(a, b) {
|
|
289
|
+
if (!a || !b) {
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
let listA = a;
|
|
293
|
+
let listB = b;
|
|
294
|
+
if (!Array.isArray(listA)) {
|
|
295
|
+
listA = [listA];
|
|
296
|
+
}
|
|
297
|
+
if (!Array.isArray(listB)) {
|
|
298
|
+
listB = [listB];
|
|
299
|
+
}
|
|
300
|
+
return listA.some((item) => listB.includes(item));
|
|
301
|
+
}
|
|
288
302
|
function matchScope(config = {}, commit) {
|
|
289
303
|
const {
|
|
290
304
|
scope: targetScope,
|
|
291
305
|
scopeOnly = false
|
|
292
306
|
} = config;
|
|
293
|
-
const includesScope =
|
|
307
|
+
const includesScope = hasIntersection(
|
|
308
|
+
commit.scope?.split(","),
|
|
309
|
+
targetScope
|
|
310
|
+
);
|
|
294
311
|
return !targetScope || scopeOnly && includesScope || !scopeOnly && (!commit.scope || includesScope);
|
|
295
312
|
}
|
|
296
313
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@html-validate/commitlint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Commitlint sharable config used by the various HTML-validate packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commitlint"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"postinstall": "node bin/install.js"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": ">=
|
|
47
|
+
"node": ">= 20"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|