@jsenv/core 29.9.1 → 29.9.2

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.
Files changed (2) hide show
  1. package/dist/main.js +14 -7
  2. package/package.json +9 -9
package/dist/main.js CHANGED
@@ -2367,7 +2367,7 @@ const error = (...args) => console.error(...args);
2367
2367
  const errorDisabled = () => {};
2368
2368
 
2369
2369
  // From: https://github.com/sindresorhus/has-flag/blob/main/index.js
2370
- function hasFlag(flag, argv = process$1.argv) {
2370
+ function hasFlag(flag, argv = globalThis.Deno?.args ?? process$1.argv) {
2371
2371
  const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
2372
2372
  const position = argv.indexOf(prefix + flag);
2373
2373
  const terminatorPosition = argv.indexOf('--');
@@ -2424,6 +2424,12 @@ function _supportsColor(haveStream, {
2424
2424
  return 2;
2425
2425
  }
2426
2426
  }
2427
+
2428
+ // Check for Azure DevOps pipelines.
2429
+ // Has to be above the `!streamIsTTY` check.
2430
+ if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
2431
+ return 1;
2432
+ }
2427
2433
  if (haveStream && !streamIsTTY && forceColor === undefined) {
2428
2434
  return 0;
2429
2435
  }
@@ -2441,7 +2447,10 @@ function _supportsColor(haveStream, {
2441
2447
  return 1;
2442
2448
  }
2443
2449
  if ('CI' in env) {
2444
- if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
2450
+ if ('GITHUB_ACTIONS' in env) {
2451
+ return 3;
2452
+ }
2453
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
2445
2454
  return 1;
2446
2455
  }
2447
2456
  return min;
@@ -2449,14 +2458,12 @@ function _supportsColor(haveStream, {
2449
2458
  if ('TEAMCITY_VERSION' in env) {
2450
2459
  return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2451
2460
  }
2452
-
2453
- // Check for Azure DevOps pipelines
2454
- if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
2455
- return 1;
2456
- }
2457
2461
  if (env.COLORTERM === 'truecolor') {
2458
2462
  return 3;
2459
2463
  }
2464
+ if (env.TERM === 'xterm-kitty') {
2465
+ return 3;
2466
+ }
2460
2467
  if ('TERM_PROGRAM' in env) {
2461
2468
  const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
2462
2469
  switch (env.TERM_PROGRAM) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "29.9.1",
3
+ "version": "29.9.2",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -67,15 +67,15 @@
67
67
  "@c88/v8-coverage": "0.1.1",
68
68
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
69
69
  "@jsenv/abort": "4.2.4",
70
- "@jsenv/ast": "1.4.7",
70
+ "@jsenv/ast": "1.4.8",
71
71
  "@jsenv/babel-plugins": "1.1.0",
72
72
  "@jsenv/filesystem": "4.1.6",
73
73
  "@jsenv/importmap": "1.2.1",
74
74
  "@jsenv/integrity": "0.0.1",
75
- "@jsenv/log": "3.3.1",
75
+ "@jsenv/log": "3.3.2",
76
76
  "@jsenv/node-esm-resolution": "1.0.1",
77
- "@jsenv/server": "14.1.10",
78
- "@jsenv/sourcemap": "1.0.7",
77
+ "@jsenv/server": "14.1.11",
78
+ "@jsenv/sourcemap": "1.0.8",
79
79
  "@jsenv/uneval": "1.6.0",
80
80
  "@jsenv/url-meta": "7.0.0",
81
81
  "@jsenv/urls": "1.2.8",
@@ -90,10 +90,10 @@
90
90
  "istanbul-reports": "3.1.5",
91
91
  "launch-editor": "2.6.0",
92
92
  "pidtree": "0.6.0",
93
- "rollup": "3.5.0",
93
+ "rollup": "3.7.4",
94
94
  "string-width": "5.1.2",
95
95
  "strip-ansi": "7.0.1",
96
- "terser": "5.16.0",
96
+ "terser": "5.16.1",
97
97
  "v8-to-istanbul": "9.0.1",
98
98
  "wrap-ansi": "8.0.1"
99
99
  },
@@ -106,11 +106,11 @@
106
106
  "@jsenv/https-local": "3.0.1",
107
107
  "@jsenv/package-workspace": "0.5.1",
108
108
  "@jsenv/performance-impact": "3.0.2",
109
- "eslint": "8.28.0",
109
+ "eslint": "8.29.0",
110
110
  "eslint-plugin-html": "7.1.0",
111
111
  "eslint-plugin-import": "2.26.0",
112
112
  "eslint-plugin-react": "7.31.11",
113
113
  "playwright": "1.28.1",
114
- "prettier": "2.8.0"
114
+ "prettier": "2.8.1"
115
115
  }
116
116
  }