@saasmakers/eslint 0.2.11 → 1.0.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.
Files changed (35) hide show
  1. package/dist/chunks/formatters.cjs +2 -2
  2. package/dist/chunks/formatters.mjs +2 -2
  3. package/dist/chunks/import.cjs +2 -2
  4. package/dist/chunks/import.mjs +2 -2
  5. package/dist/chunks/index4.cjs +4 -4
  6. package/dist/chunks/index4.mjs +4 -4
  7. package/dist/chunks/jsdoc.cjs +4 -4
  8. package/dist/chunks/jsdoc.mjs +4 -4
  9. package/dist/chunks/stylistic.cjs +4 -4
  10. package/dist/chunks/stylistic.mjs +4 -4
  11. package/dist/chunks/typescript.cjs +194 -194
  12. package/dist/chunks/typescript.mjs +5 -5
  13. package/dist/chunks/unicorn.cjs +1 -1
  14. package/dist/chunks/unicorn.mjs +1 -1
  15. package/dist/chunks/vue.cjs +7 -7
  16. package/dist/chunks/vue.mjs +5 -5
  17. package/dist/eslint.config.cjs +2 -2
  18. package/dist/eslint.config.d.cts +27 -19
  19. package/dist/eslint.config.d.mts +27 -19
  20. package/dist/eslint.config.d.ts +27 -19
  21. package/dist/eslint.config.mjs +2 -2
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.d.cts +2 -6
  24. package/dist/index.d.mts +2 -6
  25. package/dist/index.d.ts +2 -6
  26. package/dist/index.mjs +1 -1
  27. package/dist/shared/{eslint.CMfxPSSy.cjs → eslint.7dipMixF.cjs} +2 -2
  28. package/dist/shared/{eslint.DV_fpPxQ.mjs → eslint.B6FFUbNC.mjs} +39 -30
  29. package/dist/shared/{eslint.BFtsK_yJ.mjs → eslint.BPSuZuNl.mjs} +7236 -7435
  30. package/dist/shared/{eslint.Bf7aat-e.mjs → eslint.BXzpdiiq.mjs} +2 -2
  31. package/dist/shared/{eslint.B3ywQ3NK.mjs → eslint.C6EaTeQZ.mjs} +328 -121
  32. package/dist/shared/{eslint.CyJA7jO6.cjs → eslint.DP_6nQqR.cjs} +39 -30
  33. package/dist/shared/{eslint.Dhg0jKDi.cjs → eslint.Dxl4X46J.cjs} +327 -127
  34. package/dist/shared/{eslint.CDkoKQAL.cjs → eslint.oAo1zUPJ.cjs} +7246 -7438
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as getDefaultExportFromCjs } from './eslint.B3ywQ3NK.mjs';
2
- import { a as requireSemver, r as requireSrc } from './eslint.DV_fpPxQ.mjs';
1
+ import { a as getDefaultExportFromCjs } from './eslint.C6EaTeQZ.mjs';
2
+ import { a as requireSemver, r as requireSrc } from './eslint.B6FFUbNC.mjs';
3
3
 
4
4
  var semverExports = requireSemver();
5
5
  const semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
@@ -4104,9 +4104,7 @@ function requireGetParserServices () {
4104
4104
  const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = "You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.";
4105
4105
  const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';
4106
4106
  function getParserServices$1(context, allowWithoutFullTypeInformation = false) {
4107
- const parser =
4108
- // eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8
4109
- context.parserPath || context.languageOptions.parser?.meta?.name;
4107
+ const parser = context.parserPath || context.languageOptions.parser?.meta?.name;
4110
4108
  // This check is unnecessary if the user is using the latest version of our parser.
4111
4109
  //
4112
4110
  // However the world isn't perfect:
@@ -4534,100 +4532,309 @@ function requireEslintVisitorKeys () {
4534
4532
  * @type {VisitorKeys}
4535
4533
  */
4536
4534
  const KEYS = {
4537
- ArrayExpression: ["elements"],
4538
- ArrayPattern: ["elements"],
4539
- ArrowFunctionExpression: ["params", "body"],
4540
- AssignmentExpression: ["left", "right"],
4541
- AssignmentPattern: ["left", "right"],
4542
- AwaitExpression: ["argument"],
4543
- BinaryExpression: ["left", "right"],
4544
- BlockStatement: ["body"],
4545
- BreakStatement: ["label"],
4546
- CallExpression: ["callee", "arguments"],
4547
- CatchClause: ["param", "body"],
4548
- ChainExpression: ["expression"],
4549
- ClassBody: ["body"],
4550
- ClassDeclaration: ["id", "superClass", "body"],
4551
- ClassExpression: ["id", "superClass", "body"],
4552
- ConditionalExpression: ["test", "consequent", "alternate"],
4553
- ContinueStatement: ["label"],
4554
- DebuggerStatement: [],
4555
- DoWhileStatement: ["body", "test"],
4556
- EmptyStatement: [],
4557
- ExperimentalRestProperty: ["argument"],
4558
- ExperimentalSpreadProperty: ["argument"],
4559
- ExportAllDeclaration: ["exported", "source", "attributes"],
4560
- ExportDefaultDeclaration: ["declaration"],
4561
- ExportNamedDeclaration: [
4562
- "declaration",
4563
- "specifiers",
4564
- "source",
4565
- "attributes",
4566
- ],
4567
- ExportSpecifier: ["local", "exported"],
4568
- ExpressionStatement: ["expression"],
4569
- ForInStatement: ["left", "right", "body"],
4570
- ForOfStatement: ["left", "right", "body"],
4571
- ForStatement: ["init", "test", "update", "body"],
4572
- FunctionDeclaration: ["id", "params", "body"],
4573
- FunctionExpression: ["id", "params", "body"],
4574
- Identifier: [],
4575
- IfStatement: ["test", "consequent", "alternate"],
4576
- ImportAttribute: ["key", "value"],
4577
- ImportDeclaration: ["specifiers", "source", "attributes"],
4578
- ImportDefaultSpecifier: ["local"],
4579
- ImportExpression: ["source", "options"],
4580
- ImportNamespaceSpecifier: ["local"],
4581
- ImportSpecifier: ["imported", "local"],
4582
- JSXAttribute: ["name", "value"],
4583
- JSXClosingElement: ["name"],
4584
- JSXClosingFragment: [],
4585
- JSXElement: ["openingElement", "children", "closingElement"],
4586
- JSXEmptyExpression: [],
4587
- JSXExpressionContainer: ["expression"],
4588
- JSXFragment: ["openingFragment", "children", "closingFragment"],
4589
- JSXIdentifier: [],
4590
- JSXMemberExpression: ["object", "property"],
4591
- JSXNamespacedName: ["namespace", "name"],
4592
- JSXOpeningElement: ["name", "attributes"],
4593
- JSXOpeningFragment: [],
4594
- JSXSpreadAttribute: ["argument"],
4595
- JSXSpreadChild: ["expression"],
4596
- JSXText: [],
4597
- LabeledStatement: ["label", "body"],
4598
- Literal: [],
4599
- LogicalExpression: ["left", "right"],
4600
- MemberExpression: ["object", "property"],
4601
- MetaProperty: ["meta", "property"],
4602
- MethodDefinition: ["key", "value"],
4603
- NewExpression: ["callee", "arguments"],
4604
- ObjectExpression: ["properties"],
4605
- ObjectPattern: ["properties"],
4606
- PrivateIdentifier: [],
4607
- Program: ["body"],
4608
- Property: ["key", "value"],
4609
- PropertyDefinition: ["key", "value"],
4610
- RestElement: ["argument"],
4611
- ReturnStatement: ["argument"],
4612
- SequenceExpression: ["expressions"],
4613
- SpreadElement: ["argument"],
4614
- StaticBlock: ["body"],
4615
- Super: [],
4616
- SwitchCase: ["test", "consequent"],
4617
- SwitchStatement: ["discriminant", "cases"],
4618
- TaggedTemplateExpression: ["tag", "quasi"],
4619
- TemplateElement: [],
4620
- TemplateLiteral: ["quasis", "expressions"],
4621
- ThisExpression: [],
4622
- ThrowStatement: ["argument"],
4623
- TryStatement: ["block", "handler", "finalizer"],
4624
- UnaryExpression: ["argument"],
4625
- UpdateExpression: ["argument"],
4626
- VariableDeclaration: ["declarations"],
4627
- VariableDeclarator: ["id", "init"],
4628
- WhileStatement: ["test", "body"],
4629
- WithStatement: ["object", "body"],
4630
- YieldExpression: ["argument"],
4535
+ ArrayExpression: [
4536
+ "elements"
4537
+ ],
4538
+ ArrayPattern: [
4539
+ "elements"
4540
+ ],
4541
+ ArrowFunctionExpression: [
4542
+ "params",
4543
+ "body"
4544
+ ],
4545
+ AssignmentExpression: [
4546
+ "left",
4547
+ "right"
4548
+ ],
4549
+ AssignmentPattern: [
4550
+ "left",
4551
+ "right"
4552
+ ],
4553
+ AwaitExpression: [
4554
+ "argument"
4555
+ ],
4556
+ BinaryExpression: [
4557
+ "left",
4558
+ "right"
4559
+ ],
4560
+ BlockStatement: [
4561
+ "body"
4562
+ ],
4563
+ BreakStatement: [
4564
+ "label"
4565
+ ],
4566
+ CallExpression: [
4567
+ "callee",
4568
+ "arguments"
4569
+ ],
4570
+ CatchClause: [
4571
+ "param",
4572
+ "body"
4573
+ ],
4574
+ ChainExpression: [
4575
+ "expression"
4576
+ ],
4577
+ ClassBody: [
4578
+ "body"
4579
+ ],
4580
+ ClassDeclaration: [
4581
+ "id",
4582
+ "superClass",
4583
+ "body"
4584
+ ],
4585
+ ClassExpression: [
4586
+ "id",
4587
+ "superClass",
4588
+ "body"
4589
+ ],
4590
+ ConditionalExpression: [
4591
+ "test",
4592
+ "consequent",
4593
+ "alternate"
4594
+ ],
4595
+ ContinueStatement: [
4596
+ "label"
4597
+ ],
4598
+ DebuggerStatement: [],
4599
+ DoWhileStatement: [
4600
+ "body",
4601
+ "test"
4602
+ ],
4603
+ EmptyStatement: [],
4604
+ ExperimentalRestProperty: [
4605
+ "argument"
4606
+ ],
4607
+ ExperimentalSpreadProperty: [
4608
+ "argument"
4609
+ ],
4610
+ ExportAllDeclaration: [
4611
+ "exported",
4612
+ "source",
4613
+ "attributes"
4614
+ ],
4615
+ ExportDefaultDeclaration: [
4616
+ "declaration"
4617
+ ],
4618
+ ExportNamedDeclaration: [
4619
+ "declaration",
4620
+ "specifiers",
4621
+ "source",
4622
+ "attributes"
4623
+ ],
4624
+ ExportSpecifier: [
4625
+ "local",
4626
+ "exported"
4627
+ ],
4628
+ ExpressionStatement: [
4629
+ "expression"
4630
+ ],
4631
+ ForInStatement: [
4632
+ "left",
4633
+ "right",
4634
+ "body"
4635
+ ],
4636
+ ForOfStatement: [
4637
+ "left",
4638
+ "right",
4639
+ "body"
4640
+ ],
4641
+ ForStatement: [
4642
+ "init",
4643
+ "test",
4644
+ "update",
4645
+ "body"
4646
+ ],
4647
+ FunctionDeclaration: [
4648
+ "id",
4649
+ "params",
4650
+ "body"
4651
+ ],
4652
+ FunctionExpression: [
4653
+ "id",
4654
+ "params",
4655
+ "body"
4656
+ ],
4657
+ Identifier: [],
4658
+ IfStatement: [
4659
+ "test",
4660
+ "consequent",
4661
+ "alternate"
4662
+ ],
4663
+ ImportAttribute: [
4664
+ "key",
4665
+ "value"
4666
+ ],
4667
+ ImportDeclaration: [
4668
+ "specifiers",
4669
+ "source",
4670
+ "attributes"
4671
+ ],
4672
+ ImportDefaultSpecifier: [
4673
+ "local"
4674
+ ],
4675
+ ImportExpression: [
4676
+ "source",
4677
+ "options"
4678
+ ],
4679
+ ImportNamespaceSpecifier: [
4680
+ "local"
4681
+ ],
4682
+ ImportSpecifier: [
4683
+ "imported",
4684
+ "local"
4685
+ ],
4686
+ JSXAttribute: [
4687
+ "name",
4688
+ "value"
4689
+ ],
4690
+ JSXClosingElement: [
4691
+ "name"
4692
+ ],
4693
+ JSXClosingFragment: [],
4694
+ JSXElement: [
4695
+ "openingElement",
4696
+ "children",
4697
+ "closingElement"
4698
+ ],
4699
+ JSXEmptyExpression: [],
4700
+ JSXExpressionContainer: [
4701
+ "expression"
4702
+ ],
4703
+ JSXFragment: [
4704
+ "openingFragment",
4705
+ "children",
4706
+ "closingFragment"
4707
+ ],
4708
+ JSXIdentifier: [],
4709
+ JSXMemberExpression: [
4710
+ "object",
4711
+ "property"
4712
+ ],
4713
+ JSXNamespacedName: [
4714
+ "namespace",
4715
+ "name"
4716
+ ],
4717
+ JSXOpeningElement: [
4718
+ "name",
4719
+ "attributes"
4720
+ ],
4721
+ JSXOpeningFragment: [],
4722
+ JSXSpreadAttribute: [
4723
+ "argument"
4724
+ ],
4725
+ JSXSpreadChild: [
4726
+ "expression"
4727
+ ],
4728
+ JSXText: [],
4729
+ LabeledStatement: [
4730
+ "label",
4731
+ "body"
4732
+ ],
4733
+ Literal: [],
4734
+ LogicalExpression: [
4735
+ "left",
4736
+ "right"
4737
+ ],
4738
+ MemberExpression: [
4739
+ "object",
4740
+ "property"
4741
+ ],
4742
+ MetaProperty: [
4743
+ "meta",
4744
+ "property"
4745
+ ],
4746
+ MethodDefinition: [
4747
+ "key",
4748
+ "value"
4749
+ ],
4750
+ NewExpression: [
4751
+ "callee",
4752
+ "arguments"
4753
+ ],
4754
+ ObjectExpression: [
4755
+ "properties"
4756
+ ],
4757
+ ObjectPattern: [
4758
+ "properties"
4759
+ ],
4760
+ PrivateIdentifier: [],
4761
+ Program: [
4762
+ "body"
4763
+ ],
4764
+ Property: [
4765
+ "key",
4766
+ "value"
4767
+ ],
4768
+ PropertyDefinition: [
4769
+ "key",
4770
+ "value"
4771
+ ],
4772
+ RestElement: [
4773
+ "argument"
4774
+ ],
4775
+ ReturnStatement: [
4776
+ "argument"
4777
+ ],
4778
+ SequenceExpression: [
4779
+ "expressions"
4780
+ ],
4781
+ SpreadElement: [
4782
+ "argument"
4783
+ ],
4784
+ StaticBlock: [
4785
+ "body"
4786
+ ],
4787
+ Super: [],
4788
+ SwitchCase: [
4789
+ "test",
4790
+ "consequent"
4791
+ ],
4792
+ SwitchStatement: [
4793
+ "discriminant",
4794
+ "cases"
4795
+ ],
4796
+ TaggedTemplateExpression: [
4797
+ "tag",
4798
+ "quasi"
4799
+ ],
4800
+ TemplateElement: [],
4801
+ TemplateLiteral: [
4802
+ "quasis",
4803
+ "expressions"
4804
+ ],
4805
+ ThisExpression: [],
4806
+ ThrowStatement: [
4807
+ "argument"
4808
+ ],
4809
+ TryStatement: [
4810
+ "block",
4811
+ "handler",
4812
+ "finalizer"
4813
+ ],
4814
+ UnaryExpression: [
4815
+ "argument"
4816
+ ],
4817
+ UpdateExpression: [
4818
+ "argument"
4819
+ ],
4820
+ VariableDeclaration: [
4821
+ "declarations"
4822
+ ],
4823
+ VariableDeclarator: [
4824
+ "id",
4825
+ "init"
4826
+ ],
4827
+ WhileStatement: [
4828
+ "test",
4829
+ "body"
4830
+ ],
4831
+ WithStatement: [
4832
+ "object",
4833
+ "body"
4834
+ ],
4835
+ YieldExpression: [
4836
+ "argument"
4837
+ ]
4631
4838
  };
4632
4839
 
4633
4840
  // Types.
@@ -4635,7 +4842,7 @@ function requireEslintVisitorKeys () {
4635
4842
 
4636
4843
  // Freeze the keys.
4637
4844
  for (const type of NODE_TYPES) {
4638
- Object.freeze(KEYS[type]);
4845
+ Object.freeze(KEYS[type]);
4639
4846
  }
4640
4847
  Object.freeze(KEYS);
4641
4848
 
@@ -4650,9 +4857,9 @@ function requireEslintVisitorKeys () {
4650
4857
 
4651
4858
  // List to ignore keys.
4652
4859
  const KEY_BLACKLIST = new Set([
4653
- "parent",
4654
- "leadingComments",
4655
- "trailingComments",
4860
+ "parent",
4861
+ "leadingComments",
4862
+ "trailingComments"
4656
4863
  ]);
4657
4864
 
4658
4865
  /**
@@ -4661,9 +4868,10 @@ function requireEslintVisitorKeys () {
4661
4868
  * @returns {boolean} `true` if the key should be used.
4662
4869
  */
4663
4870
  function filterKey(key) {
4664
- return !KEY_BLACKLIST.has(key) && key[0] !== "_";
4871
+ return !KEY_BLACKLIST.has(key) && key[0] !== "_";
4665
4872
  }
4666
4873
 
4874
+
4667
4875
  /* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
4668
4876
  TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
4669
4877
  */
@@ -4673,7 +4881,7 @@ function requireEslintVisitorKeys () {
4673
4881
  * @returns {readonly string[]} Visitor keys of the node.
4674
4882
  */
4675
4883
  function getKeys(node) {
4676
- return Object.keys(node).filter(filterKey);
4884
+ return Object.keys(node).filter(filterKey);
4677
4885
  }
4678
4886
  /* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
4679
4887
 
@@ -4683,25 +4891,24 @@ function requireEslintVisitorKeys () {
4683
4891
  * @returns {VisitorKeys} The union set.
4684
4892
  */
4685
4893
  function unionWith(additionalKeys) {
4686
- const retv =
4687
- /** @type {{ [type: string]: ReadonlyArray<string> }} */
4688
- (Object.assign({}, KEYS));
4894
+ const retv = /** @type {{ [type: string]: ReadonlyArray<string> }} */
4895
+ (Object.assign({}, KEYS));
4689
4896
 
4690
- for (const type of Object.keys(additionalKeys)) {
4691
- if (Object.hasOwn(retv, type)) {
4692
- const keys = new Set(additionalKeys[type]);
4897
+ for (const type of Object.keys(additionalKeys)) {
4898
+ if (Object.hasOwn(retv, type)) {
4899
+ const keys = new Set(additionalKeys[type]);
4693
4900
 
4694
- for (const key of retv[type]) {
4695
- keys.add(key);
4696
- }
4901
+ for (const key of retv[type]) {
4902
+ keys.add(key);
4903
+ }
4697
4904
 
4698
- retv[type] = Object.freeze(Array.from(keys));
4699
- } else {
4700
- retv[type] = Object.freeze(Array.from(additionalKeys[type]));
4701
- }
4702
- }
4905
+ retv[type] = Object.freeze(Array.from(keys));
4906
+ } else {
4907
+ retv[type] = Object.freeze(Array.from(additionalKeys[type]));
4908
+ }
4909
+ }
4703
4910
 
4704
- return Object.freeze(retv);
4911
+ return Object.freeze(retv);
4705
4912
  }
4706
4913
 
4707
4914
  eslintVisitorKeys.KEYS = KEYS;
@@ -4717,7 +4924,7 @@ function requireGetKeys () {
4717
4924
  hasRequiredGetKeys = 1;
4718
4925
  Object.defineProperty(getKeys, "__esModule", { value: true });
4719
4926
  getKeys.getKeys = void 0;
4720
- const eslint_visitor_keys_1 = /*@__PURE__*/ requireEslintVisitorKeys();
4927
+ const eslint_visitor_keys_1 = requireEslintVisitorKeys();
4721
4928
  getKeys.getKeys = eslint_visitor_keys_1.getKeys;
4722
4929
  return getKeys;
4723
4930
  }
@@ -4764,7 +4971,7 @@ function requireVisitorKeys () {
4764
4971
  })();
4765
4972
  Object.defineProperty(visitorKeys, "__esModule", { value: true });
4766
4973
  visitorKeys.visitorKeys = void 0;
4767
- const eslintVisitorKeys = __importStar(/*@__PURE__*/ requireEslintVisitorKeys());
4974
+ const eslintVisitorKeys = __importStar(requireEslintVisitorKeys());
4768
4975
  /*
4769
4976
  ********************************** IMPORTANT NOTE ********************************
4770
4977
  * *
@@ -13926,4 +14133,4 @@ function requireDist () {
13926
14133
 
13927
14134
  var distExports = requireDist();
13928
14135
 
13929
- export { getDefaultExportFromCjs as a, requireEslintUtils$2 as b, requireDist$2 as c, distExports as d, requireDist$1 as e, requireAstUtils as f, getAugmentedNamespace as g, requireDist as h, requireEslintUtils as i, commonjsGlobal as j, requireEslintVisitorKeys as k, requireDist$3 as r };
14136
+ export { getDefaultExportFromCjs as a, commonjsGlobal as c, distExports as d, getAugmentedNamespace as g, requireEslintUtils$2 as r };
@@ -2,6 +2,7 @@
2
2
 
3
3
  const require$$0 = require('tty');
4
4
  const require$$1 = require('util');
5
+ const index = require('./eslint.Dxl4X46J.cjs');
5
6
 
6
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
7
8
 
@@ -485,11 +486,11 @@ function requireCommon () {
485
486
 
486
487
  /* eslint-env browser */
487
488
 
488
- var hasRequiredBrowser$1;
489
+ var hasRequiredBrowser;
489
490
 
490
- function requireBrowser$1 () {
491
- if (hasRequiredBrowser$1) return browser$1.exports;
492
- hasRequiredBrowser$1 = 1;
491
+ function requireBrowser () {
492
+ if (hasRequiredBrowser) return browser$1.exports;
493
+ hasRequiredBrowser = 1;
493
494
  (function (module, exports$1) {
494
495
  /**
495
496
  * This is the web browser implementation of `debug()`.
@@ -768,37 +769,45 @@ function requireBrowser$1 () {
768
769
  var node = {exports: {}};
769
770
 
770
771
  /* eslint-env browser */
772
+ /* eslint-disable n/no-unsupported-features/node-builtins */
771
773
 
772
- var browser;
773
- var hasRequiredBrowser;
774
-
775
- function requireBrowser () {
776
- if (hasRequiredBrowser) return browser;
777
- hasRequiredBrowser = 1;
778
-
779
- function getChromeVersion() {
780
- const matches = /(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);
774
+ const level = (() => {
775
+ if (!('navigator' in globalThis)) {
776
+ return 0;
777
+ }
781
778
 
782
- if (!matches) {
783
- return;
779
+ if (globalThis.navigator.userAgentData) {
780
+ const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
781
+ if (brand?.version > 93) {
782
+ return 3;
784
783
  }
784
+ }
785
785
 
786
- return Number.parseInt(matches.groups.chromeVersion, 10);
786
+ if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
787
+ return 1;
787
788
  }
788
789
 
789
- const colorSupport = getChromeVersion() >= 69 ? {
790
- level: 1,
791
- hasBasic: true,
792
- has256: false,
793
- has16m: false
794
- } : false;
790
+ return 0;
791
+ })();
795
792
 
796
- browser = {
797
- stdout: colorSupport,
798
- stderr: colorSupport
799
- };
800
- return browser;
801
- }
793
+ const colorSupport = level !== 0 && {
794
+ level,
795
+ hasBasic: true,
796
+ has256: level >= 2,
797
+ has16m: level >= 3,
798
+ };
799
+
800
+ const supportsColor = {
801
+ stdout: colorSupport,
802
+ stderr: colorSupport,
803
+ };
804
+
805
+ const browser = {
806
+ __proto__: null,
807
+ default: supportsColor
808
+ };
809
+
810
+ const require$$2 = /*@__PURE__*/index.getAugmentedNamespace(browser);
802
811
 
803
812
  /**
804
813
  * Module dependencies.
@@ -837,7 +846,7 @@ function requireNode () {
837
846
  try {
838
847
  // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
839
848
  // eslint-disable-next-line import/no-extraneous-dependencies
840
- const supportsColor = requireBrowser();
849
+ const supportsColor = require$$2;
841
850
 
842
851
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
843
852
  exports$1.colors = [
@@ -1084,7 +1093,7 @@ function requireSrc () {
1084
1093
  if (hasRequiredSrc) return src.exports;
1085
1094
  hasRequiredSrc = 1;
1086
1095
  if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
1087
- src.exports = requireBrowser$1();
1096
+ src.exports = requireBrowser();
1088
1097
  } else {
1089
1098
  src.exports = requireNode();
1090
1099
  }