prettier 0.18.1 β†’ 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b06e55a88ddba0beb06670037f53d62fe167b319de777f1dff24d743b6ae4faa
4
- data.tar.gz: 86a238cb740acbf79b9fa0f3b72d05b18f02cb50422cfd0f9da2b993fe54043f
3
+ metadata.gz: 48c219668f2ca222fa405eb95257dd602bb40f4324659f65886d80ebf92f22ef
4
+ data.tar.gz: fd8a810805dab87cabe91a49a7a2192831297c2e38995cfc2e169363195c15dc
5
5
  SHA512:
6
- metadata.gz: f1c9793b99593bf59524470c9295cb053aaee27245f9744368a9bcd76f54bab085c3a854a157602de94901df32c83f1063d76807f0f7d6f0f4eb6274f59267a7
7
- data.tar.gz: 9c35404295a8f07cda08b6fcd69abc7b984bb8dc1ccab3cd5b3c3d3c2dcb0eb37f52152da6caafb621811a7e16d86ea3b5cbe0e92878d2649d0e2eb1d1f537ca
6
+ metadata.gz: 45249b936136e2231789d6582fe15052400a1a73a67266b3ebee52b1962a0b047832610a722b1ab0fdab66c51ee8845bc9c2141f769140086ac763463aa63eb7
7
+ data.tar.gz: fddf3cd589b8421aa84e71afe3ea9b02c2ad28890f309e42b8ec22f7387687c25d5de1c3edb8b4c3cd440b4ff63047d396d93858dc8661ecb32fb9c7d4c6aa71
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.18.2] - 2020-05-01
10
+
11
+ ### Changed
12
+
13
+ - [@alse] - Support `vscodeLanguageIds` for HAML.
14
+ - [@ShayDavidson], [@kddeisz] - Don't allow replacing if/else with ternary if there's an assignment in the predicate.
15
+ - [@janklimo] - Do not add an empty line after `rescue` when the block is empty.
16
+
9
17
  ## [0.18.1] - 2020-04-05
10
18
 
11
19
  ### Changed
@@ -36,7 +44,7 @@ should maintain its `do...end` and not switch to inline braces otherwise the bra
36
44
 
37
45
  - [@ftes], [@kddeisz] - When old-form dynamic attributes are added to a `div` tag in HAML, it was previously skipping printing the `%div`, which led to it being incorrectly displayed.
38
46
  - [@ftes], [@kddeisz] - Previously if you had a long tag declaration with attributes that made it hit the line limit, then the content of the tag would be pushed to the next line but indented one character too many.
39
- - [@ftes], [@kddeisz] - Don't explicitly require JSON if it has already been loaed, as this can lead to rubygems activation errors.
47
+ - [@ftes], [@kddeisz] - Don't explicitly require JSON if it has already been loaded, as this can lead to rubygems activation errors.
40
48
  - [@mmainz], [@kddeisz] - Handle heredocs as the receivers of call nodes, as in:
41
49
 
42
50
  <!-- prettier-ignore -->
@@ -795,7 +803,8 @@ would previously result in `array[]`, but now prints properly.
795
803
 
796
804
  - Initial release πŸŽ‰
797
805
 
798
- [unreleased]: https://github.com/prettier/plugin-ruby/compare/v0.18.1...HEAD
806
+ [unreleased]: https://github.com/prettier/plugin-ruby/compare/v0.18.2...HEAD
807
+ [0.18.2]: https://github.com/prettier/plugin-ruby/compare/v0.18.1...v0.18.2
799
808
  [0.18.1]: https://github.com/prettier/plugin-ruby/compare/v0.18.0...v0.18.1
800
809
  [0.18.0]: https://github.com/prettier/plugin-ruby/compare/v0.17.0...v0.18.0
801
810
  [0.17.0]: https://github.com/prettier/plugin-ruby/compare/v0.16.0...v0.17.0
@@ -839,6 +848,7 @@ would previously result in `array[]`, but now prints properly.
839
848
  [@aaronjensen]: https://github.com/aaronjensen
840
849
  [@acrewdson]: https://github.com/acrewdson
841
850
  [@alanfoster]: https://github.com/AlanFoster
851
+ [@alse]: https://github.com/alse
842
852
  [@andrewraycode]: https://github.com/AndrewRayCode
843
853
  [@ashfurrow]: https://github.com/ashfurrow
844
854
  [@awinograd]: https://github.com/awinograd
@@ -860,6 +870,7 @@ would previously result in `array[]`, but now prints properly.
860
870
  [@ianks]: https://github.com/ianks
861
871
  [@jakeprime]: https://github.com/jakeprime
862
872
  [@jamescostian]: https://github.com/jamescostian
873
+ [@janklimo]: https://github.com/janklimo
863
874
  [@joeyjoejoejr]: https://github.com/joeyjoejoejr
864
875
  [@johnschoeman]: https://github.com/johnschoeman
865
876
  [@joshuakgoldberg]: https://github.com/JoshuaKGoldberg
@@ -880,6 +891,7 @@ would previously result in `array[]`, but now prints properly.
880
891
  [@petevk]: https://github.com/petevk
881
892
  [@pje]: https://github.com/pje
882
893
  [@rosskinsella]: https://github.com/RossKinsella
894
+ [@shaydavidson]: https://github.com/ShayDavidson
883
895
  [@tobyndockerill]: https://github.com/tobyndockerill
884
896
  [@uri]: https://github.com/uri
885
897
  [@xipgroc]: https://github.com/xipgroc
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Kevin Deisz
3
+ Copyright (c) 2019-present Kevin Deisz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -70,6 +70,8 @@ end
70
70
 
71
71
  To run `prettier` with the Ruby plugin, you're going to need [`ruby`](https://www.ruby-lang.org/en/documentation/installation/) (version `2.5` or newer) and [`node`](https://nodejs.org/en/download/) (version `8.3` or newer). If you're integrating with a project that is not already using `prettier`, you should use the Ruby gem. Otherwise you can use the `npm` package directly.
72
72
 
73
+ Note that currently the editor integrations work best with the `npm` package, as most of the major editor plugins expect a `node_modules` directory. You can get them to work with the Ruby gem, but it requires manually configuring the paths.
74
+
73
75
  ### Ruby gem
74
76
 
75
77
  Add this line to your application's Gemfile:
@@ -208,6 +210,13 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
208
210
  <td align="center"><a href="https://www.piesync.com/"><img src="https://avatars0.githubusercontent.com/u/161271?v=4" width="100px;" alt=""/><br /><sub><b>Peter De Berdt</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/issues?q=author%3Amasqita" title="Bug reports">πŸ›</a></td>
209
211
  <td align="center"><a href="https://github.com/hafley66"><img src="https://avatars0.githubusercontent.com/u/6750483?v=4" width="100px;" alt=""/><br /><sub><b>Chris Hafley</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/issues?q=author%3Ahafley66" title="Bug reports">πŸ›</a></td>
210
212
  <td align="center"><a href="http://fruetel.de"><img src="https://avatars1.githubusercontent.com/u/8015212?v=4" width="100px;" alt=""/><br /><sub><b>Thomas FrΓΌtel</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/issues?q=author%3AFruetel" title="Bug reports">πŸ›</a></td>
213
+ <td align="center"><a href="https://github.com/alse"><img src="https://avatars1.githubusercontent.com/u/1160249?v=4" width="100px;" alt=""/><br /><sub><b>Alex Serban</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/commits?author=alse" title="Code">πŸ’»</a></td>
214
+ <td align="center"><a href="http://sviccari.github.io"><img src="https://avatars3.githubusercontent.com/u/4016985?v=4" width="100px;" alt=""/><br /><sub><b>Stephanie</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/commits?author=SViccari" title="Code">πŸ’»</a></td>
215
+ <td align="center"><a href="https://github.com/ShayDavidson"><img src="https://avatars1.githubusercontent.com/u/1366521?v=4" width="100px;" alt=""/><br /><sub><b>Shay Davidson</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/issues?q=author%3AShayDavidson" title="Bug reports">πŸ›</a></td>
216
+ </tr>
217
+ <tr>
218
+ <td align="center"><a href="https://github.com/ryan-hunter-pc"><img src="https://avatars2.githubusercontent.com/u/13044512?v=4" width="100px;" alt=""/><br /><sub><b>Ryan Hunter</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/commits?author=ryan-hunter-pc" title="Code">πŸ’»</a></td>
219
+ <td align="center"><a href="https://www.locksteplabs.com/"><img src="https://avatars1.githubusercontent.com/u/7811733?v=4" width="100px;" alt=""/><br /><sub><b>Jan Klimo</b></sub></a><br /><a href="https://github.com/prettier/plugin-ruby/commits?author=janklimo" title="Code">πŸ’»</a></td>
211
220
  </tr>
212
221
  </table>
213
222
 
@@ -3,15 +3,15 @@
3
3
 
4
4
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
5
5
 
6
- var fs$2 = _interopDefault(require('fs'));
7
- var path$1 = _interopDefault(require('path'));
8
- var os = _interopDefault(require('os'));
9
- var tty = _interopDefault(require('tty'));
10
- var assert = _interopDefault(require('assert'));
11
- var util$3 = _interopDefault(require('util'));
12
- var stream$5 = _interopDefault(require('stream'));
13
- var events = _interopDefault(require('events'));
14
- var readline = _interopDefault(require('readline'));
6
+ var fs$3 = _interopDefault(require('fs'));
7
+ var path$2 = _interopDefault(require('path'));
8
+ var os$1 = _interopDefault(require('os'));
9
+ var tty$1 = _interopDefault(require('tty'));
10
+ var assert$1 = _interopDefault(require('assert'));
11
+ var util$4 = _interopDefault(require('util'));
12
+ var stream$6 = _interopDefault(require('stream'));
13
+ var events$1 = _interopDefault(require('events'));
14
+ var readline$1 = _interopDefault(require('readline'));
15
15
 
16
16
  var semverCompare = function cmp(a, b) {
17
17
  var pa = a.split('.');
@@ -50,7 +50,7 @@ var pleaseUpgradeNode = function pleaseUpgradeNode(pkg, opts) {
50
50
  };
51
51
 
52
52
  var name = "prettier";
53
- var version = "2.0.2";
53
+ var version = "2.0.5";
54
54
  var description = "Prettier is an opinionated code formatter";
55
55
  var bin = "./bin/prettier.js";
56
56
  var repository = "prettier/prettier";
@@ -64,14 +64,14 @@ var engines = {
64
64
  var dependencies = {
65
65
  "@angular/compiler": "9.0.5",
66
66
  "@babel/code-frame": "7.8.0",
67
- "@babel/parser": "7.9.3",
68
- "@glimmer/syntax": "0.48.0",
67
+ "@babel/parser": "7.9.4",
68
+ "@glimmer/syntax": "0.50.0",
69
69
  "@iarna/toml": "2.2.3",
70
- "@typescript-eslint/typescript-estree": "2.24.0",
70
+ "@typescript-eslint/typescript-estree": "2.26.0",
71
71
  "angular-estree-parser": "1.3.0",
72
72
  "angular-html-parser": "1.4.0",
73
73
  camelcase: "5.3.1",
74
- chalk: "3.0.0",
74
+ chalk: "4.0.0",
75
75
  "ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
76
76
  "cjk-regex": "2.0.0",
77
77
  cosmiconfig: "6.0.0",
@@ -85,15 +85,15 @@ var dependencies = {
85
85
  "fast-glob": "3.2.2",
86
86
  "find-parent-dir": "0.3.0",
87
87
  "find-project-root": "1.1.1",
88
- "flow-parser": "0.121.0",
88
+ "flow-parser": "0.122.0",
89
89
  "get-stream": "5.1.0",
90
90
  globby: "11.0.0",
91
- graphql: "14.6.0",
91
+ graphql: "15.0.0",
92
92
  "html-element-attributes": "2.2.1",
93
93
  "html-styles": "1.0.0",
94
94
  "html-tag-names": "1.1.5",
95
95
  ignore: "4.0.6",
96
- "jest-docblock": "25.1.0",
96
+ "jest-docblock": "25.2.6",
97
97
  "json-stable-stringify": "1.0.1",
98
98
  leven: "3.1.0",
99
99
  "lines-and-columns": "1.1.6",
@@ -112,12 +112,13 @@ var dependencies = {
112
112
  "regexp-util": "1.2.2",
113
113
  "remark-math": "1.0.6",
114
114
  "remark-parse": "5.0.0",
115
+ resolve: "1.16.1",
115
116
  semver: "7.1.3",
116
117
  srcset: "2.0.1",
117
118
  "string-width": "4.2.0",
118
119
  typescript: "3.8.3",
119
120
  "unicode-regex": "3.0.0",
120
- unified: "8.4.2",
121
+ unified: "9.0.0",
121
122
  vnopts: "1.0.2",
122
123
  "yaml-unist-parser": "1.1.1"
123
124
  };
@@ -138,18 +139,18 @@ var devDependencies = {
138
139
  eslint: "6.8.0",
139
140
  "eslint-config-prettier": "6.10.1",
140
141
  "eslint-formatter-friendly": "7.0.0",
141
- "eslint-plugin-import": "2.20.1",
142
+ "eslint-plugin-import": "2.20.2",
142
143
  "eslint-plugin-prettier": "3.1.2",
143
144
  "eslint-plugin-react": "7.19.0",
144
- "eslint-plugin-unicorn": "17.2.0",
145
+ "eslint-plugin-unicorn": "18.0.1",
145
146
  execa: "4.0.0",
146
- jest: "25.1.0",
147
+ jest: "25.2.7",
147
148
  "jest-snapshot-serializer-ansi": "1.0.0",
148
149
  "jest-snapshot-serializer-raw": "1.1.0",
149
- "jest-watch-typeahead": "0.4.2",
150
- prettier: "2.0.1",
150
+ "jest-watch-typeahead": "0.5.0",
151
+ prettier: "2.0.4",
151
152
  rimraf: "3.0.2",
152
- rollup: "2.1.0",
153
+ rollup: "2.3.2",
153
154
  "rollup-plugin-babel": "4.4.0",
154
155
  "rollup-plugin-node-globals": "1.4.0",
155
156
  "rollup-plugin-terser": "5.3.0",
@@ -159,13 +160,14 @@ var devDependencies = {
159
160
  "synchronous-promise": "2.0.10",
160
161
  tempy: "0.5.0",
161
162
  "terser-webpack-plugin": "2.3.5",
162
- webpack: "4.42.0"
163
+ webpack: "4.42.1"
163
164
  };
164
165
  var scripts = {
165
166
  prepublishOnly: "echo \"Error: must publish from dist/\" && exit 1",
166
167
  "prepare-release": "yarn && yarn build && yarn test:dist",
167
168
  test: "jest",
168
- "test:dist": "node ./scripts/test-dist.js",
169
+ "test:dist": "cross-env NODE_ENV=production jest",
170
+ "test:dist-standalone": "cross-env NODE_ENV=production TEST_STANDALONE=1 jest tests/",
169
171
  "test:integration": "jest tests_integration",
170
172
  "perf:repeat": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
171
173
  "perf:repeat-inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
@@ -1782,7 +1784,7 @@ class LineByLine {
1782
1784
  if (typeof file === 'number') {
1783
1785
  this.fd = file;
1784
1786
  } else {
1785
- this.fd = fs$2.openSync(file, 'r');
1787
+ this.fd = fs$3.openSync(file, 'r');
1786
1788
  }
1787
1789
 
1788
1790
  this.options = options;
@@ -1812,7 +1814,7 @@ class LineByLine {
1812
1814
  }
1813
1815
 
1814
1816
  close() {
1815
- fs$2.closeSync(this.fd);
1817
+ fs$3.closeSync(this.fd);
1816
1818
  this.fd = null;
1817
1819
  }
1818
1820
 
@@ -1850,7 +1852,7 @@ class LineByLine {
1850
1852
 
1851
1853
  do {
1852
1854
  const readBuffer = new Buffer(this.options.readChunk);
1853
- bytesRead = fs$2.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition);
1855
+ bytesRead = fs$3.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition);
1854
1856
  totalBytesRead = totalBytesRead + bytesRead;
1855
1857
  this.fdPosition = this.fdPosition + bytesRead;
1856
1858
  buffers.push(readBuffer);
@@ -4827,7 +4829,7 @@ function supportsColor(stream) {
4827
4829
  // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
4828
4830
  // release that supports 256 colors. Windows 10 build 14931 is the first release
4829
4831
  // that supports 16m/TrueColor.
4830
- const osRelease = os.release().split('.');
4832
+ const osRelease = os$1.release().split('.');
4831
4833
 
4832
4834
  if (Number(process.versions.node.split('.')[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
4833
4835
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
@@ -7754,7 +7756,7 @@ function supportsColor$1(haveStream, streamIsTTY) {
7754
7756
  if (process.platform === 'win32') {
7755
7757
  // Windows 10 build 10586 is the first Windows release that supports 256 colors.
7756
7758
  // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
7757
- const osRelease = os.release().split('.');
7759
+ const osRelease = os$1.release().split('.');
7758
7760
 
7759
7761
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
7760
7762
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
@@ -7818,8 +7820,8 @@ function getSupportLevel$1(stream) {
7818
7820
 
7819
7821
  var supportsColor_1$1 = {
7820
7822
  supportsColor: getSupportLevel$1,
7821
- stdout: translateLevel$1(supportsColor$1(true, tty.isatty(1))),
7822
- stderr: translateLevel$1(supportsColor$1(true, tty.isatty(2)))
7823
+ stdout: translateLevel$1(supportsColor$1(true, tty$1.isatty(1))),
7824
+ stderr: translateLevel$1(supportsColor$1(true, tty$1.isatty(2)))
7823
7825
  };
7824
7826
 
7825
7827
  const stringReplaceAll = (string, substring, replacer) => {
@@ -7866,7 +7868,7 @@ var util = {
7866
7868
  const TEMPLATE_REGEX$1 = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
7867
7869
  const STYLE_REGEX$1 = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
7868
7870
  const STRING_REGEX$1 = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
7869
- const ESCAPE_REGEX$1 = /\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;
7871
+ const ESCAPE_REGEX$1 = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
7870
7872
  const ESCAPES$1 = new Map([['n', '\n'], ['r', '\r'], ['t', '\t'], ['b', '\b'], ['f', '\f'], ['v', '\v'], ['0', '\0'], ['\\', '\\'], ['e', '\u001B'], ['a', '\u0007']]);
7871
7873
 
7872
7874
  function unescape$1(c) {
@@ -7980,8 +7982,8 @@ var templates$1 = (chalk, temporary) => {
7980
7982
  chunks.push(chunk.join(''));
7981
7983
 
7982
7984
  if (styles.length > 0) {
7983
- const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
7984
- throw new Error(errMsg);
7985
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
7986
+ throw new Error(errMessage);
7985
7987
  }
7986
7988
 
7987
7989
  return chunks.join('');
@@ -8000,7 +8002,7 @@ const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
8000
8002
  const styles = Object.create(null);
8001
8003
 
8002
8004
  const applyOptions = (object, options = {}) => {
8003
- if (options.level > 3 || options.level < 0) {
8005
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
8004
8006
  throw new Error('The `level` option should be an integer from 0 to 3');
8005
8007
  } // Detect level if not set manually
8006
8008
 
@@ -8011,6 +8013,7 @@ const applyOptions = (object, options = {}) => {
8011
8013
 
8012
8014
  class ChalkClass {
8013
8015
  constructor(options) {
8016
+ // eslint-disable-next-line no-constructor-return
8014
8017
  return chalkFactory(options);
8015
8018
  }
8016
8019
 
@@ -8134,12 +8137,11 @@ const createBuilder = (self, _styler, _isEmpty) => {
8134
8137
  // Single argument is hot path, implicit coercion is faster than anything
8135
8138
  // eslint-disable-next-line no-implicit-coercion
8136
8139
  return applyStyle(builder, arguments_.length === 1 ? '' + arguments_[0] : arguments_.join(' '));
8137
- }; // `__proto__` is used because we must return a function, but there is
8140
+ }; // We alter the prototype because we must return a function, but there is
8138
8141
  // no way to create a function with a different prototype
8139
8142
 
8140
8143
 
8141
- builder.__proto__ = proto; // eslint-disable-line no-proto
8142
-
8144
+ Object.setPrototypeOf(builder, proto);
8143
8145
  builder._generator = self;
8144
8146
  builder._styler = _styler;
8145
8147
  builder._isEmpty = _isEmpty;
@@ -8217,18 +8219,7 @@ chalk$1.stderr = Chalk({
8217
8219
  level: stderrColor ? stderrColor.level : 0
8218
8220
  }); // eslint-disable-line new-cap
8219
8221
 
8220
- chalk$1.stderr.supportsColor = stderrColor; // For TypeScript
8221
-
8222
- chalk$1.Level = {
8223
- None: 0,
8224
- Basic: 1,
8225
- Ansi256: 2,
8226
- TrueColor: 3,
8227
- 0: 'None',
8228
- 1: 'Basic',
8229
- 2: 'Ansi256',
8230
- 3: 'TrueColor'
8231
- };
8222
+ chalk$1.stderr.supportsColor = stderrColor;
8232
8223
  var source = chalk$1;
8233
8224
 
8234
8225
  const cliDescriptor = {
@@ -10538,7 +10529,7 @@ function supportsColor$2(stream) {
10538
10529
  // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
10539
10530
  // release that supports 256 colors. Windows 10 build 14931 is the first release
10540
10531
  // that supports 16m/TrueColor.
10541
- const osRelease = os.release().split('.');
10532
+ const osRelease = os$1.release().split('.');
10542
10533
 
10543
10534
  if (Number(process.versions.node.split('.')[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
10544
10535
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
@@ -11382,7 +11373,7 @@ function resolveParser(opts, parsers) {
11382
11373
  {
11383
11374
  try {
11384
11375
  return {
11385
- parse: require(path$1.resolve(process.cwd(), opts.parser)),
11376
+ parse: require(path$2.resolve(process.cwd(), opts.parser)),
11386
11377
  astFormat: "estree",
11387
11378
  locStart: locStart$1,
11388
11379
  locEnd: locEnd$1
@@ -11538,7 +11529,7 @@ function getInterpreter(filepath) {
11538
11529
  let fd;
11539
11530
 
11540
11531
  try {
11541
- fd = fs$2.openSync(filepath, "r");
11532
+ fd = fs$3.openSync(filepath, "r");
11542
11533
  } catch (err) {
11543
11534
  // istanbul ignore next
11544
11535
  return "";
@@ -11570,14 +11561,14 @@ function getInterpreter(filepath) {
11570
11561
  try {
11571
11562
  // There are some weird cases where paths are missing, causing Jest
11572
11563
  // failures. It's unclear what these correspond to in the real world.
11573
- fs$2.closeSync(fd);
11564
+ fs$3.closeSync(fd);
11574
11565
  } catch (err) {// nop
11575
11566
  }
11576
11567
  }
11577
11568
  }
11578
11569
 
11579
11570
  function inferParser(filepath, plugins) {
11580
- const filename = path$1.basename(filepath).toLowerCase();
11571
+ const filename = path$2.basename(filepath).toLowerCase();
11581
11572
  const languages = getSupportInfo$1({
11582
11573
  plugins
11583
11574
  }).languages.filter(language => language.since !== null); // If the file has no extension, we can try to infer the language from the
@@ -13101,8 +13092,9 @@ function printDocToString(doc, options) {
13101
13092
  const [ind, mode, doc] = cmds.pop();
13102
13093
 
13103
13094
  if (typeof doc === "string") {
13104
- out.push(doc);
13105
- pos += getStringWidth$1(doc);
13095
+ const formatted = newLine !== "\n" && doc.includes("\n") ? doc.replace(/\n/g, newLine) : doc;
13096
+ out.push(formatted);
13097
+ pos += getStringWidth$1(formatted);
13106
13098
  } else {
13107
13099
  switch (doc.type) {
13108
13100
  case "cursor":
@@ -14082,8 +14074,8 @@ function breakTies(tiesToBreak, text, options) {
14082
14074
 
14083
14075
  for (indexOfFirstLeadingComment = tieCount; indexOfFirstLeadingComment > 0; --indexOfFirstLeadingComment) {
14084
14076
  const comment = tiesToBreak[indexOfFirstLeadingComment - 1];
14085
- assert.strictEqual(comment.precedingNode, precedingNode);
14086
- assert.strictEqual(comment.followingNode, followingNode);
14077
+ assert$1.strictEqual(comment.precedingNode, precedingNode);
14078
+ assert$1.strictEqual(comment.followingNode, followingNode);
14087
14079
  const gap = text.slice(options.locEnd(comment), gapEndPos);
14088
14080
 
14089
14081
  if (gapRegExp.test(gap)) {
@@ -14591,7 +14583,7 @@ function printAstToDoc(ast, options, alignmentSize = 0) {
14591
14583
  }
14592
14584
 
14593
14585
  function callPluginPrintFunction(path, options, printPath, args) {
14594
- assert.ok(path instanceof fastPath);
14586
+ assert$1.ok(path instanceof fastPath);
14595
14587
  const node = path.getValue();
14596
14588
  const {
14597
14589
  printer
@@ -14772,9 +14764,6 @@ const {
14772
14764
  convertEndOfLineToChars: convertEndOfLineToChars$2
14773
14765
  } = endOfLine;
14774
14766
  const {
14775
- utils: {
14776
- mapDoc: mapDoc$1
14777
- },
14778
14767
  printer: {
14779
14768
  printDocToString: printDocToString$1
14780
14769
  },
@@ -14850,8 +14839,7 @@ function coreFormat(text, opts, addAlignmentSize) {
14850
14839
 
14851
14840
  const astComments = attachComments(text, ast, opts);
14852
14841
  const doc = astToDoc(ast, opts, addAlignmentSize);
14853
- const eol = convertEndOfLineToChars$2(opts.endOfLine);
14854
- const result = printDocToString$1(opts.endOfLine === "lf" ? doc : mapDoc$1(doc, currentDoc => typeof currentDoc === "string" && currentDoc.includes("\n") ? currentDoc.replace(/\n/g, eol) : currentDoc), opts);
14842
+ const result = printDocToString$1(doc, opts);
14855
14843
  ensureAllCommentsPrinted(astComments); // Remove extra leading indentation as well as the added indentation after last newline
14856
14844
 
14857
14845
  if (addAlignmentSize > 0) {
@@ -15456,7 +15444,7 @@ var ignore = options => new IgnoreBase(options);
15456
15444
 
15457
15445
  function getFileContentOrNull(filename) {
15458
15446
  return new Promise((resolve, reject) => {
15459
- fs$2.readFile(filename, "utf8", (error, data) => {
15447
+ fs$3.readFile(filename, "utf8", (error, data) => {
15460
15448
  if (error && error.code !== "ENOENT") {
15461
15449
  reject(createError(filename, error));
15462
15450
  } else {
@@ -15473,7 +15461,7 @@ function getFileContentOrNull(filename) {
15473
15461
 
15474
15462
  getFileContentOrNull.sync = function (filename) {
15475
15463
  try {
15476
- return fs$2.readFileSync(filename, "utf8");
15464
+ return fs$3.readFileSync(filename, "utf8");
15477
15465
  } catch (error) {
15478
15466
  if (error && error.code === "ENOENT") {
15479
15467
  return null;
@@ -15496,7 +15484,7 @@ var getFileContentOrNull_1 = getFileContentOrNull;
15496
15484
 
15497
15485
 
15498
15486
  async function createIgnorer(ignorePath, withNodeModules) {
15499
- const ignoreContent = ignorePath ? await getFileContentOrNull_1(path$1.resolve(ignorePath)) : null;
15487
+ const ignoreContent = ignorePath ? await getFileContentOrNull_1(path$2.resolve(ignorePath)) : null;
15500
15488
  return _createIgnorer(ignoreContent, withNodeModules);
15501
15489
  }
15502
15490
  /**
@@ -15506,7 +15494,7 @@ async function createIgnorer(ignorePath, withNodeModules) {
15506
15494
 
15507
15495
 
15508
15496
  createIgnorer.sync = function (ignorePath, withNodeModules) {
15509
- const ignoreContent = !ignorePath ? null : getFileContentOrNull_1.sync(path$1.resolve(ignorePath));
15497
+ const ignoreContent = !ignorePath ? null : getFileContentOrNull_1.sync(path$2.resolve(ignorePath));
15510
15498
  return _createIgnorer(ignoreContent, withNodeModules);
15511
15499
  };
15512
15500
  /**
@@ -15784,7 +15772,7 @@ var path = {
15784
15772
  };
15785
15773
 
15786
15774
  try {
15787
- path = path$1;
15775
+ path = path$2;
15788
15776
  } catch (er) {}
15789
15777
 
15790
15778
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
@@ -19210,7 +19198,7 @@ LRUCache.prototype.inspect = function (n, opts) {
19210
19198
  str += ',';
19211
19199
  }
19212
19200
 
19213
- str += '\n max: ' + util$3.inspect(max, opts);
19201
+ str += '\n max: ' + util$4.inspect(max, opts);
19214
19202
  extras = true;
19215
19203
  }
19216
19204
 
@@ -19221,7 +19209,7 @@ LRUCache.prototype.inspect = function (n, opts) {
19221
19209
  str += ',';
19222
19210
  }
19223
19211
 
19224
- str += '\n maxAge: ' + util$3.inspect(maxAge, opts);
19212
+ str += '\n maxAge: ' + util$4.inspect(maxAge, opts);
19225
19213
  extras = true;
19226
19214
  }
19227
19215
 
@@ -19232,7 +19220,7 @@ LRUCache.prototype.inspect = function (n, opts) {
19232
19220
  str += ',';
19233
19221
  }
19234
19222
 
19235
- str += '\n length: ' + util$3.inspect(this[LENGTH], opts);
19223
+ str += '\n length: ' + util$4.inspect(this[LENGTH], opts);
19236
19224
  extras = true;
19237
19225
  }
19238
19226
 
@@ -19249,7 +19237,7 @@ LRUCache.prototype.inspect = function (n, opts) {
19249
19237
  str += '\n ';
19250
19238
  }
19251
19239
 
19252
- var key = util$3.inspect(item.key).split('\n').join('\n ');
19240
+ var key = util$4.inspect(item.key).split('\n').join('\n ');
19253
19241
  var val = {
19254
19242
  value: item.value
19255
19243
  };
@@ -19266,7 +19254,7 @@ LRUCache.prototype.inspect = function (n, opts) {
19266
19254
  val.stale = true;
19267
19255
  }
19268
19256
 
19269
- val = util$3.inspect(val, opts).split('\n').join('\n ');
19257
+ val = util$4.inspect(val, opts).split('\n').join('\n ');
19270
19258
  str += key + ' => ' + val;
19271
19259
  });
19272
19260
 
@@ -20325,7 +20313,7 @@ var fnmatch = createCommonjsModule(function (module, exports) {
20325
20313
  }
20326
20314
 
20327
20315
  if (options.matchBase && pattern.length === 1) {
20328
- file = path$1.basename(file.join("/")).split("/");
20316
+ file = path$2.basename(file.join("/")).split("/");
20329
20317
  }
20330
20318
 
20331
20319
  if (options.debug) {
@@ -20650,7 +20638,7 @@ var ini = createCommonjsModule(function (module, exports) {
20650
20638
  value: true
20651
20639
  });
20652
20640
 
20653
- var fs = __importStar(fs$2);
20641
+ var fs = __importStar(fs$3);
20654
20642
  /**
20655
20643
  * define the possible values:
20656
20644
  * section: [section]
@@ -20980,9 +20968,9 @@ var src = createCommonjsModule(function (module, exports) {
20980
20968
  value: true
20981
20969
  });
20982
20970
 
20983
- var fs = __importStar(fs$2);
20971
+ var fs = __importStar(fs$3);
20984
20972
 
20985
- var path = __importStar(path$1);
20973
+ var path = __importStar(path$2);
20986
20974
 
20987
20975
  var semver = __importStar(semver$2);
20988
20976
 
@@ -21349,14 +21337,14 @@ function markerExists(files, markers) {
21349
21337
  }
21350
21338
 
21351
21339
  function traverseFolder(directory, levels, markers) {
21352
- var files = fs$2.readdirSync(directory);
21340
+ var files = fs$3.readdirSync(directory);
21353
21341
 
21354
21342
  if (levels === 0) {
21355
21343
  return null;
21356
21344
  } else if (markerExists(files, markers)) {
21357
21345
  return directory;
21358
21346
  } else {
21359
- return traverseFolder(path$1.resolve(directory, '..'), levels - 1, markers);
21347
+ return traverseFolder(path$2.resolve(directory, '..'), levels - 1, markers);
21360
21348
  }
21361
21349
  }
21362
21350
 
@@ -21382,11 +21370,11 @@ const maybeParse = (filePath, parse) => {
21382
21370
  // it, which is possible, for example, when the path is given via
21383
21371
  // --stdin-filepath. So, first, traverse up until we find an existing
21384
21372
  // directory.
21385
- let dirPath = path$1.dirname(path$1.resolve(filePath));
21386
- const fsRoot = path$1.parse(dirPath).root;
21373
+ let dirPath = path$2.dirname(path$2.resolve(filePath));
21374
+ const fsRoot = path$2.parse(dirPath).root;
21387
21375
 
21388
- while (dirPath !== fsRoot && !fs$2.existsSync(dirPath)) {
21389
- dirPath = path$1.dirname(dirPath);
21376
+ while (dirPath !== fsRoot && !fs$3.existsSync(dirPath)) {
21377
+ dirPath = path$2.dirname(dirPath);
21390
21378
  }
21391
21379
 
21392
21380
  const root = findProjectRoot(dirPath);
@@ -23312,6 +23300,962 @@ var loadToml = function (filePath, content) {
23312
23300
  }
23313
23301
  };
23314
23302
 
23303
+ var caller = function () {
23304
+ // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
23305
+ var origPrepareStackTrace = Error.prepareStackTrace;
23306
+
23307
+ Error.prepareStackTrace = function (_, stack) {
23308
+ return stack;
23309
+ };
23310
+
23311
+ var stack = new Error().stack;
23312
+ Error.prepareStackTrace = origPrepareStackTrace;
23313
+ return stack[2].getFileName();
23314
+ };
23315
+
23316
+ var pathParse = createCommonjsModule(function (module) {
23317
+
23318
+ var isWindows = process.platform === 'win32'; // Regex to split a windows path into three parts: [*, device, slash,
23319
+ // tail] windows-only
23320
+
23321
+ var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; // Regex to split the tail part of the above into [*, dir, basename, ext]
23322
+
23323
+ var splitTailRe = /^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;
23324
+ var win32 = {}; // Function to split a filename into [root, dir, basename, ext]
23325
+
23326
+ function win32SplitPath(filename) {
23327
+ // Separate device+slash from tail
23328
+ var result = splitDeviceRe.exec(filename),
23329
+ device = (result[1] || '') + (result[2] || ''),
23330
+ tail = result[3] || ''; // Split the tail into dir, basename and extension
23331
+
23332
+ var result2 = splitTailRe.exec(tail),
23333
+ dir = result2[1],
23334
+ basename = result2[2],
23335
+ ext = result2[3];
23336
+ return [device, dir, basename, ext];
23337
+ }
23338
+
23339
+ win32.parse = function (pathString) {
23340
+ if (typeof pathString !== 'string') {
23341
+ throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString);
23342
+ }
23343
+
23344
+ var allParts = win32SplitPath(pathString);
23345
+
23346
+ if (!allParts || allParts.length !== 4) {
23347
+ throw new TypeError("Invalid path '" + pathString + "'");
23348
+ }
23349
+
23350
+ return {
23351
+ root: allParts[0],
23352
+ dir: allParts[0] + allParts[1].slice(0, -1),
23353
+ base: allParts[2],
23354
+ ext: allParts[3],
23355
+ name: allParts[2].slice(0, allParts[2].length - allParts[3].length)
23356
+ };
23357
+ }; // Split a filename into [root, dir, basename, ext], unix version
23358
+ // 'root' is just a slash, or nothing.
23359
+
23360
+
23361
+ var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
23362
+ var posix = {};
23363
+
23364
+ function posixSplitPath(filename) {
23365
+ return splitPathRe.exec(filename).slice(1);
23366
+ }
23367
+
23368
+ posix.parse = function (pathString) {
23369
+ if (typeof pathString !== 'string') {
23370
+ throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString);
23371
+ }
23372
+
23373
+ var allParts = posixSplitPath(pathString);
23374
+
23375
+ if (!allParts || allParts.length !== 4) {
23376
+ throw new TypeError("Invalid path '" + pathString + "'");
23377
+ }
23378
+
23379
+ allParts[1] = allParts[1] || '';
23380
+ allParts[2] = allParts[2] || '';
23381
+ allParts[3] = allParts[3] || '';
23382
+ return {
23383
+ root: allParts[0],
23384
+ dir: allParts[0] + allParts[1].slice(0, -1),
23385
+ base: allParts[2],
23386
+ ext: allParts[3],
23387
+ name: allParts[2].slice(0, allParts[2].length - allParts[3].length)
23388
+ };
23389
+ };
23390
+
23391
+ if (isWindows) module.exports = win32.parse;else
23392
+ /* posix */
23393
+ module.exports = posix.parse;
23394
+ module.exports.posix = posix.parse;
23395
+ module.exports.win32 = win32.parse;
23396
+ });
23397
+ var pathParse_1 = pathParse.posix;
23398
+ var pathParse_2 = pathParse.win32;
23399
+
23400
+ var parse$2 = path$2.parse || pathParse;
23401
+
23402
+ var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
23403
+ var prefix = '/';
23404
+
23405
+ if (/^([A-Za-z]:)/.test(absoluteStart)) {
23406
+ prefix = '';
23407
+ } else if (/^\\\\/.test(absoluteStart)) {
23408
+ prefix = '\\\\';
23409
+ }
23410
+
23411
+ var paths = [absoluteStart];
23412
+ var parsed = parse$2(absoluteStart);
23413
+
23414
+ while (parsed.dir !== paths[paths.length - 1]) {
23415
+ paths.push(parsed.dir);
23416
+ parsed = parse$2(parsed.dir);
23417
+ }
23418
+
23419
+ return paths.reduce(function (dirs, aPath) {
23420
+ return dirs.concat(modules.map(function (moduleDir) {
23421
+ return path$2.resolve(prefix, aPath, moduleDir);
23422
+ }));
23423
+ }, []);
23424
+ };
23425
+
23426
+ var nodeModulesPaths = function nodeModulesPaths(start, opts, request) {
23427
+ var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ['node_modules'];
23428
+
23429
+ if (opts && typeof opts.paths === 'function') {
23430
+ return opts.paths(request, start, function () {
23431
+ return getNodeModulesDirs(start, modules);
23432
+ }, opts);
23433
+ }
23434
+
23435
+ var dirs = getNodeModulesDirs(start, modules);
23436
+ return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
23437
+ };
23438
+
23439
+ var normalizeOptions$2 = function (x, opts) {
23440
+ /**
23441
+ * This file is purposefully a passthrough. It's expected that third-party
23442
+ * environments will override it at runtime in order to inject special logic
23443
+ * into `resolve` (by manipulating the options). One such example is the PnP
23444
+ * code path in Yarn.
23445
+ */
23446
+ return opts || {};
23447
+ };
23448
+
23449
+ var assert = true;
23450
+ var async_hooks = ">= 8";
23451
+ var buffer_ieee754 = "< 0.9.7";
23452
+ var buffer = true;
23453
+ var child_process = true;
23454
+ var cluster = true;
23455
+ var console$1 = true;
23456
+ var constants$1 = true;
23457
+ var crypto = true;
23458
+ var _debug_agent = ">= 1 && < 8";
23459
+ var _debugger = "< 8";
23460
+ var dgram = true;
23461
+ var dns = true;
23462
+ var domain = true;
23463
+ var events = true;
23464
+ var freelist = "< 6";
23465
+ var fs = true;
23466
+ var _http_agent = ">= 0.11.1";
23467
+ var _http_client = ">= 0.11.1";
23468
+ var _http_common = ">= 0.11.1";
23469
+ var _http_incoming = ">= 0.11.1";
23470
+ var _http_outgoing = ">= 0.11.1";
23471
+ var _http_server = ">= 0.11.1";
23472
+ var http = true;
23473
+ var http2 = ">= 8.8";
23474
+ var https = true;
23475
+ var inspector = ">= 8.0.0";
23476
+ var _linklist = "< 8";
23477
+ var module$1 = true;
23478
+ var net = true;
23479
+ var os = true;
23480
+ var path$1 = true;
23481
+ var perf_hooks = ">= 8.5";
23482
+ var process$1 = ">= 1";
23483
+ var punycode = true;
23484
+ var querystring = true;
23485
+ var readline = true;
23486
+ var repl = true;
23487
+ var smalloc = ">= 0.11.5 && < 3";
23488
+ var _stream_duplex = ">= 0.9.4";
23489
+ var _stream_transform = ">= 0.9.4";
23490
+ var _stream_wrap = ">= 1.4.1";
23491
+ var _stream_passthrough = ">= 0.9.4";
23492
+ var _stream_readable = ">= 0.9.4";
23493
+ var _stream_writable = ">= 0.9.4";
23494
+ var stream = true;
23495
+ var string_decoder = true;
23496
+ var sys = true;
23497
+ var timers = true;
23498
+ var _tls_common = ">= 0.11.13";
23499
+ var _tls_legacy = ">= 0.11.3 && < 10";
23500
+ var _tls_wrap = ">= 0.11.3";
23501
+ var tls = true;
23502
+ var trace_events = ">= 10";
23503
+ var tty = true;
23504
+ var url = true;
23505
+ var util$2 = true;
23506
+ var v8 = ">= 1";
23507
+ var vm = true;
23508
+ var wasi = ">= 13.4 && < 13.5";
23509
+ var worker_threads = ">= 11.7";
23510
+ var zlib = true;
23511
+ var core$1 = {
23512
+ assert: assert,
23513
+ async_hooks: async_hooks,
23514
+ buffer_ieee754: buffer_ieee754,
23515
+ buffer: buffer,
23516
+ child_process: child_process,
23517
+ cluster: cluster,
23518
+ console: console$1,
23519
+ constants: constants$1,
23520
+ crypto: crypto,
23521
+ _debug_agent: _debug_agent,
23522
+ _debugger: _debugger,
23523
+ dgram: dgram,
23524
+ dns: dns,
23525
+ domain: domain,
23526
+ events: events,
23527
+ freelist: freelist,
23528
+ fs: fs,
23529
+ "fs/promises": [
23530
+ ">= 10 && < 10.1",
23531
+ ">= 14"
23532
+ ],
23533
+ _http_agent: _http_agent,
23534
+ _http_client: _http_client,
23535
+ _http_common: _http_common,
23536
+ _http_incoming: _http_incoming,
23537
+ _http_outgoing: _http_outgoing,
23538
+ _http_server: _http_server,
23539
+ http: http,
23540
+ http2: http2,
23541
+ https: https,
23542
+ inspector: inspector,
23543
+ _linklist: _linklist,
23544
+ module: module$1,
23545
+ net: net,
23546
+ "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
23547
+ "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
23548
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
23549
+ os: os,
23550
+ path: path$1,
23551
+ perf_hooks: perf_hooks,
23552
+ process: process$1,
23553
+ punycode: punycode,
23554
+ querystring: querystring,
23555
+ readline: readline,
23556
+ repl: repl,
23557
+ smalloc: smalloc,
23558
+ _stream_duplex: _stream_duplex,
23559
+ _stream_transform: _stream_transform,
23560
+ _stream_wrap: _stream_wrap,
23561
+ _stream_passthrough: _stream_passthrough,
23562
+ _stream_readable: _stream_readable,
23563
+ _stream_writable: _stream_writable,
23564
+ stream: stream,
23565
+ string_decoder: string_decoder,
23566
+ sys: sys,
23567
+ timers: timers,
23568
+ _tls_common: _tls_common,
23569
+ _tls_legacy: _tls_legacy,
23570
+ _tls_wrap: _tls_wrap,
23571
+ tls: tls,
23572
+ trace_events: trace_events,
23573
+ tty: tty,
23574
+ url: url,
23575
+ util: util$2,
23576
+ "v8/tools/arguments": ">= 10 && < 12",
23577
+ "v8/tools/codemap": [
23578
+ ">= 4.4.0 && < 5",
23579
+ ">= 5.2.0 && < 12"
23580
+ ],
23581
+ "v8/tools/consarray": [
23582
+ ">= 4.4.0 && < 5",
23583
+ ">= 5.2.0 && < 12"
23584
+ ],
23585
+ "v8/tools/csvparser": [
23586
+ ">= 4.4.0 && < 5",
23587
+ ">= 5.2.0 && < 12"
23588
+ ],
23589
+ "v8/tools/logreader": [
23590
+ ">= 4.4.0 && < 5",
23591
+ ">= 5.2.0 && < 12"
23592
+ ],
23593
+ "v8/tools/profile_view": [
23594
+ ">= 4.4.0 && < 5",
23595
+ ">= 5.2.0 && < 12"
23596
+ ],
23597
+ "v8/tools/splaytree": [
23598
+ ">= 4.4.0 && < 5",
23599
+ ">= 5.2.0 && < 12"
23600
+ ],
23601
+ v8: v8,
23602
+ vm: vm,
23603
+ wasi: wasi,
23604
+ worker_threads: worker_threads,
23605
+ zlib: zlib
23606
+ };
23607
+
23608
+ var core$2 = /*#__PURE__*/Object.freeze({
23609
+ __proto__: null,
23610
+ assert: assert,
23611
+ async_hooks: async_hooks,
23612
+ buffer_ieee754: buffer_ieee754,
23613
+ buffer: buffer,
23614
+ child_process: child_process,
23615
+ cluster: cluster,
23616
+ console: console$1,
23617
+ constants: constants$1,
23618
+ crypto: crypto,
23619
+ _debug_agent: _debug_agent,
23620
+ _debugger: _debugger,
23621
+ dgram: dgram,
23622
+ dns: dns,
23623
+ domain: domain,
23624
+ events: events,
23625
+ freelist: freelist,
23626
+ fs: fs,
23627
+ _http_agent: _http_agent,
23628
+ _http_client: _http_client,
23629
+ _http_common: _http_common,
23630
+ _http_incoming: _http_incoming,
23631
+ _http_outgoing: _http_outgoing,
23632
+ _http_server: _http_server,
23633
+ http: http,
23634
+ http2: http2,
23635
+ https: https,
23636
+ inspector: inspector,
23637
+ _linklist: _linklist,
23638
+ module: module$1,
23639
+ net: net,
23640
+ os: os,
23641
+ path: path$1,
23642
+ perf_hooks: perf_hooks,
23643
+ process: process$1,
23644
+ punycode: punycode,
23645
+ querystring: querystring,
23646
+ readline: readline,
23647
+ repl: repl,
23648
+ smalloc: smalloc,
23649
+ _stream_duplex: _stream_duplex,
23650
+ _stream_transform: _stream_transform,
23651
+ _stream_wrap: _stream_wrap,
23652
+ _stream_passthrough: _stream_passthrough,
23653
+ _stream_readable: _stream_readable,
23654
+ _stream_writable: _stream_writable,
23655
+ stream: stream,
23656
+ string_decoder: string_decoder,
23657
+ sys: sys,
23658
+ timers: timers,
23659
+ _tls_common: _tls_common,
23660
+ _tls_legacy: _tls_legacy,
23661
+ _tls_wrap: _tls_wrap,
23662
+ tls: tls,
23663
+ trace_events: trace_events,
23664
+ tty: tty,
23665
+ url: url,
23666
+ util: util$2,
23667
+ v8: v8,
23668
+ vm: vm,
23669
+ wasi: wasi,
23670
+ worker_threads: worker_threads,
23671
+ zlib: zlib,
23672
+ 'default': core$1
23673
+ });
23674
+
23675
+ var data = getCjsExportFromNamespace(core$2);
23676
+
23677
+ var current = process.versions && process.versions.node && process.versions.node.split('.') || [];
23678
+
23679
+ function specifierIncluded(specifier) {
23680
+ var parts = specifier.split(' ');
23681
+ var op = parts.length > 1 ? parts[0] : '=';
23682
+ var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
23683
+
23684
+ for (var i = 0; i < 3; ++i) {
23685
+ var cur = Number(current[i] || 0);
23686
+ var ver = Number(versionParts[i] || 0);
23687
+
23688
+ if (cur === ver) {
23689
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
23690
+ }
23691
+
23692
+ if (op === '<') {
23693
+ return cur < ver;
23694
+ } else if (op === '>=') {
23695
+ return cur >= ver;
23696
+ } else {
23697
+ return false;
23698
+ }
23699
+ }
23700
+
23701
+ return op === '>=';
23702
+ }
23703
+
23704
+ function matchesRange(range) {
23705
+ var specifiers = range.split(/ ?&& ?/);
23706
+
23707
+ if (specifiers.length === 0) {
23708
+ return false;
23709
+ }
23710
+
23711
+ for (var i = 0; i < specifiers.length; ++i) {
23712
+ if (!specifierIncluded(specifiers[i])) {
23713
+ return false;
23714
+ }
23715
+ }
23716
+
23717
+ return true;
23718
+ }
23719
+
23720
+ function versionIncluded(specifierValue) {
23721
+ if (typeof specifierValue === 'boolean') {
23722
+ return specifierValue;
23723
+ }
23724
+
23725
+ if (specifierValue && typeof specifierValue === 'object') {
23726
+ for (var i = 0; i < specifierValue.length; ++i) {
23727
+ if (matchesRange(specifierValue[i])) {
23728
+ return true;
23729
+ }
23730
+ }
23731
+
23732
+ return false;
23733
+ }
23734
+
23735
+ return matchesRange(specifierValue);
23736
+ }
23737
+
23738
+ var core$3 = {};
23739
+
23740
+ for (var mod in data) {
23741
+ // eslint-disable-line no-restricted-syntax
23742
+ if (Object.prototype.hasOwnProperty.call(data, mod)) {
23743
+ core$3[mod] = versionIncluded(data[mod]);
23744
+ }
23745
+ }
23746
+
23747
+ var core_1 = core$3;
23748
+
23749
+ var isCore = function isCore(x) {
23750
+ return Object.prototype.hasOwnProperty.call(core_1, x);
23751
+ };
23752
+
23753
+ var realpath = fs$3.realpath && typeof fs$3.realpath.native === 'function' ? fs$3.realpath.native : fs$3.realpath;
23754
+
23755
+ var defaultIsFile = function isFile(file, cb) {
23756
+ fs$3.stat(file, function (err, stat) {
23757
+ if (!err) {
23758
+ return cb(null, stat.isFile() || stat.isFIFO());
23759
+ }
23760
+
23761
+ if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
23762
+ return cb(err);
23763
+ });
23764
+ };
23765
+
23766
+ var defaultIsDir = function isDirectory(dir, cb) {
23767
+ fs$3.stat(dir, function (err, stat) {
23768
+ if (!err) {
23769
+ return cb(null, stat.isDirectory());
23770
+ }
23771
+
23772
+ if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
23773
+ return cb(err);
23774
+ });
23775
+ };
23776
+
23777
+ var maybeUnwrapSymlink = function maybeUnwrapSymlink(x, opts, cb) {
23778
+ if (opts && opts.preserveSymlinks === false) {
23779
+ realpath(x, function (realPathErr, realPath) {
23780
+ if (realPathErr && realPathErr.code !== 'ENOENT') cb(realPathErr);else cb(null, realPathErr ? x : realPath);
23781
+ });
23782
+ } else {
23783
+ cb(null, x);
23784
+ }
23785
+ };
23786
+
23787
+ var getPackageCandidates = function getPackageCandidates(x, start, opts) {
23788
+ var dirs = nodeModulesPaths(start, opts, x);
23789
+
23790
+ for (var i = 0; i < dirs.length; i++) {
23791
+ dirs[i] = path$2.join(dirs[i], x);
23792
+ }
23793
+
23794
+ return dirs;
23795
+ };
23796
+
23797
+ var async = function resolve(x, options, callback) {
23798
+ var cb = callback;
23799
+ var opts = options;
23800
+
23801
+ if (typeof options === 'function') {
23802
+ cb = opts;
23803
+ opts = {};
23804
+ }
23805
+
23806
+ if (typeof x !== 'string') {
23807
+ var err = new TypeError('Path must be a string.');
23808
+ return process.nextTick(function () {
23809
+ cb(err);
23810
+ });
23811
+ }
23812
+
23813
+ opts = normalizeOptions$2(x, opts);
23814
+ var isFile = opts.isFile || defaultIsFile;
23815
+ var isDirectory = opts.isDirectory || defaultIsDir;
23816
+ var readFile = opts.readFile || fs$3.readFile;
23817
+ var packageIterator = opts.packageIterator;
23818
+ var extensions = opts.extensions || ['.js'];
23819
+ var basedir = opts.basedir || path$2.dirname(caller());
23820
+ var parent = opts.filename || basedir;
23821
+ opts.paths = opts.paths || []; // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
23822
+
23823
+ var absoluteStart = path$2.resolve(basedir);
23824
+ maybeUnwrapSymlink(absoluteStart, opts, function (err, realStart) {
23825
+ if (err) cb(err);else init(realStart);
23826
+ });
23827
+ var res;
23828
+
23829
+ function init(basedir) {
23830
+ if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
23831
+ res = path$2.resolve(basedir, x);
23832
+ if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
23833
+
23834
+ if (/\/$/.test(x) && res === basedir) {
23835
+ loadAsDirectory(res, opts.package, onfile);
23836
+ } else loadAsFile(res, opts.package, onfile);
23837
+ } else if (isCore(x)) {
23838
+ return cb(null, x);
23839
+ } else loadNodeModules(x, basedir, function (err, n, pkg) {
23840
+ if (err) cb(err);else if (n) {
23841
+ return maybeUnwrapSymlink(n, opts, function (err, realN) {
23842
+ if (err) {
23843
+ cb(err);
23844
+ } else {
23845
+ cb(null, realN, pkg);
23846
+ }
23847
+ });
23848
+ } else {
23849
+ var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
23850
+ moduleError.code = 'MODULE_NOT_FOUND';
23851
+ cb(moduleError);
23852
+ }
23853
+ });
23854
+ }
23855
+
23856
+ function onfile(err, m, pkg) {
23857
+ if (err) cb(err);else if (m) cb(null, m, pkg);else loadAsDirectory(res, function (err, d, pkg) {
23858
+ if (err) cb(err);else if (d) {
23859
+ maybeUnwrapSymlink(d, opts, function (err, realD) {
23860
+ if (err) {
23861
+ cb(err);
23862
+ } else {
23863
+ cb(null, realD, pkg);
23864
+ }
23865
+ });
23866
+ } else {
23867
+ var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
23868
+ moduleError.code = 'MODULE_NOT_FOUND';
23869
+ cb(moduleError);
23870
+ }
23871
+ });
23872
+ }
23873
+
23874
+ function loadAsFile(x, thePackage, callback) {
23875
+ var loadAsFilePackage = thePackage;
23876
+ var cb = callback;
23877
+
23878
+ if (typeof loadAsFilePackage === 'function') {
23879
+ cb = loadAsFilePackage;
23880
+ loadAsFilePackage = undefined;
23881
+ }
23882
+
23883
+ var exts = [''].concat(extensions);
23884
+ load(exts, x, loadAsFilePackage);
23885
+
23886
+ function load(exts, x, loadPackage) {
23887
+ if (exts.length === 0) return cb(null, undefined, loadPackage);
23888
+ var file = x + exts[0];
23889
+ var pkg = loadPackage;
23890
+ if (pkg) onpkg(null, pkg);else loadpkg(path$2.dirname(file), onpkg);
23891
+
23892
+ function onpkg(err, pkg_, dir) {
23893
+ pkg = pkg_;
23894
+ if (err) return cb(err);
23895
+
23896
+ if (dir && pkg && opts.pathFilter) {
23897
+ var rfile = path$2.relative(dir, file);
23898
+ var rel = rfile.slice(0, rfile.length - exts[0].length);
23899
+ var r = opts.pathFilter(pkg, x, rel);
23900
+ if (r) return load([''].concat(extensions.slice()), path$2.resolve(dir, r), pkg);
23901
+ }
23902
+
23903
+ isFile(file, onex);
23904
+ }
23905
+
23906
+ function onex(err, ex) {
23907
+ if (err) return cb(err);
23908
+ if (ex) return cb(null, file, pkg);
23909
+ load(exts.slice(1), x, pkg);
23910
+ }
23911
+ }
23912
+ }
23913
+
23914
+ function loadpkg(dir, cb) {
23915
+ if (dir === '' || dir === '/') return cb(null);
23916
+
23917
+ if (process.platform === 'win32' && /^\w:[/\\]*$/.test(dir)) {
23918
+ return cb(null);
23919
+ }
23920
+
23921
+ if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb(null);
23922
+ maybeUnwrapSymlink(dir, opts, function (unwrapErr, pkgdir) {
23923
+ if (unwrapErr) return loadpkg(path$2.dirname(dir), cb);
23924
+ var pkgfile = path$2.join(pkgdir, 'package.json');
23925
+ isFile(pkgfile, function (err, ex) {
23926
+ // on err, ex is false
23927
+ if (!ex) return loadpkg(path$2.dirname(dir), cb);
23928
+ readFile(pkgfile, function (err, body) {
23929
+ if (err) cb(err);
23930
+
23931
+ try {
23932
+ var pkg = JSON.parse(body);
23933
+ } catch (jsonErr) {}
23934
+
23935
+ if (pkg && opts.packageFilter) {
23936
+ pkg = opts.packageFilter(pkg, pkgfile);
23937
+ }
23938
+
23939
+ cb(null, pkg, dir);
23940
+ });
23941
+ });
23942
+ });
23943
+ }
23944
+
23945
+ function loadAsDirectory(x, loadAsDirectoryPackage, callback) {
23946
+ var cb = callback;
23947
+ var fpkg = loadAsDirectoryPackage;
23948
+
23949
+ if (typeof fpkg === 'function') {
23950
+ cb = fpkg;
23951
+ fpkg = opts.package;
23952
+ }
23953
+
23954
+ maybeUnwrapSymlink(x, opts, function (unwrapErr, pkgdir) {
23955
+ if (unwrapErr) return cb(unwrapErr);
23956
+ var pkgfile = path$2.join(pkgdir, 'package.json');
23957
+ isFile(pkgfile, function (err, ex) {
23958
+ if (err) return cb(err);
23959
+ if (!ex) return loadAsFile(path$2.join(x, 'index'), fpkg, cb);
23960
+ readFile(pkgfile, function (err, body) {
23961
+ if (err) return cb(err);
23962
+
23963
+ try {
23964
+ var pkg = JSON.parse(body);
23965
+ } catch (jsonErr) {}
23966
+
23967
+ if (pkg && opts.packageFilter) {
23968
+ pkg = opts.packageFilter(pkg, pkgfile);
23969
+ }
23970
+
23971
+ if (pkg && pkg.main) {
23972
+ if (typeof pkg.main !== 'string') {
23973
+ var mainError = new TypeError('package β€œ' + pkg.name + '” `main` must be a string');
23974
+ mainError.code = 'INVALID_PACKAGE_MAIN';
23975
+ return cb(mainError);
23976
+ }
23977
+
23978
+ if (pkg.main === '.' || pkg.main === './') {
23979
+ pkg.main = 'index';
23980
+ }
23981
+
23982
+ loadAsFile(path$2.resolve(x, pkg.main), pkg, function (err, m, pkg) {
23983
+ if (err) return cb(err);
23984
+ if (m) return cb(null, m, pkg);
23985
+ if (!pkg) return loadAsFile(path$2.join(x, 'index'), pkg, cb);
23986
+ var dir = path$2.resolve(x, pkg.main);
23987
+ loadAsDirectory(dir, pkg, function (err, n, pkg) {
23988
+ if (err) return cb(err);
23989
+ if (n) return cb(null, n, pkg);
23990
+ loadAsFile(path$2.join(x, 'index'), pkg, cb);
23991
+ });
23992
+ });
23993
+ return;
23994
+ }
23995
+
23996
+ loadAsFile(path$2.join(x, '/index'), pkg, cb);
23997
+ });
23998
+ });
23999
+ });
24000
+ }
24001
+
24002
+ function processDirs(cb, dirs) {
24003
+ if (dirs.length === 0) return cb(null, undefined);
24004
+ var dir = dirs[0];
24005
+ isDirectory(path$2.dirname(dir), isdir);
24006
+
24007
+ function isdir(err, isdir) {
24008
+ if (err) return cb(err);
24009
+ if (!isdir) return processDirs(cb, dirs.slice(1));
24010
+ loadAsFile(dir, opts.package, onfile);
24011
+ }
24012
+
24013
+ function onfile(err, m, pkg) {
24014
+ if (err) return cb(err);
24015
+ if (m) return cb(null, m, pkg);
24016
+ loadAsDirectory(dir, opts.package, ondir);
24017
+ }
24018
+
24019
+ function ondir(err, n, pkg) {
24020
+ if (err) return cb(err);
24021
+ if (n) return cb(null, n, pkg);
24022
+ processDirs(cb, dirs.slice(1));
24023
+ }
24024
+ }
24025
+
24026
+ function loadNodeModules(x, start, cb) {
24027
+ var thunk = function () {
24028
+ return getPackageCandidates(x, start, opts);
24029
+ };
24030
+
24031
+ processDirs(cb, packageIterator ? packageIterator(x, start, thunk, opts) : thunk());
24032
+ }
24033
+ };
24034
+
24035
+ var realpath$1 = fs$3.realpathSync && typeof fs$3.realpathSync.native === 'function' ? fs$3.realpathSync.native : fs$3.realpathSync;
24036
+
24037
+ var defaultIsFile$1 = function isFile(file) {
24038
+ try {
24039
+ var stat = fs$3.statSync(file);
24040
+ } catch (e) {
24041
+ if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
24042
+ throw e;
24043
+ }
24044
+
24045
+ return stat.isFile() || stat.isFIFO();
24046
+ };
24047
+
24048
+ var defaultIsDir$1 = function isDirectory(dir) {
24049
+ try {
24050
+ var stat = fs$3.statSync(dir);
24051
+ } catch (e) {
24052
+ if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
24053
+ throw e;
24054
+ }
24055
+
24056
+ return stat.isDirectory();
24057
+ };
24058
+
24059
+ var maybeUnwrapSymlink$1 = function maybeUnwrapSymlink(x, opts) {
24060
+ if (opts && opts.preserveSymlinks === false) {
24061
+ try {
24062
+ return realpath$1(x);
24063
+ } catch (realPathErr) {
24064
+ if (realPathErr.code !== 'ENOENT') {
24065
+ throw realPathErr;
24066
+ }
24067
+ }
24068
+ }
24069
+
24070
+ return x;
24071
+ };
24072
+
24073
+ var getPackageCandidates$1 = function getPackageCandidates(x, start, opts) {
24074
+ var dirs = nodeModulesPaths(start, opts, x);
24075
+
24076
+ for (var i = 0; i < dirs.length; i++) {
24077
+ dirs[i] = path$2.join(dirs[i], x);
24078
+ }
24079
+
24080
+ return dirs;
24081
+ };
24082
+
24083
+ var sync = function resolveSync(x, options) {
24084
+ if (typeof x !== 'string') {
24085
+ throw new TypeError('Path must be a string.');
24086
+ }
24087
+
24088
+ var opts = normalizeOptions$2(x, options);
24089
+ var isFile = opts.isFile || defaultIsFile$1;
24090
+ var readFileSync = opts.readFileSync || fs$3.readFileSync;
24091
+ var isDirectory = opts.isDirectory || defaultIsDir$1;
24092
+ var packageIterator = opts.packageIterator;
24093
+ var extensions = opts.extensions || ['.js'];
24094
+ var basedir = opts.basedir || path$2.dirname(caller());
24095
+ var parent = opts.filename || basedir;
24096
+ opts.paths = opts.paths || []; // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
24097
+
24098
+ var absoluteStart = maybeUnwrapSymlink$1(path$2.resolve(basedir), opts);
24099
+
24100
+ if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
24101
+ var res = path$2.resolve(absoluteStart, x);
24102
+ if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
24103
+ var m = loadAsFileSync(res) || loadAsDirectorySync(res);
24104
+ if (m) return maybeUnwrapSymlink$1(m, opts);
24105
+ } else if (isCore(x)) {
24106
+ return x;
24107
+ } else {
24108
+ var n = loadNodeModulesSync(x, absoluteStart);
24109
+ if (n) return maybeUnwrapSymlink$1(n, opts);
24110
+ }
24111
+
24112
+ var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
24113
+ err.code = 'MODULE_NOT_FOUND';
24114
+ throw err;
24115
+
24116
+ function loadAsFileSync(x) {
24117
+ var pkg = loadpkg(path$2.dirname(x));
24118
+
24119
+ if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
24120
+ var rfile = path$2.relative(pkg.dir, x);
24121
+ var r = opts.pathFilter(pkg.pkg, x, rfile);
24122
+
24123
+ if (r) {
24124
+ x = path$2.resolve(pkg.dir, r); // eslint-disable-line no-param-reassign
24125
+ }
24126
+ }
24127
+
24128
+ if (isFile(x)) {
24129
+ return x;
24130
+ }
24131
+
24132
+ for (var i = 0; i < extensions.length; i++) {
24133
+ var file = x + extensions[i];
24134
+
24135
+ if (isFile(file)) {
24136
+ return file;
24137
+ }
24138
+ }
24139
+ }
24140
+
24141
+ function loadpkg(dir) {
24142
+ if (dir === '' || dir === '/') return;
24143
+
24144
+ if (process.platform === 'win32' && /^\w:[/\\]*$/.test(dir)) {
24145
+ return;
24146
+ }
24147
+
24148
+ if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
24149
+ var pkgfile = path$2.join(maybeUnwrapSymlink$1(dir, opts), 'package.json');
24150
+
24151
+ if (!isFile(pkgfile)) {
24152
+ return loadpkg(path$2.dirname(dir));
24153
+ }
24154
+
24155
+ var body = readFileSync(pkgfile);
24156
+
24157
+ try {
24158
+ var pkg = JSON.parse(body);
24159
+ } catch (jsonErr) {}
24160
+
24161
+ if (pkg && opts.packageFilter) {
24162
+ // v2 will pass pkgfile
24163
+ pkg = opts.packageFilter(pkg,
24164
+ /*pkgfile,*/
24165
+ dir); // eslint-disable-line spaced-comment
24166
+ }
24167
+
24168
+ return {
24169
+ pkg: pkg,
24170
+ dir: dir
24171
+ };
24172
+ }
24173
+
24174
+ function loadAsDirectorySync(x) {
24175
+ var pkgfile = path$2.join(maybeUnwrapSymlink$1(x, opts), '/package.json');
24176
+
24177
+ if (isFile(pkgfile)) {
24178
+ try {
24179
+ var body = readFileSync(pkgfile, 'UTF8');
24180
+ var pkg = JSON.parse(body);
24181
+ } catch (e) {}
24182
+
24183
+ if (pkg && opts.packageFilter) {
24184
+ // v2 will pass pkgfile
24185
+ pkg = opts.packageFilter(pkg,
24186
+ /*pkgfile,*/
24187
+ x); // eslint-disable-line spaced-comment
24188
+ }
24189
+
24190
+ if (pkg && pkg.main) {
24191
+ if (typeof pkg.main !== 'string') {
24192
+ var mainError = new TypeError('package β€œ' + pkg.name + '” `main` must be a string');
24193
+ mainError.code = 'INVALID_PACKAGE_MAIN';
24194
+ throw mainError;
24195
+ }
24196
+
24197
+ if (pkg.main === '.' || pkg.main === './') {
24198
+ pkg.main = 'index';
24199
+ }
24200
+
24201
+ try {
24202
+ var m = loadAsFileSync(path$2.resolve(x, pkg.main));
24203
+ if (m) return m;
24204
+ var n = loadAsDirectorySync(path$2.resolve(x, pkg.main));
24205
+ if (n) return n;
24206
+ } catch (e) {}
24207
+ }
24208
+ }
24209
+
24210
+ return loadAsFileSync(path$2.join(x, '/index'));
24211
+ }
24212
+
24213
+ function loadNodeModulesSync(x, start) {
24214
+ var thunk = function () {
24215
+ return getPackageCandidates$1(x, start, opts);
24216
+ };
24217
+
24218
+ var dirs = packageIterator ? packageIterator(x, start, thunk, opts) : thunk();
24219
+
24220
+ for (var i = 0; i < dirs.length; i++) {
24221
+ var dir = dirs[i];
24222
+
24223
+ if (isDirectory(path$2.dirname(dir))) {
24224
+ var m = loadAsFileSync(dir);
24225
+ if (m) return m;
24226
+ var n = loadAsDirectorySync(dir);
24227
+ if (n) return n;
24228
+ }
24229
+ }
24230
+ }
24231
+ };
24232
+
24233
+ async.core = core_1;
24234
+ async.isCore = isCore;
24235
+ async.sync = sync;
24236
+ var resolve = async;
24237
+
24238
+ // eslint-disable-next-line prefer-destructuring
24239
+
24240
+
24241
+ let resolve$1 = require.resolve; // In the VS Code and Atom extensions `require` is overridden and `require.resolve` doesn't support the 2nd argument.
24242
+
24243
+ if (resolve$1.length === 1 || process.env.PRETTIER_FALLBACK_RESOLVE) {
24244
+ resolve$1 = (id, options) => {
24245
+ let basedir;
24246
+
24247
+ if (options && options.paths && options.paths.length === 1) {
24248
+ basedir = options.paths[0];
24249
+ }
24250
+
24251
+ return resolve.sync(id, {
24252
+ basedir
24253
+ });
24254
+ };
24255
+ }
24256
+
24257
+ var resolve_1 = resolve$1;
24258
+
23315
24259
  const getExplorerMemoized = mem_1(opts => {
23316
24260
  const cosmiconfig = thirdParty["cosmiconfig" + (opts.sync ? "Sync" : "")];
23317
24261
  const explorer = cosmiconfig("prettier", {
@@ -23319,13 +24263,12 @@ const getExplorerMemoized = mem_1(opts => {
23319
24263
  transform: result => {
23320
24264
  if (result && result.config) {
23321
24265
  if (typeof result.config === "string") {
23322
- const dir = path$1.dirname(result.filepath);
24266
+ const dir = path$2.dirname(result.filepath);
23323
24267
 
23324
24268
  try {
23325
- const modulePath = require.resolve(result.config, {
24269
+ const modulePath = resolve_1(result.config, {
23326
24270
  paths: [dir]
23327
24271
  });
23328
-
23329
24272
  result.config = require(modulePath);
23330
24273
  } catch (error) {
23331
24274
  // Original message contains `__filename`, can't pass tests
@@ -23384,7 +24327,7 @@ function _resolveConfig(filePath, opts, sync) {
23384
24327
  ["plugins", "pluginSearchDirs"].forEach(optionName => {
23385
24328
  if (Array.isArray(merged[optionName])) {
23386
24329
  merged[optionName] = merged[optionName].map(value => typeof value === "string" && value.startsWith(".") // relative path
23387
- ? path$1.resolve(path$1.dirname(result.filepath), value) : value);
24330
+ ? path$2.resolve(path$2.dirname(result.filepath), value) : value);
23388
24331
  }
23389
24332
  });
23390
24333
 
@@ -23444,7 +24387,7 @@ function mergeOverrides(configResult, filePath) {
23444
24387
  options = _objectWithoutPropertiesLoose(_ref, ["overrides"]);
23445
24388
 
23446
24389
  if (filePath && overrides) {
23447
- const relativeFilePath = path$1.relative(path$1.dirname(configPath), filePath);
24390
+ const relativeFilePath = path$2.relative(path$2.dirname(configPath), filePath);
23448
24391
 
23449
24392
  for (const override of overrides) {
23450
24393
  if (pathMatchesGlobs(relativeFilePath, override.files, override.excludeFiles)) {
@@ -23559,7 +24502,7 @@ function _getFileInfo({
23559
24502
  }
23560
24503
 
23561
24504
  function normalizeFilePath(filePath, ignorePath) {
23562
- return ignorePath ? path$1.relative(path$1.dirname(ignorePath), filePath) : filePath;
24505
+ return ignorePath ? path$2.relative(path$2.dirname(ignorePath), filePath) : filePath;
23563
24506
  }
23564
24507
 
23565
24508
  var getFileInfo_1 = getFileInfo;
@@ -26977,7 +27920,7 @@ var arrayUnion = (...arguments_) => {
26977
27920
  */
26978
27921
 
26979
27922
 
26980
- const PassThrough = stream$5.PassThrough;
27923
+ const PassThrough = stream$6.PassThrough;
26981
27924
  const slice = Array.prototype.slice;
26982
27925
  var merge2_1 = merge2;
26983
27926
 
@@ -27126,7 +28069,7 @@ var errno = createCommonjsModule(function (module, exports) {
27126
28069
  unwrapExports(errno);
27127
28070
  var errno_1 = errno.isEnoentCodeError;
27128
28071
 
27129
- var fs = createCommonjsModule(function (module, exports) {
28072
+ var fs$1 = createCommonjsModule(function (module, exports) {
27130
28073
 
27131
28074
  Object.defineProperty(exports, "__esModule", {
27132
28075
  value: true
@@ -27152,8 +28095,8 @@ var fs = createCommonjsModule(function (module, exports) {
27152
28095
 
27153
28096
  exports.createDirentFromStats = createDirentFromStats;
27154
28097
  });
27155
- unwrapExports(fs);
27156
- var fs_1 = fs.createDirentFromStats;
28098
+ unwrapExports(fs$1);
28099
+ var fs_1 = fs$1.createDirentFromStats;
27157
28100
 
27158
28101
  var path_1 = createCommonjsModule(function (module, exports) {
27159
28102
 
@@ -27174,7 +28117,7 @@ var path_1 = createCommonjsModule(function (module, exports) {
27174
28117
  exports.unixify = unixify;
27175
28118
 
27176
28119
  function makeAbsolute(cwd, filepath) {
27177
- return path$1.resolve(cwd, filepath);
28120
+ return path$2.resolve(cwd, filepath);
27178
28121
  }
27179
28122
 
27180
28123
  exports.makeAbsolute = makeAbsolute;
@@ -27281,8 +28224,8 @@ var isGlob = function isGlob(str, options) {
27281
28224
  return false;
27282
28225
  };
27283
28226
 
27284
- var pathPosixDirname = path$1.posix.dirname;
27285
- var isWin32 = os.platform() === 'win32';
28227
+ var pathPosixDirname = path$2.posix.dirname;
28228
+ var isWin32 = os$1.platform() === 'win32';
27286
28229
  var slash = '/';
27287
28230
  var backslash = /\\/g;
27288
28231
  var enclosure = /[\{\[].*[\/]*.*[\}\]]$/;
@@ -27918,7 +28861,7 @@ const toRegex = (start, end, options) => {
27918
28861
  };
27919
28862
 
27920
28863
  const rangeError = (...args) => {
27921
- return new RangeError('Invalid range arguments: ' + util$3.inspect(...args));
28864
+ return new RangeError('Invalid range arguments: ' + util$4.inspect(...args));
27922
28865
  };
27923
28866
 
27924
28867
  const invalidRange = (start, end, options) => {
@@ -28229,7 +29172,7 @@ const expand$1 = (ast, options = {}) => {
28229
29172
 
28230
29173
  var expand_1 = expand$1;
28231
29174
 
28232
- var constants$1 = {
29175
+ var constants$2 = {
28233
29176
  MAX_LENGTH: 1024 * 64,
28234
29177
  // Digits
28235
29178
  CHAR_0: '0',
@@ -28413,12 +29356,12 @@ const {
28413
29356
  /* ' */
28414
29357
  CHAR_NO_BREAK_SPACE,
28415
29358
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
28416
- } = constants$1;
29359
+ } = constants$2;
28417
29360
  /**
28418
29361
  * parse
28419
29362
  */
28420
29363
 
28421
- const parse$2 = (input, options = {}) => {
29364
+ const parse$3 = (input, options = {}) => {
28422
29365
  if (typeof input !== 'string') {
28423
29366
  throw new TypeError('Expected a string');
28424
29367
  }
@@ -28768,7 +29711,7 @@ const parse$2 = (input, options = {}) => {
28768
29711
  return ast;
28769
29712
  };
28770
29713
 
28771
- var parse_1 = parse$2;
29714
+ var parse_1 = parse$3;
28772
29715
 
28773
29716
  /**
28774
29717
  * Expand the given pattern or create a regex-compatible string.
@@ -29011,7 +29954,7 @@ const POSIX_REGEX_SOURCE = {
29011
29954
  word: 'A-Za-z0-9_',
29012
29955
  xdigit: 'A-Fa-f0-9'
29013
29956
  };
29014
- var constants$2 = {
29957
+ var constants$3 = {
29015
29958
  MAX_LENGTH: 1024 * 64,
29016
29959
  POSIX_REGEX_SOURCE,
29017
29960
  // regular expressions
@@ -29159,7 +30102,7 @@ var constants$2 = {
29159
30102
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
29160
30103
 
29161
30104
  /* \uFEFF */
29162
- SEP: path$1.sep,
30105
+ SEP: path$2.sep,
29163
30106
 
29164
30107
  /**
29165
30108
  * Create EXTGLOB_CHARS
@@ -29211,7 +30154,7 @@ var utils$3 = createCommonjsModule(function (module, exports) {
29211
30154
  REGEX_REMOVE_BACKSLASH,
29212
30155
  REGEX_SPECIAL_CHARS,
29213
30156
  REGEX_SPECIAL_CHARS_GLOBAL
29214
- } = constants$2;
30157
+ } = constants$3;
29215
30158
 
29216
30159
  exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
29217
30160
 
@@ -29244,7 +30187,7 @@ var utils$3 = createCommonjsModule(function (module, exports) {
29244
30187
  return options.windows;
29245
30188
  }
29246
30189
 
29247
- return win32 === true || path$1.sep === '\\';
30190
+ return win32 === true || path$2.sep === '\\';
29248
30191
  };
29249
30192
 
29250
30193
  exports.escapeLast = (input, char, lastIdx) => {
@@ -29335,7 +30278,7 @@ const {
29335
30278
  CHAR_RIGHT_SQUARE_BRACKET: CHAR_RIGHT_SQUARE_BRACKET$1
29336
30279
  /* ] */
29337
30280
 
29338
- } = constants$2;
30281
+ } = constants$3;
29339
30282
 
29340
30283
  const isPathSeparator = code => {
29341
30284
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
@@ -29727,7 +30670,7 @@ const {
29727
30670
  REGEX_NON_SPECIAL_CHARS,
29728
30671
  REGEX_SPECIAL_CHARS_BACKREF,
29729
30672
  REPLACEMENTS
29730
- } = constants$2;
30673
+ } = constants$3;
29731
30674
  /**
29732
30675
  * Helpers
29733
30676
  */
@@ -29765,7 +30708,7 @@ const syntaxError = (type, char) => {
29765
30708
  */
29766
30709
 
29767
30710
 
29768
- const parse$3 = (input, options) => {
30711
+ const parse$4 = (input, options) => {
29769
30712
  if (typeof input !== 'string') {
29770
30713
  throw new TypeError('Expected a string');
29771
30714
  }
@@ -29788,8 +30731,8 @@ const parse$3 = (input, options) => {
29788
30731
  const capture = opts.capture ? '' : '?:';
29789
30732
  const win32 = utils$3.isWindows(options); // create constants based on platform, for windows or posix
29790
30733
 
29791
- const PLATFORM_CHARS = constants$2.globChars(win32);
29792
- const EXTGLOB_CHARS = constants$2.extglobChars(PLATFORM_CHARS);
30734
+ const PLATFORM_CHARS = constants$3.globChars(win32);
30735
+ const EXTGLOB_CHARS = constants$3.extglobChars(PLATFORM_CHARS);
29793
30736
  const {
29794
30737
  DOT_LITERAL,
29795
30738
  PLUS_LITERAL,
@@ -30845,7 +31788,7 @@ const parse$3 = (input, options) => {
30845
31788
  */
30846
31789
 
30847
31790
 
30848
- parse$3.fastpaths = (input, options) => {
31791
+ parse$4.fastpaths = (input, options) => {
30849
31792
  const opts = Object.assign({}, options);
30850
31793
  const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH$3, opts.maxLength) : MAX_LENGTH$3;
30851
31794
  const len = input.length;
@@ -30867,7 +31810,7 @@ parse$3.fastpaths = (input, options) => {
30867
31810
  NO_DOTS_SLASH,
30868
31811
  STAR,
30869
31812
  START_ANCHOR
30870
- } = constants$2.globChars(win32);
31813
+ } = constants$3.globChars(win32);
30871
31814
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
30872
31815
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
30873
31816
  const capture = opts.capture ? '' : '?:';
@@ -30933,7 +31876,7 @@ parse$3.fastpaths = (input, options) => {
30933
31876
  return source;
30934
31877
  };
30935
31878
 
30936
- var parse_1$1 = parse$3;
31879
+ var parse_1$1 = parse$4;
30937
31880
 
30938
31881
  const isObject$2 = val => val && typeof val === 'object' && !Array.isArray(val);
30939
31882
  /**
@@ -31123,7 +32066,7 @@ picomatch.test = (input, regex, options, {
31123
32066
 
31124
32067
  picomatch.matchBase = (input, glob, options, posix = utils$3.isWindows(options)) => {
31125
32068
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
31126
- return regex.test(path$1.basename(input));
32069
+ return regex.test(path$2.basename(input));
31127
32070
  };
31128
32071
  /**
31129
32072
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -31298,7 +32241,7 @@ picomatch.toRegex = (source, options) => {
31298
32241
  */
31299
32242
 
31300
32243
 
31301
- picomatch.constants = constants$2;
32244
+ picomatch.constants = constants$3;
31302
32245
  /**
31303
32246
  * Expose "picomatch"
31304
32247
  */
@@ -31492,7 +32435,7 @@ micromatch.not = (list, patterns, options = {}) => {
31492
32435
 
31493
32436
  micromatch.contains = (str, pattern, options) => {
31494
32437
  if (typeof str !== 'string') {
31495
- throw new TypeError(`Expected a string: "${util$3.inspect(str)}"`);
32438
+ throw new TypeError(`Expected a string: "${util$4.inspect(str)}"`);
31496
32439
  }
31497
32440
 
31498
32441
  if (Array.isArray(pattern)) {
@@ -31647,7 +32590,7 @@ micromatch.every = (list, patterns, options) => {
31647
32590
 
31648
32591
  micromatch.all = (str, patterns, options) => {
31649
32592
  if (typeof str !== 'string') {
31650
- throw new TypeError(`Expected a string: "${util$3.inspect(str)}"`);
32593
+ throw new TypeError(`Expected a string: "${util$4.inspect(str)}"`);
31651
32594
  }
31652
32595
 
31653
32596
  return [].concat(patterns).every(p => picomatch$1(p, options)(str));
@@ -31890,7 +32833,7 @@ var pattern = createCommonjsModule(function (module, exports) {
31890
32833
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
31891
32834
 
31892
32835
  function isAffectDepthOfReadingPattern(pattern) {
31893
- const basename = path$1.basename(pattern);
32836
+ const basename = path$2.basename(pattern);
31894
32837
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
31895
32838
  }
31896
32839
 
@@ -31965,7 +32908,7 @@ var pattern_16 = pattern.makeRe;
31965
32908
  var pattern_17 = pattern.convertPatternsToRe;
31966
32909
  var pattern_18 = pattern.matchAny;
31967
32910
 
31968
- var stream = createCommonjsModule(function (module, exports) {
32911
+ var stream$1 = createCommonjsModule(function (module, exports) {
31969
32912
 
31970
32913
  Object.defineProperty(exports, "__esModule", {
31971
32914
  value: true
@@ -31987,8 +32930,8 @@ var stream = createCommonjsModule(function (module, exports) {
31987
32930
  streams.forEach(stream => stream.emit('close'));
31988
32931
  }
31989
32932
  });
31990
- unwrapExports(stream);
31991
- var stream_1 = stream.merge;
32933
+ unwrapExports(stream$1);
32934
+ var stream_1 = stream$1.merge;
31992
32935
 
31993
32936
  var string$1 = createCommonjsModule(function (module, exports) {
31994
32937
 
@@ -32019,10 +32962,10 @@ var utils$4 = createCommonjsModule(function (module, exports) {
32019
32962
  });
32020
32963
  exports.array = array$2;
32021
32964
  exports.errno = errno;
32022
- exports.fs = fs;
32965
+ exports.fs = fs$1;
32023
32966
  exports.path = path_1;
32024
32967
  exports.pattern = pattern;
32025
- exports.stream = stream;
32968
+ exports.stream = stream$1;
32026
32969
  exports.string = string$1;
32027
32970
  });
32028
32971
  unwrapExports(utils$4);
@@ -32130,7 +33073,7 @@ var tasks_5 = tasks.groupPatternsByBaseDirectory;
32130
33073
  var tasks_6 = tasks.convertPatternGroupsToTasks;
32131
33074
  var tasks_7 = tasks.convertPatternGroupToTask;
32132
33075
 
32133
- var async = createCommonjsModule(function (module, exports) {
33076
+ var async$1 = createCommonjsModule(function (module, exports) {
32134
33077
 
32135
33078
  Object.defineProperty(exports, "__esModule", {
32136
33079
  value: true
@@ -32174,10 +33117,10 @@ var async = createCommonjsModule(function (module, exports) {
32174
33117
  callback(null, result);
32175
33118
  }
32176
33119
  });
32177
- unwrapExports(async);
32178
- var async_1 = async.read;
33120
+ unwrapExports(async$1);
33121
+ var async_1 = async$1.read;
32179
33122
 
32180
- var sync = createCommonjsModule(function (module, exports) {
33123
+ var sync$1 = createCommonjsModule(function (module, exports) {
32181
33124
 
32182
33125
  Object.defineProperty(exports, "__esModule", {
32183
33126
  value: true
@@ -32209,8 +33152,8 @@ var sync = createCommonjsModule(function (module, exports) {
32209
33152
 
32210
33153
  exports.read = read;
32211
33154
  });
32212
- unwrapExports(sync);
32213
- var sync_1 = sync.read;
33155
+ unwrapExports(sync$1);
33156
+ var sync_1 = sync$1.read;
32214
33157
 
32215
33158
  var fs_1$1 = createCommonjsModule(function (module, exports) {
32216
33159
 
@@ -32218,10 +33161,10 @@ var fs_1$1 = createCommonjsModule(function (module, exports) {
32218
33161
  value: true
32219
33162
  });
32220
33163
  exports.FILE_SYSTEM_ADAPTER = {
32221
- lstat: fs$2.lstat,
32222
- stat: fs$2.stat,
32223
- lstatSync: fs$2.lstatSync,
32224
- statSync: fs$2.statSync
33164
+ lstat: fs$3.lstat,
33165
+ stat: fs$3.stat,
33166
+ lstatSync: fs$3.lstatSync,
33167
+ statSync: fs$3.statSync
32225
33168
  };
32226
33169
 
32227
33170
  function createFileSystemAdapter(fsMethods) {
@@ -32272,17 +33215,17 @@ var out = createCommonjsModule(function (module, exports) {
32272
33215
 
32273
33216
  function stat(path, optionsOrSettingsOrCallback, callback) {
32274
33217
  if (typeof optionsOrSettingsOrCallback === 'function') {
32275
- return async.read(path, getSettings(), optionsOrSettingsOrCallback);
33218
+ return async$1.read(path, getSettings(), optionsOrSettingsOrCallback);
32276
33219
  }
32277
33220
 
32278
- async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
33221
+ async$1.read(path, getSettings(optionsOrSettingsOrCallback), callback);
32279
33222
  }
32280
33223
 
32281
33224
  exports.stat = stat;
32282
33225
 
32283
33226
  function statSync(path, optionsOrSettings) {
32284
33227
  const settings = getSettings(optionsOrSettings);
32285
- return sync.read(path, settings);
33228
+ return sync$1.read(path, settings);
32286
33229
  }
32287
33230
 
32288
33231
  exports.statSync = statSync;
@@ -32354,7 +33297,7 @@ function runParallel(tasks, cb) {
32354
33297
  isSync = false;
32355
33298
  }
32356
33299
 
32357
- var constants$3 = createCommonjsModule(function (module, exports) {
33300
+ var constants$4 = createCommonjsModule(function (module, exports) {
32358
33301
 
32359
33302
  Object.defineProperty(exports, "__esModule", {
32360
33303
  value: true
@@ -32372,10 +33315,10 @@ var constants$3 = createCommonjsModule(function (module, exports) {
32372
33315
 
32373
33316
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
32374
33317
  });
32375
- unwrapExports(constants$3);
32376
- var constants_1 = constants$3.IS_SUPPORT_READDIR_WITH_FILE_TYPES;
33318
+ unwrapExports(constants$4);
33319
+ var constants_1 = constants$4.IS_SUPPORT_READDIR_WITH_FILE_TYPES;
32377
33320
 
32378
- var fs$1 = createCommonjsModule(function (module, exports) {
33321
+ var fs$2 = createCommonjsModule(function (module, exports) {
32379
33322
 
32380
33323
  Object.defineProperty(exports, "__esModule", {
32381
33324
  value: true
@@ -32401,27 +33344,27 @@ var fs$1 = createCommonjsModule(function (module, exports) {
32401
33344
 
32402
33345
  exports.createDirentFromStats = createDirentFromStats;
32403
33346
  });
32404
- unwrapExports(fs$1);
32405
- var fs_1$2 = fs$1.createDirentFromStats;
33347
+ unwrapExports(fs$2);
33348
+ var fs_1$2 = fs$2.createDirentFromStats;
32406
33349
 
32407
33350
  var utils$5 = createCommonjsModule(function (module, exports) {
32408
33351
 
32409
33352
  Object.defineProperty(exports, "__esModule", {
32410
33353
  value: true
32411
33354
  });
32412
- exports.fs = fs$1;
33355
+ exports.fs = fs$2;
32413
33356
  });
32414
33357
  unwrapExports(utils$5);
32415
33358
  var utils_1$5 = utils$5.fs;
32416
33359
 
32417
- var async$1 = createCommonjsModule(function (module, exports) {
33360
+ var async$2 = createCommonjsModule(function (module, exports) {
32418
33361
 
32419
33362
  Object.defineProperty(exports, "__esModule", {
32420
33363
  value: true
32421
33364
  });
32422
33365
 
32423
33366
  function read(directory, settings, callback) {
32424
- if (!settings.stats && constants$3.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
33367
+ if (!settings.stats && constants$4.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
32425
33368
  return readdirWithFileTypes(directory, settings, callback);
32426
33369
  }
32427
33370
 
@@ -32527,19 +33470,19 @@ var async$1 = createCommonjsModule(function (module, exports) {
32527
33470
  callback(null, result);
32528
33471
  }
32529
33472
  });
32530
- unwrapExports(async$1);
32531
- var async_1$1 = async$1.read;
32532
- var async_2 = async$1.readdirWithFileTypes;
32533
- var async_3 = async$1.readdir;
33473
+ unwrapExports(async$2);
33474
+ var async_1$1 = async$2.read;
33475
+ var async_2 = async$2.readdirWithFileTypes;
33476
+ var async_3 = async$2.readdir;
32534
33477
 
32535
- var sync$1 = createCommonjsModule(function (module, exports) {
33478
+ var sync$2 = createCommonjsModule(function (module, exports) {
32536
33479
 
32537
33480
  Object.defineProperty(exports, "__esModule", {
32538
33481
  value: true
32539
33482
  });
32540
33483
 
32541
33484
  function read(directory, settings) {
32542
- if (!settings.stats && constants$3.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
33485
+ if (!settings.stats && constants$4.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
32543
33486
  return readdirWithFileTypes(directory, settings);
32544
33487
  }
32545
33488
 
@@ -32597,10 +33540,10 @@ var sync$1 = createCommonjsModule(function (module, exports) {
32597
33540
 
32598
33541
  exports.readdir = readdir;
32599
33542
  });
32600
- unwrapExports(sync$1);
32601
- var sync_1$1 = sync$1.read;
32602
- var sync_2 = sync$1.readdirWithFileTypes;
32603
- var sync_3 = sync$1.readdir;
33543
+ unwrapExports(sync$2);
33544
+ var sync_1$1 = sync$2.read;
33545
+ var sync_2 = sync$2.readdirWithFileTypes;
33546
+ var sync_3 = sync$2.readdir;
32604
33547
 
32605
33548
  var fs_1$3 = createCommonjsModule(function (module, exports) {
32606
33549
 
@@ -32608,12 +33551,12 @@ var fs_1$3 = createCommonjsModule(function (module, exports) {
32608
33551
  value: true
32609
33552
  });
32610
33553
  exports.FILE_SYSTEM_ADAPTER = {
32611
- lstat: fs$2.lstat,
32612
- stat: fs$2.stat,
32613
- lstatSync: fs$2.lstatSync,
32614
- statSync: fs$2.statSync,
32615
- readdir: fs$2.readdir,
32616
- readdirSync: fs$2.readdirSync
33554
+ lstat: fs$3.lstat,
33555
+ stat: fs$3.stat,
33556
+ lstatSync: fs$3.lstatSync,
33557
+ statSync: fs$3.statSync,
33558
+ readdir: fs$3.readdir,
33559
+ readdirSync: fs$3.readdirSync
32617
33560
  };
32618
33561
 
32619
33562
  function createFileSystemAdapter(fsMethods) {
@@ -32641,7 +33584,7 @@ var settings$1 = createCommonjsModule(function (module, exports) {
32641
33584
  this._options = _options;
32642
33585
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
32643
33586
  this.fs = fs_1$3.createFileSystemAdapter(this._options.fs);
32644
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$1.sep);
33587
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$2.sep);
32645
33588
  this.stats = this._getValue(this._options.stats, false);
32646
33589
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
32647
33590
  this.fsStatSettings = new out.Settings({
@@ -32670,17 +33613,17 @@ var out$1 = createCommonjsModule(function (module, exports) {
32670
33613
 
32671
33614
  function scandir(path, optionsOrSettingsOrCallback, callback) {
32672
33615
  if (typeof optionsOrSettingsOrCallback === 'function') {
32673
- return async$1.read(path, getSettings(), optionsOrSettingsOrCallback);
33616
+ return async$2.read(path, getSettings(), optionsOrSettingsOrCallback);
32674
33617
  }
32675
33618
 
32676
- async$1.read(path, getSettings(optionsOrSettingsOrCallback), callback);
33619
+ async$2.read(path, getSettings(optionsOrSettingsOrCallback), callback);
32677
33620
  }
32678
33621
 
32679
33622
  exports.scandir = scandir;
32680
33623
 
32681
33624
  function scandirSync(path, optionsOrSettings) {
32682
33625
  const settings = getSettings(optionsOrSettings);
32683
- return sync$1.read(path, settings);
33626
+ return sync$2.read(path, settings);
32684
33627
  }
32685
33628
 
32686
33629
  exports.scandirSync = scandirSync;
@@ -32962,7 +33905,7 @@ var reader = createCommonjsModule(function (module, exports) {
32962
33905
  });
32963
33906
  unwrapExports(reader);
32964
33907
 
32965
- var async$2 = createCommonjsModule(function (module, exports) {
33908
+ var async$3 = createCommonjsModule(function (module, exports) {
32966
33909
 
32967
33910
  Object.defineProperty(exports, "__esModule", {
32968
33911
  value: true
@@ -32973,7 +33916,7 @@ var async$2 = createCommonjsModule(function (module, exports) {
32973
33916
  super(_root, _settings);
32974
33917
  this._settings = _settings;
32975
33918
  this._scandir = out$1.scandir;
32976
- this._emitter = new events.EventEmitter();
33919
+ this._emitter = new events$1.EventEmitter();
32977
33920
  this._queue = queue(this._worker.bind(this), this._settings.concurrency);
32978
33921
  this._isFatalError = false;
32979
33922
  this._isDestroyed = false;
@@ -33082,9 +34025,9 @@ var async$2 = createCommonjsModule(function (module, exports) {
33082
34025
 
33083
34026
  exports.default = AsyncReader;
33084
34027
  });
33085
- unwrapExports(async$2);
34028
+ unwrapExports(async$3);
33086
34029
 
33087
- var async$3 = createCommonjsModule(function (module, exports) {
34030
+ var async$4 = createCommonjsModule(function (module, exports) {
33088
34031
 
33089
34032
  Object.defineProperty(exports, "__esModule", {
33090
34033
  value: true
@@ -33094,7 +34037,7 @@ var async$3 = createCommonjsModule(function (module, exports) {
33094
34037
  constructor(_root, _settings) {
33095
34038
  this._root = _root;
33096
34039
  this._settings = _settings;
33097
- this._reader = new async$2.default(this._root, this._settings);
34040
+ this._reader = new async$3.default(this._root, this._settings);
33098
34041
  this._storage = new Set();
33099
34042
  }
33100
34043
 
@@ -33126,9 +34069,9 @@ var async$3 = createCommonjsModule(function (module, exports) {
33126
34069
  callback(null, entries);
33127
34070
  }
33128
34071
  });
33129
- unwrapExports(async$3);
34072
+ unwrapExports(async$4);
33130
34073
 
33131
- var stream$1 = createCommonjsModule(function (module, exports) {
34074
+ var stream$2 = createCommonjsModule(function (module, exports) {
33132
34075
 
33133
34076
  Object.defineProperty(exports, "__esModule", {
33134
34077
  value: true
@@ -33138,8 +34081,8 @@ var stream$1 = createCommonjsModule(function (module, exports) {
33138
34081
  constructor(_root, _settings) {
33139
34082
  this._root = _root;
33140
34083
  this._settings = _settings;
33141
- this._reader = new async$2.default(this._root, this._settings);
33142
- this._stream = new stream$5.Readable({
34084
+ this._reader = new async$3.default(this._root, this._settings);
34085
+ this._stream = new stream$6.Readable({
33143
34086
  objectMode: true,
33144
34087
  read: () => {},
33145
34088
  destroy: this._reader.destroy.bind(this._reader)
@@ -33168,9 +34111,9 @@ var stream$1 = createCommonjsModule(function (module, exports) {
33168
34111
 
33169
34112
  exports.default = StreamProvider;
33170
34113
  });
33171
- unwrapExports(stream$1);
34114
+ unwrapExports(stream$2);
33172
34115
 
33173
- var sync$2 = createCommonjsModule(function (module, exports) {
34116
+ var sync$3 = createCommonjsModule(function (module, exports) {
33174
34117
 
33175
34118
  Object.defineProperty(exports, "__esModule", {
33176
34119
  value: true
@@ -33249,9 +34192,9 @@ var sync$2 = createCommonjsModule(function (module, exports) {
33249
34192
 
33250
34193
  exports.default = SyncReader;
33251
34194
  });
33252
- unwrapExports(sync$2);
34195
+ unwrapExports(sync$3);
33253
34196
 
33254
- var sync$3 = createCommonjsModule(function (module, exports) {
34197
+ var sync$4 = createCommonjsModule(function (module, exports) {
33255
34198
 
33256
34199
  Object.defineProperty(exports, "__esModule", {
33257
34200
  value: true
@@ -33261,7 +34204,7 @@ var sync$3 = createCommonjsModule(function (module, exports) {
33261
34204
  constructor(_root, _settings) {
33262
34205
  this._root = _root;
33263
34206
  this._settings = _settings;
33264
- this._reader = new sync$2.default(this._root, this._settings);
34207
+ this._reader = new sync$3.default(this._root, this._settings);
33265
34208
  }
33266
34209
 
33267
34210
  read() {
@@ -33272,7 +34215,7 @@ var sync$3 = createCommonjsModule(function (module, exports) {
33272
34215
 
33273
34216
  exports.default = SyncProvider;
33274
34217
  });
33275
- unwrapExports(sync$3);
34218
+ unwrapExports(sync$4);
33276
34219
 
33277
34220
  var settings$2 = createCommonjsModule(function (module, exports) {
33278
34221
 
@@ -33288,7 +34231,7 @@ var settings$2 = createCommonjsModule(function (module, exports) {
33288
34231
  this.deepFilter = this._getValue(this._options.deepFilter, null);
33289
34232
  this.entryFilter = this._getValue(this._options.entryFilter, null);
33290
34233
  this.errorFilter = this._getValue(this._options.errorFilter, null);
33291
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$1.sep);
34234
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$2.sep);
33292
34235
  this.fsScandirSettings = new out$1.Settings({
33293
34236
  followSymbolicLinks: this._options.followSymbolicLinks,
33294
34237
  fs: this._options.fs,
@@ -33317,17 +34260,17 @@ var out$2 = createCommonjsModule(function (module, exports) {
33317
34260
 
33318
34261
  function walk(directory, optionsOrSettingsOrCallback, callback) {
33319
34262
  if (typeof optionsOrSettingsOrCallback === 'function') {
33320
- return new async$3.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
34263
+ return new async$4.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
33321
34264
  }
33322
34265
 
33323
- new async$3.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
34266
+ new async$4.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
33324
34267
  }
33325
34268
 
33326
34269
  exports.walk = walk;
33327
34270
 
33328
34271
  function walkSync(directory, optionsOrSettings) {
33329
34272
  const settings = getSettings(optionsOrSettings);
33330
- const provider = new sync$3.default(directory, settings);
34273
+ const provider = new sync$4.default(directory, settings);
33331
34274
  return provider.read();
33332
34275
  }
33333
34276
 
@@ -33335,7 +34278,7 @@ var out$2 = createCommonjsModule(function (module, exports) {
33335
34278
 
33336
34279
  function walkStream(directory, optionsOrSettings) {
33337
34280
  const settings = getSettings(optionsOrSettings);
33338
- const provider = new stream$1.default(directory, settings);
34281
+ const provider = new stream$2.default(directory, settings);
33339
34282
  return provider.read();
33340
34283
  }
33341
34284
 
@@ -33372,7 +34315,7 @@ var reader$1 = createCommonjsModule(function (module, exports) {
33372
34315
  }
33373
34316
 
33374
34317
  _getFullEntryPath(filepath) {
33375
- return path$1.resolve(this._settings.cwd, filepath);
34318
+ return path$2.resolve(this._settings.cwd, filepath);
33376
34319
  }
33377
34320
 
33378
34321
  _makeEntry(stats, pattern) {
@@ -33399,7 +34342,7 @@ var reader$1 = createCommonjsModule(function (module, exports) {
33399
34342
  });
33400
34343
  unwrapExports(reader$1);
33401
34344
 
33402
- var stream$2 = createCommonjsModule(function (module, exports) {
34345
+ var stream$3 = createCommonjsModule(function (module, exports) {
33403
34346
 
33404
34347
  Object.defineProperty(exports, "__esModule", {
33405
34348
  value: true
@@ -33418,7 +34361,7 @@ var stream$2 = createCommonjsModule(function (module, exports) {
33418
34361
 
33419
34362
  static(patterns, options) {
33420
34363
  const filepaths = patterns.map(this._getFullEntryPath, this);
33421
- const stream = new stream$5.PassThrough({
34364
+ const stream = new stream$6.PassThrough({
33422
34365
  objectMode: true
33423
34366
  });
33424
34367
 
@@ -33465,7 +34408,7 @@ var stream$2 = createCommonjsModule(function (module, exports) {
33465
34408
 
33466
34409
  exports.default = ReaderStream;
33467
34410
  });
33468
- unwrapExports(stream$2);
34411
+ unwrapExports(stream$3);
33469
34412
 
33470
34413
  var matcher = createCommonjsModule(function (module, exports) {
33471
34414
 
@@ -33825,7 +34768,7 @@ var provider = createCommonjsModule(function (module, exports) {
33825
34768
  }
33826
34769
 
33827
34770
  _getRootDirectory(task) {
33828
- return path$1.resolve(this._settings.cwd, task.base);
34771
+ return path$2.resolve(this._settings.cwd, task.base);
33829
34772
  }
33830
34773
 
33831
34774
  _getReaderOptions(task) {
@@ -33864,7 +34807,7 @@ var provider = createCommonjsModule(function (module, exports) {
33864
34807
  });
33865
34808
  unwrapExports(provider);
33866
34809
 
33867
- var async$4 = createCommonjsModule(function (module, exports) {
34810
+ var async$5 = createCommonjsModule(function (module, exports) {
33868
34811
 
33869
34812
  Object.defineProperty(exports, "__esModule", {
33870
34813
  value: true
@@ -33873,7 +34816,7 @@ var async$4 = createCommonjsModule(function (module, exports) {
33873
34816
  class ProviderAsync extends provider.default {
33874
34817
  constructor() {
33875
34818
  super(...arguments);
33876
- this._reader = new stream$2.default(this._settings);
34819
+ this._reader = new stream$3.default(this._settings);
33877
34820
  }
33878
34821
 
33879
34822
  read(task) {
@@ -33902,9 +34845,9 @@ var async$4 = createCommonjsModule(function (module, exports) {
33902
34845
 
33903
34846
  exports.default = ProviderAsync;
33904
34847
  });
33905
- unwrapExports(async$4);
34848
+ unwrapExports(async$5);
33906
34849
 
33907
- var stream$3 = createCommonjsModule(function (module, exports) {
34850
+ var stream$4 = createCommonjsModule(function (module, exports) {
33908
34851
 
33909
34852
  Object.defineProperty(exports, "__esModule", {
33910
34853
  value: true
@@ -33913,7 +34856,7 @@ var stream$3 = createCommonjsModule(function (module, exports) {
33913
34856
  class ProviderStream extends provider.default {
33914
34857
  constructor() {
33915
34858
  super(...arguments);
33916
- this._reader = new stream$2.default(this._settings);
34859
+ this._reader = new stream$3.default(this._settings);
33917
34860
  }
33918
34861
 
33919
34862
  read(task) {
@@ -33922,7 +34865,7 @@ var stream$3 = createCommonjsModule(function (module, exports) {
33922
34865
  const options = this._getReaderOptions(task);
33923
34866
 
33924
34867
  const source = this.api(root, task, options);
33925
- const destination = new stream$5.Readable({
34868
+ const destination = new stream$6.Readable({
33926
34869
  objectMode: true,
33927
34870
  read: () => {}
33928
34871
  });
@@ -33943,9 +34886,9 @@ var stream$3 = createCommonjsModule(function (module, exports) {
33943
34886
 
33944
34887
  exports.default = ProviderStream;
33945
34888
  });
33946
- unwrapExports(stream$3);
34889
+ unwrapExports(stream$4);
33947
34890
 
33948
- var sync$4 = createCommonjsModule(function (module, exports) {
34891
+ var sync$5 = createCommonjsModule(function (module, exports) {
33949
34892
 
33950
34893
  Object.defineProperty(exports, "__esModule", {
33951
34894
  value: true
@@ -34002,9 +34945,9 @@ var sync$4 = createCommonjsModule(function (module, exports) {
34002
34945
 
34003
34946
  exports.default = ReaderSync;
34004
34947
  });
34005
- unwrapExports(sync$4);
34948
+ unwrapExports(sync$5);
34006
34949
 
34007
- var sync$5 = createCommonjsModule(function (module, exports) {
34950
+ var sync$6 = createCommonjsModule(function (module, exports) {
34008
34951
 
34009
34952
  Object.defineProperty(exports, "__esModule", {
34010
34953
  value: true
@@ -34013,7 +34956,7 @@ var sync$5 = createCommonjsModule(function (module, exports) {
34013
34956
  class ProviderSync extends provider.default {
34014
34957
  constructor() {
34015
34958
  super(...arguments);
34016
- this._reader = new sync$4.default(this._settings);
34959
+ this._reader = new sync$5.default(this._settings);
34017
34960
  }
34018
34961
 
34019
34962
  read(task) {
@@ -34037,21 +34980,21 @@ var sync$5 = createCommonjsModule(function (module, exports) {
34037
34980
 
34038
34981
  exports.default = ProviderSync;
34039
34982
  });
34040
- unwrapExports(sync$5);
34983
+ unwrapExports(sync$6);
34041
34984
 
34042
34985
  var settings$3 = createCommonjsModule(function (module, exports) {
34043
34986
 
34044
34987
  Object.defineProperty(exports, "__esModule", {
34045
34988
  value: true
34046
34989
  });
34047
- const CPU_COUNT = os.cpus().length;
34990
+ const CPU_COUNT = os$1.cpus().length;
34048
34991
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
34049
- lstat: fs$2.lstat,
34050
- lstatSync: fs$2.lstatSync,
34051
- stat: fs$2.stat,
34052
- statSync: fs$2.statSync,
34053
- readdir: fs$2.readdir,
34054
- readdirSync: fs$2.readdirSync
34992
+ lstat: fs$3.lstat,
34993
+ lstatSync: fs$3.lstatSync,
34994
+ stat: fs$3.stat,
34995
+ statSync: fs$3.statSync,
34996
+ readdir: fs$3.readdir,
34997
+ readdirSync: fs$3.readdirSync
34055
34998
  };
34056
34999
 
34057
35000
  class Settings {
@@ -34105,7 +35048,7 @@ var settings_1 = settings$3.DEFAULT_FILE_SYSTEM_ADAPTER;
34105
35048
 
34106
35049
  async function FastGlob(source, options) {
34107
35050
  assertPatternsInput(source);
34108
- const works = getWorks(source, async$4.default, options);
35051
+ const works = getWorks(source, async$5.default, options);
34109
35052
  const result = await Promise.all(works);
34110
35053
  return utils$4.array.flatten(result);
34111
35054
  } // https://github.com/typescript-eslint/typescript-eslint/issues/60
@@ -34115,7 +35058,7 @@ async function FastGlob(source, options) {
34115
35058
  (function (FastGlob) {
34116
35059
  function sync(source, options) {
34117
35060
  assertPatternsInput(source);
34118
- const works = getWorks(source, sync$5.default, options);
35061
+ const works = getWorks(source, sync$6.default, options);
34119
35062
  return utils$4.array.flatten(works);
34120
35063
  }
34121
35064
 
@@ -34123,7 +35066,7 @@ async function FastGlob(source, options) {
34123
35066
 
34124
35067
  function stream(source, options) {
34125
35068
  assertPatternsInput(source);
34126
- const works = getWorks(source, stream$3.default, options);
35069
+ const works = getWorks(source, stream$4.default, options);
34127
35070
  /**
34128
35071
  * The stream returned by the provider cannot work with an asynchronous iterator.
34129
35072
  * To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
@@ -34181,7 +35124,7 @@ var out$3 = FastGlob;
34181
35124
 
34182
35125
  const {
34183
35126
  promisify
34184
- } = util$3;
35127
+ } = util$4;
34185
35128
 
34186
35129
  async function isType(fsStatType, statsMethodName, filePath) {
34187
35130
  if (typeof filePath !== 'string') {
@@ -34189,7 +35132,7 @@ async function isType(fsStatType, statsMethodName, filePath) {
34189
35132
  }
34190
35133
 
34191
35134
  try {
34192
- const stats = await promisify(fs$2[fsStatType])(filePath);
35135
+ const stats = await promisify(fs$3[fsStatType])(filePath);
34193
35136
  return stats[statsMethodName]();
34194
35137
  } catch (error) {
34195
35138
  if (error.code === 'ENOENT') {
@@ -34206,7 +35149,7 @@ function isTypeSync(fsStatType, statsMethodName, filePath) {
34206
35149
  }
34207
35150
 
34208
35151
  try {
34209
- return fs$2[fsStatType](filePath)[statsMethodName]();
35152
+ return fs$3[fsStatType](filePath)[statsMethodName]();
34210
35153
  } catch (error) {
34211
35154
  if (error.code === 'ENOENT') {
34212
35155
  return false;
@@ -34235,11 +35178,11 @@ const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join(
34235
35178
 
34236
35179
  const getPath = (filepath, cwd) => {
34237
35180
  const pth = filepath[0] === '!' ? filepath.slice(1) : filepath;
34238
- return path$1.isAbsolute(pth) ? pth : path$1.join(cwd, pth);
35181
+ return path$2.isAbsolute(pth) ? pth : path$2.join(cwd, pth);
34239
35182
  };
34240
35183
 
34241
35184
  const addExtensions = (file, extensions) => {
34242
- if (path$1.extname(file)) {
35185
+ if (path$2.extname(file)) {
34243
35186
  return `**/${file}`;
34244
35187
  }
34245
35188
 
@@ -34256,18 +35199,18 @@ const getGlob = (directory, options) => {
34256
35199
  }
34257
35200
 
34258
35201
  if (options.files && options.extensions) {
34259
- return options.files.map(x => path$1.posix.join(directory, addExtensions(x, options.extensions)));
35202
+ return options.files.map(x => path$2.posix.join(directory, addExtensions(x, options.extensions)));
34260
35203
  }
34261
35204
 
34262
35205
  if (options.files) {
34263
- return options.files.map(x => path$1.posix.join(directory, `**/${x}`));
35206
+ return options.files.map(x => path$2.posix.join(directory, `**/${x}`));
34264
35207
  }
34265
35208
 
34266
35209
  if (options.extensions) {
34267
- return [path$1.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
35210
+ return [path$2.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
34268
35211
  }
34269
35212
 
34270
- return [path$1.posix.join(directory, '**')];
35213
+ return [path$2.posix.join(directory, '**')];
34271
35214
  };
34272
35215
 
34273
35216
  var dirGlob = async (input, options) => {
@@ -34286,7 +35229,7 @@ var dirGlob = async (input, options) => {
34286
35229
  return [].concat.apply([], globs); // eslint-disable-line prefer-spread
34287
35230
  };
34288
35231
 
34289
- var sync$6 = (input, options) => {
35232
+ var sync$7 = (input, options) => {
34290
35233
  options = Object.assign({
34291
35234
  cwd: process.cwd()
34292
35235
  }, options);
@@ -34298,7 +35241,7 @@ var sync$6 = (input, options) => {
34298
35241
  const globs = [].concat(input).map(x => pathType.isDirectorySync(getPath(x, options.cwd)) ? getGlob(x, options) : x);
34299
35242
  return [].concat.apply([], globs); // eslint-disable-line prefer-spread
34300
35243
  };
34301
- dirGlob.sync = sync$6;
35244
+ dirGlob.sync = sync$7;
34302
35245
 
34303
35246
  // A simple implementation of make-array
34304
35247
  function makeArray(subject) {
@@ -34709,20 +35652,20 @@ var slash$1 = path => {
34709
35652
 
34710
35653
  const {
34711
35654
  promisify: promisify$1
34712
- } = util$3;
35655
+ } = util$4;
34713
35656
  const DEFAULT_IGNORE = ['**/node_modules/**', '**/flow-typed/**', '**/coverage/**', '**/.git'];
34714
- const readFileP = promisify$1(fs$2.readFile);
35657
+ const readFileP = promisify$1(fs$3.readFile);
34715
35658
 
34716
35659
  const mapGitIgnorePatternTo = base => ignore => {
34717
35660
  if (ignore.startsWith('!')) {
34718
- return '!' + path$1.posix.join(base, ignore.slice(1));
35661
+ return '!' + path$2.posix.join(base, ignore.slice(1));
34719
35662
  }
34720
35663
 
34721
- return path$1.posix.join(base, ignore);
35664
+ return path$2.posix.join(base, ignore);
34722
35665
  };
34723
35666
 
34724
35667
  const parseGitIgnore = (content, options) => {
34725
- const base = slash$1(path$1.relative(options.cwd, path$1.dirname(options.fileName)));
35668
+ const base = slash$1(path$2.relative(options.cwd, path$2.dirname(options.fileName)));
34726
35669
  return content.split(/\r?\n/).filter(Boolean).filter(line => !line.startsWith('#')).map(mapGitIgnorePatternTo(base));
34727
35670
  };
34728
35671
 
@@ -34737,7 +35680,7 @@ const reduceIgnore = files => {
34737
35680
  };
34738
35681
 
34739
35682
  const ensureAbsolutePathForCwd = (cwd, p) => {
34740
- if (path$1.isAbsolute(p)) {
35683
+ if (path$2.isAbsolute(p)) {
34741
35684
  if (p.startsWith(cwd)) {
34742
35685
  return p;
34743
35686
  }
@@ -34745,15 +35688,15 @@ const ensureAbsolutePathForCwd = (cwd, p) => {
34745
35688
  throw new Error(`Path ${p} is not in cwd ${cwd}`);
34746
35689
  }
34747
35690
 
34748
- return path$1.join(cwd, p);
35691
+ return path$2.join(cwd, p);
34749
35692
  };
34750
35693
 
34751
35694
  const getIsIgnoredPredecate = (ignores, cwd) => {
34752
- return p => ignores.ignores(slash$1(path$1.relative(cwd, ensureAbsolutePathForCwd(cwd, p))));
35695
+ return p => ignores.ignores(slash$1(path$2.relative(cwd, ensureAbsolutePathForCwd(cwd, p))));
34753
35696
  };
34754
35697
 
34755
35698
  const getFile = async (file, cwd) => {
34756
- const filePath = path$1.join(cwd, file);
35699
+ const filePath = path$2.join(cwd, file);
34757
35700
  const content = await readFileP(filePath, 'utf8');
34758
35701
  return {
34759
35702
  cwd,
@@ -34763,8 +35706,8 @@ const getFile = async (file, cwd) => {
34763
35706
  };
34764
35707
 
34765
35708
  const getFileSync = (file, cwd) => {
34766
- const filePath = path$1.join(cwd, file);
34767
- const content = fs$2.readFileSync(filePath, 'utf8');
35709
+ const filePath = path$2.join(cwd, file);
35710
+ const content = fs$3.readFileSync(filePath, 'utf8');
34768
35711
  return {
34769
35712
  cwd,
34770
35713
  filePath,
@@ -34772,7 +35715,7 @@ const getFileSync = (file, cwd) => {
34772
35715
  };
34773
35716
  };
34774
35717
 
34775
- const normalizeOptions$2 = ({
35718
+ const normalizeOptions$3 = ({
34776
35719
  ignore = [],
34777
35720
  cwd = slash$1(process.cwd())
34778
35721
  } = {}) => {
@@ -34783,7 +35726,7 @@ const normalizeOptions$2 = ({
34783
35726
  };
34784
35727
 
34785
35728
  var gitignore = async options => {
34786
- options = normalizeOptions$2(options);
35729
+ options = normalizeOptions$3(options);
34787
35730
  const paths = await out$3('**/.gitignore', {
34788
35731
  ignore: DEFAULT_IGNORE.concat(options.ignore),
34789
35732
  cwd: options.cwd
@@ -34793,8 +35736,8 @@ var gitignore = async options => {
34793
35736
  return getIsIgnoredPredecate(ignores, options.cwd);
34794
35737
  };
34795
35738
 
34796
- var sync$7 = options => {
34797
- options = normalizeOptions$2(options);
35739
+ var sync$8 = options => {
35740
+ options = normalizeOptions$3(options);
34798
35741
  const paths = out$3.sync('**/.gitignore', {
34799
35742
  ignore: DEFAULT_IGNORE.concat(options.ignore),
34800
35743
  cwd: options.cwd
@@ -34803,11 +35746,11 @@ var sync$7 = options => {
34803
35746
  const ignores = reduceIgnore(files);
34804
35747
  return getIsIgnoredPredecate(ignores, options.cwd);
34805
35748
  };
34806
- gitignore.sync = sync$7;
35749
+ gitignore.sync = sync$8;
34807
35750
 
34808
35751
  const {
34809
35752
  Transform
34810
- } = stream$5;
35753
+ } = stream$6;
34811
35754
 
34812
35755
  class ObjectTransform extends Transform {
34813
35756
  constructor() {
@@ -34880,7 +35823,7 @@ const checkCwdOption = (options = {}) => {
34880
35823
  let stat;
34881
35824
 
34882
35825
  try {
34883
- stat = fs$2.statSync(options.cwd);
35826
+ stat = fs$3.statSync(options.cwd);
34884
35827
  } catch (_) {
34885
35828
  return;
34886
35829
  }
@@ -34890,7 +35833,7 @@ const checkCwdOption = (options = {}) => {
34890
35833
  }
34891
35834
  };
34892
35835
 
34893
- const getPathString = p => p.stats instanceof fs$2.Stats ? p.path : p;
35836
+ const getPathString = p => p.stats instanceof fs$3.Stats ? p.path : p;
34894
35837
 
34895
35838
  const generateGlobTasks = (patterns, taskOptions) => {
34896
35839
  patterns = arrayUnion([].concat(patterns));
@@ -34985,7 +35928,7 @@ var globby$1 = async (patterns, options) => {
34985
35928
  return arrayUnion(...paths).filter(path_ => !filter(getPathString(path_)));
34986
35929
  };
34987
35930
 
34988
- var sync$8 = (patterns, options) => {
35931
+ var sync$9 = (patterns, options) => {
34989
35932
  const globTasks = generateGlobTasks(patterns, options);
34990
35933
  const tasks = globTasks.reduce((tasks, task) => {
34991
35934
  const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
@@ -34995,7 +35938,7 @@ var sync$8 = (patterns, options) => {
34995
35938
  return tasks.reduce((matches, task) => arrayUnion(matches, out$3.sync(task.pattern, task.options)), []).filter(path_ => !filter(path_));
34996
35939
  };
34997
35940
 
34998
- var stream$4 = (patterns, options) => {
35941
+ var stream$5 = (patterns, options) => {
34999
35942
  const globTasks = generateGlobTasks(patterns, options);
35000
35943
  const tasks = globTasks.reduce((tasks, task) => {
35001
35944
  const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
@@ -35012,8 +35955,8 @@ var generateGlobTasks_1 = generateGlobTasks;
35012
35955
  var hasMagic = (patterns, options) => [].concat(patterns).some(pattern => out$3.isDynamicPattern(pattern, options));
35013
35956
 
35014
35957
  var gitignore_1 = gitignore;
35015
- globby$1.sync = sync$8;
35016
- globby$1.stream = stream$4;
35958
+ globby$1.sync = sync$9;
35959
+ globby$1.stream = stream$5;
35017
35960
  globby$1.generateGlobTasks = generateGlobTasks_1;
35018
35961
  globby$1.hasMagic = hasMagic;
35019
35962
  globby$1.gitignore = gitignore_1;
@@ -35592,7 +36535,7 @@ const {
35592
36535
  dedentToRoot: dedentToRoot$1
35593
36536
  },
35594
36537
  utils: {
35595
- mapDoc: mapDoc$2,
36538
+ mapDoc: mapDoc$1,
35596
36539
  stripTrailingHardline: stripTrailingHardline$1
35597
36540
  }
35598
36541
  } = document;
@@ -35612,34 +36555,10 @@ function embed(path, print, textToDoc, options) {
35612
36555
  const rawQuasis = node.quasis.map(q => q.value.raw);
35613
36556
  let placeholderID = 0;
35614
36557
  const text = rawQuasis.reduce((prevVal, currVal, idx) => {
35615
- if (idx === 0) {
35616
- return currVal;
35617
- }
35618
-
35619
- let specialSuffix = ""; // colons and whitespaces
35620
-
35621
- const trailingColons = currVal.match(/^(\s*)(:+)(\s*)/);
35622
-
35623
- if (trailingColons) {
35624
- const whitespaceBeforeColons = !!trailingColons[1];
35625
- const numberOfColons = trailingColons[2].length;
35626
- const whitespaceAfterColons = !!trailingColons[3];
35627
-
35628
- if (whitespaceAfterColons) ; else {
35629
- if (whitespaceBeforeColons) {
35630
- specialSuffix += "-whitespace";
35631
- }
35632
-
35633
- specialSuffix += "-colon".repeat(numberOfColons);
35634
- currVal = "\uffff" + currVal.slice(trailingColons[0].length);
35635
- }
35636
- }
35637
-
35638
- const placeholder = `@prettier-placeholder${specialSuffix}-${placeholderID++}-id`;
35639
- return prevVal + placeholder + currVal;
36558
+ return idx === 0 ? currVal : prevVal + "@prettier-placeholder-" + placeholderID++ + "-id" + currVal;
35640
36559
  }, "");
35641
36560
  const doc = textToDoc(text, {
35642
- parser: "css"
36561
+ parser: "scss"
35643
36562
  });
35644
36563
  return transformCssDoc(doc, path, print);
35645
36564
  }
@@ -35765,7 +36684,7 @@ function uncook(cookedValue) {
35765
36684
  }
35766
36685
 
35767
36686
  function escapeTemplateCharacters(doc, raw) {
35768
- return mapDoc$2(doc, currentDoc => {
36687
+ return mapDoc$1(doc, currentDoc => {
35769
36688
  if (!currentDoc.parts) {
35770
36689
  return currentDoc;
35771
36690
  }
@@ -35814,7 +36733,7 @@ function replacePlaceholders(quasisDoc, expressionDocs) {
35814
36733
 
35815
36734
  const expressions = expressionDocs.slice();
35816
36735
  let replaceCounter = 0;
35817
- const newDoc = mapDoc$2(quasisDoc, doc => {
36736
+ const newDoc = mapDoc$1(quasisDoc, doc => {
35818
36737
  if (!doc || !doc.parts || !doc.parts.length) {
35819
36738
  return doc;
35820
36739
  }
@@ -35838,19 +36757,12 @@ function replacePlaceholders(quasisDoc, expressionDocs) {
35838
36757
  if (atPlaceholderIndex > -1) {
35839
36758
  const placeholder = parts[atPlaceholderIndex];
35840
36759
  const rest = parts.slice(atPlaceholderIndex + 1);
35841
- const placeholderMatch = placeholder.match(/@prettier-placeholder((?:-whitespace|-colon)*)-(.+)-id([\s\S]*)/);
35842
- const specialSuffix = placeholderMatch[1]; // colons and whitespaces
35843
-
35844
- const placeholderID = placeholderMatch[2]; // When the expression has a suffix appended, like:
36760
+ const placeholderMatch = placeholder.match(/@prettier-placeholder-(.+)-id([\s\S]*)/);
36761
+ const placeholderID = placeholderMatch[1]; // When the expression has a suffix appended, like:
35845
36762
  // animation: linear ${time}s ease-out;
35846
36763
 
35847
- let suffix = placeholderMatch[3];
36764
+ const suffix = placeholderMatch[2];
35848
36765
  const expression = expressions[placeholderID];
35849
-
35850
- if (specialSuffix) {
35851
- suffix = specialSuffix.replace(/-whitespace/g, " ").replace(/-colon/g, ":") + suffix.replace(/^\uffff/g, "");
35852
- }
35853
-
35854
36766
  replaceCounter++;
35855
36767
  parts = parts.slice(0, atPlaceholderIndex).concat(["${", expression, "}" + suffix]).concat(rest);
35856
36768
  }
@@ -36036,7 +36948,7 @@ function printHtmlTemplateLiteral(path, print, textToDoc, parser, options) {
36036
36948
 
36037
36949
  const placeholderRegex = new RegExp(composePlaceholder("(\\d+)"), "g");
36038
36950
  let topLevelCount = 0;
36039
- const contentDoc = mapDoc$2(stripTrailingHardline$1(textToDoc(text, {
36951
+ const contentDoc = mapDoc$1(stripTrailingHardline$1(textToDoc(text, {
36040
36952
  parser,
36041
36953
 
36042
36954
  __onHtmlRoot(root) {
@@ -36246,7 +37158,7 @@ var build = createCommonjsModule(function (module, exports) {
36246
37158
  exports.print = print;
36247
37159
 
36248
37160
  function _os() {
36249
- const data = os;
37161
+ const data = os$1;
36250
37162
 
36251
37163
  _os = function () {
36252
37164
  return data;
@@ -36606,8 +37518,10 @@ function isTypeAnnotationAFunction(node, options) {
36606
37518
  return (node.type === "TypeAnnotation" || node.type === "TSTypeAnnotation") && node.typeAnnotation.type === "FunctionTypeAnnotation" && !node.static && !sameLocStart(node, node.typeAnnotation, options);
36607
37519
  }
36608
37520
 
37521
+ const binaryishNodeTypes = new Set(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
37522
+
36609
37523
  function isBinaryish(node) {
36610
- return node.type === "BinaryExpression" || node.type === "LogicalExpression" || node.type === "NGPipeExpression";
37524
+ return binaryishNodeTypes.has(node.type);
36611
37525
  }
36612
37526
 
36613
37527
  function isMemberish(node) {
@@ -37160,7 +38074,7 @@ function isSimpleCallArgument(node, depth) {
37160
38074
  }
37161
38075
 
37162
38076
  if (node.type === "ArrayExpression") {
37163
- return node.elements.every(isChildSimple);
38077
+ return node.elements.every(x => x == null || isChildSimple(x));
37164
38078
  }
37165
38079
 
37166
38080
  if (node.type === "CallExpression" || node.type === "OptionalCallExpression" || node.type === "NewExpression") {
@@ -37503,7 +38417,7 @@ function needsParens(path, options) {
37503
38417
  }
37504
38418
 
37505
38419
  if (pp === np && name === "right") {
37506
- assert.strictEqual(parent.right, node);
38420
+ assert$1.strictEqual(parent.right, node);
37507
38421
  return true;
37508
38422
  }
37509
38423
 
@@ -37834,7 +38748,7 @@ function needsParens(path, options) {
37834
38748
  }
37835
38749
 
37836
38750
  function isStatement(node) {
37837
- return node.type === "BlockStatement" || node.type === "BreakStatement" || node.type === "ClassBody" || node.type === "ClassDeclaration" || node.type === "ClassMethod" || node.type === "ClassProperty" || node.type === "ClassPrivateProperty" || node.type === "ContinueStatement" || node.type === "DebuggerStatement" || node.type === "DeclareClass" || node.type === "DeclareExportAllDeclaration" || node.type === "DeclareExportDeclaration" || node.type === "DeclareFunction" || node.type === "DeclareInterface" || node.type === "DeclareModule" || node.type === "DeclareModuleExports" || node.type === "DeclareVariable" || node.type === "DoWhileStatement" || node.type === "EnumDeclaration" || node.type === "ExportAllDeclaration" || node.type === "ExportDefaultDeclaration" || node.type === "ExportNamedDeclaration" || node.type === "ExpressionStatement" || node.type === "ForAwaitStatement" || node.type === "ForInStatement" || node.type === "ForOfStatement" || node.type === "ForStatement" || node.type === "FunctionDeclaration" || node.type === "IfStatement" || node.type === "ImportDeclaration" || node.type === "InterfaceDeclaration" || node.type === "LabeledStatement" || node.type === "MethodDefinition" || node.type === "ReturnStatement" || node.type === "SwitchStatement" || node.type === "ThrowStatement" || node.type === "TryStatement" || node.type === "TSDeclareFunction" || node.type === "TSEnumDeclaration" || node.type === "TSImportEqualsDeclaration" || node.type === "TSInterfaceDeclaration" || node.type === "TSModuleDeclaration" || node.type === "TSNamespaceExportDeclaration" || node.type === "TypeAlias" || node.type === "VariableDeclaration" || node.type === "WhileStatement" || node.type === "WithStatement";
38751
+ return node.type === "BlockStatement" || node.type === "BreakStatement" || node.type === "ClassBody" || node.type === "ClassDeclaration" || node.type === "ClassMethod" || node.type === "ClassProperty" || node.type === "ClassPrivateProperty" || node.type === "ContinueStatement" || node.type === "DebuggerStatement" || node.type === "DeclareClass" || node.type === "DeclareExportAllDeclaration" || node.type === "DeclareExportDeclaration" || node.type === "DeclareFunction" || node.type === "DeclareInterface" || node.type === "DeclareModule" || node.type === "DeclareModuleExports" || node.type === "DeclareVariable" || node.type === "DoWhileStatement" || node.type === "EnumDeclaration" || node.type === "ExportAllDeclaration" || node.type === "ExportDefaultDeclaration" || node.type === "ExportNamedDeclaration" || node.type === "ExpressionStatement" || node.type === "ForInStatement" || node.type === "ForOfStatement" || node.type === "ForStatement" || node.type === "FunctionDeclaration" || node.type === "IfStatement" || node.type === "ImportDeclaration" || node.type === "InterfaceDeclaration" || node.type === "LabeledStatement" || node.type === "MethodDefinition" || node.type === "ReturnStatement" || node.type === "SwitchStatement" || node.type === "ThrowStatement" || node.type === "TryStatement" || node.type === "TSDeclareFunction" || node.type === "TSEnumDeclaration" || node.type === "TSImportEqualsDeclaration" || node.type === "TSInterfaceDeclaration" || node.type === "TSModuleDeclaration" || node.type === "TSNamespaceExportDeclaration" || node.type === "TypeAlias" || node.type === "VariableDeclaration" || node.type === "WhileStatement" || node.type === "WithStatement";
37838
38752
  }
37839
38753
 
37840
38754
  function includesFunctionTypeInObjectType(node) {
@@ -38373,7 +39287,9 @@ function printPathNoParens(path, options, print, args) {
38373
39287
  /* sameIndent */
38374
39288
  true)); // Only force a trailing newline if there were any contents.
38375
39289
 
38376
- if (n.body.length || n.comments) {
39290
+ if (!n.body.every(({
39291
+ type
39292
+ }) => type === "EmptyStatement") || n.comments) {
38377
39293
  parts.push(hardline$4);
38378
39294
  }
38379
39295
 
@@ -38548,7 +39464,6 @@ function printPathNoParens(path, options, print, args) {
38548
39464
 
38549
39465
  case "SpreadElement":
38550
39466
  case "SpreadElementPattern":
38551
- case "RestProperty":
38552
39467
  case "SpreadProperty":
38553
39468
  case "SpreadPropertyPattern":
38554
39469
  case "RestElement":
@@ -38915,11 +39830,23 @@ function printPathNoParens(path, options, print, args) {
38915
39830
  });
38916
39831
 
38917
39832
  if (n.inexact) {
38918
- props.push(concat$6(separatorParts.concat(group$2("..."))));
39833
+ let printed;
39834
+
39835
+ if (hasDanglingComments$1(n)) {
39836
+ const hasLineComments = !n.comments.every(comments$1.isBlockComment);
39837
+ const printedDanglingComments = comments.printDanglingComments(path, options,
39838
+ /* sameIndent */
39839
+ true);
39840
+ printed = concat$6([printedDanglingComments, hasLineComments || hasNewline$4(options.originalText, options.locEnd(n.comments[n.comments.length - 1])) ? hardline$4 : line$4, "..."]);
39841
+ } else {
39842
+ printed = "...";
39843
+ }
39844
+
39845
+ props.push(concat$6(separatorParts.concat(printed)));
38919
39846
  }
38920
39847
 
38921
39848
  const lastElem = getLast$2(n[propertiesField]);
38922
- const canHaveTrailingSeparator = !(lastElem && (lastElem.type === "RestProperty" || lastElem.type === "RestElement" || hasNodeIgnoreComment$2(lastElem) || n.inexact));
39849
+ const canHaveTrailingSeparator = !(n.inexact || lastElem && (lastElem.type === "RestElement" || hasNodeIgnoreComment$2(lastElem)));
38923
39850
  let content;
38924
39851
 
38925
39852
  if (props.length === 0) {
@@ -39158,7 +40085,7 @@ function printPathNoParens(path, options, print, args) {
39158
40085
  // semicolon, except when they in the () part of for loops.
39159
40086
 
39160
40087
  const parentNode = path.getParentNode();
39161
- const isParentForLoop = parentNode.type === "ForStatement" || parentNode.type === "ForInStatement" || parentNode.type === "ForOfStatement" || parentNode.type === "ForAwaitStatement";
40088
+ const isParentForLoop = parentNode.type === "ForStatement" || parentNode.type === "ForInStatement" || parentNode.type === "ForOfStatement";
39162
40089
  const hasValue = n.declarations.some(decl => decl.init);
39163
40090
  let firstVariable;
39164
40091
 
@@ -39242,14 +40169,7 @@ function printPathNoParens(path, options, print, args) {
39242
40169
  return group$2(concat$6([n.each ? "for each (" : "for (", path.call(print, "left"), " in ", path.call(print, "right"), ")", adjustClause(n.body, path.call(print, "body"))]));
39243
40170
 
39244
40171
  case "ForOfStatement":
39245
- case "ForAwaitStatement":
39246
- {
39247
- // Babel 7 removed ForAwaitStatement in favor of ForOfStatement
39248
- // with `"await": true`:
39249
- // https://github.com/estree/estree/pull/138
39250
- const isAwait = n.type === "ForAwaitStatement" || n.await;
39251
- return group$2(concat$6(["for", isAwait ? " await" : "", " (", path.call(print, "left"), " of ", path.call(print, "right"), ")", adjustClause(n.body, path.call(print, "body"))]));
39252
- }
40172
+ return group$2(concat$6(["for", n.await ? " await" : "", " (", path.call(print, "left"), " of ", path.call(print, "right"), ")", adjustClause(n.body, path.call(print, "body"))]));
39253
40173
 
39254
40174
  case "DoWhileStatement":
39255
40175
  {
@@ -39399,8 +40319,8 @@ function printPathNoParens(path, options, print, args) {
39399
40319
  case "JSXExpressionContainer":
39400
40320
  {
39401
40321
  const parent = path.getParentNode(0);
39402
- const preventInline = parent.type === "JSXAttribute" && n.expression.comments && n.expression.comments.length > 0;
39403
- const shouldInline = !preventInline && (n.expression.type === "ArrayExpression" || n.expression.type === "ObjectExpression" || n.expression.type === "ArrowFunctionExpression" || n.expression.type === "CallExpression" || n.expression.type === "OptionalCallExpression" || n.expression.type === "FunctionExpression" || n.expression.type === "JSXEmptyExpression" || n.expression.type === "TemplateLiteral" || n.expression.type === "TaggedTemplateExpression" || n.expression.type === "DoExpression" || isJSXNode$1(parent) && (n.expression.type === "ConditionalExpression" || isBinaryish$1(n.expression)));
40322
+ const hasComments = n.expression.comments && n.expression.comments.length > 0;
40323
+ const shouldInline = n.expression.type === "JSXEmptyExpression" || !hasComments && (n.expression.type === "ArrayExpression" || n.expression.type === "ObjectExpression" || n.expression.type === "ArrowFunctionExpression" || n.expression.type === "CallExpression" || n.expression.type === "OptionalCallExpression" || n.expression.type === "FunctionExpression" || n.expression.type === "TemplateLiteral" || n.expression.type === "TaggedTemplateExpression" || n.expression.type === "DoExpression" || isJSXNode$1(parent) && (n.expression.type === "ConditionalExpression" || isBinaryish$1(n.expression)));
39404
40324
 
39405
40325
  if (shouldInline) {
39406
40326
  return group$2(concat$6(["{", path.call(print, "expression"), lineSuffixBoundary$1, "}"]));
@@ -39606,7 +40526,7 @@ function printPathNoParens(path, options, print, args) {
39606
40526
  if (!isSimple) {
39607
40527
  // Breaks at the template element boundaries (${ and }) are preferred to breaking
39608
40528
  // in the middle of a MemberExpression
39609
- if (n.expressions[i].comments && n.expressions[i].comments.length || n.expressions[i].type === "MemberExpression" || n.expressions[i].type === "OptionalMemberExpression" || n.expressions[i].type === "ConditionalExpression" || n.expressions[i].type === "LogicalExpression" || n.expressions[i].type === "BinaryExpression" || n.expressions[i].type === "SequenceExpression" || n.expressions[i].type === "TSAsExpression") {
40529
+ if (n.expressions[i].comments && n.expressions[i].comments.length || n.expressions[i].type === "MemberExpression" || n.expressions[i].type === "OptionalMemberExpression" || n.expressions[i].type === "ConditionalExpression" || n.expressions[i].type === "SequenceExpression" || n.expressions[i].type === "TSAsExpression" || isBinaryish$1(n.expressions[i])) {
39610
40530
  printed = concat$6([indent$3(concat$6([softline$2, printed])), softline$2]);
39611
40531
  }
39612
40532
  }
@@ -39997,7 +40917,7 @@ function printPathNoParens(path, options, print, args) {
39997
40917
  return nodeStr(n, options);
39998
40918
 
39999
40919
  case "NumberLiteralTypeAnnotation":
40000
- assert.strictEqual(typeof n.value, "number");
40920
+ assert$1.strictEqual(typeof n.value, "number");
40001
40921
 
40002
40922
  if (n.extra != null) {
40003
40923
  return printNumber$1(n.extra.raw);
@@ -40452,7 +41372,7 @@ function printPathNoParens(path, options, print, args) {
40452
41372
  return "";
40453
41373
 
40454
41374
  case "NGQuotedExpression":
40455
- return concat$6([n.prefix, ":", n.value]);
41375
+ return concat$6([n.prefix, ": ", n.value.trim()]);
40456
41376
 
40457
41377
  case "NGMicrosyntax":
40458
41378
  return concat$6(path.map((childPath, index) => concat$6([index === 0 ? "" : isNgForOf$1(childPath.getValue(), index, n) ? " " : concat$6([";", line$4]), print(childPath)]), "body"));
@@ -40614,7 +41534,7 @@ function printMethod(path, options, print) {
40614
41534
  parts.push("*");
40615
41535
  }
40616
41536
  } else {
40617
- assert.ok(kind === "get" || kind === "set");
41537
+ assert$1.ok(kind === "get" || kind === "set");
40618
41538
  parts.push(kind, " ");
40619
41539
  }
40620
41540
 
@@ -41097,7 +42017,7 @@ function printFlowDeclaration(path, parts) {
41097
42017
  const parentExportDecl = getParentExportDeclaration$1(path);
41098
42018
 
41099
42019
  if (parentExportDecl) {
41100
- assert.strictEqual(parentExportDecl.type, "DeclareExportDeclaration");
42020
+ assert$1.strictEqual(parentExportDecl.type, "DeclareExportDeclaration");
41101
42021
  } else {
41102
42022
  // If the parent node has type DeclareExportDeclaration, then it
41103
42023
  // will be responsible for printing the "declare" token. Otherwise
@@ -42009,7 +42929,7 @@ function printReturnAndThrowArgument(path, options, print) {
42009
42929
  if (node.argument) {
42010
42930
  if (returnArgumentHasLeadingComment$1(options, node.argument)) {
42011
42931
  parts.push(concat$6([" (", indent$3(concat$6([hardline$4, path.call(print, "argument")])), hardline$4, ")"]));
42012
- } else if (node.argument.type === "LogicalExpression" || node.argument.type === "BinaryExpression" || node.argument.type === "SequenceExpression") {
42932
+ } else if (isBinaryish$1(node.argument) || node.argument.type === "SequenceExpression") {
42013
42933
  parts.push(group$2(concat$6([ifBreak$1(" (", " "), indent$3(concat$6([softline$2, path.call(print, "argument")])), softline$2, ifBreak$1(")")])));
42014
42934
  } else {
42015
42935
  parts.push(" ", path.call(print, "argument"));
@@ -42903,7 +43823,7 @@ const {
42903
43823
  markAsRoot: markAsRoot$1
42904
43824
  },
42905
43825
  utils: {
42906
- mapDoc: mapDoc$3
43826
+ mapDoc: mapDoc$2
42907
43827
  }
42908
43828
  } = document;
42909
43829
 
@@ -42921,7 +43841,7 @@ function embed$1(path, print, textToDoc
42921
43841
  return null;
42922
43842
 
42923
43843
  function replaceNewlinesWithLiterallines(doc) {
42924
- return mapDoc$3(doc, currentDoc => typeof currentDoc === "string" && currentDoc.includes("\n") ? concat$8(currentDoc.split(/(\n)/g).map((v, i) => i % 2 === 0 ? v : literalline$3)) : currentDoc);
43844
+ return mapDoc$2(doc, currentDoc => typeof currentDoc === "string" && currentDoc.includes("\n") ? concat$8(currentDoc.split(/(\n)/g).map((v, i) => i % 2 === 0 ? v : literalline$3)) : currentDoc);
42925
43845
  }
42926
43846
  }
42927
43847
 
@@ -42932,7 +43852,7 @@ const DELIMITER_MAP = {
42932
43852
  "+++": "toml"
42933
43853
  };
42934
43854
 
42935
- function parse$4(text) {
43855
+ function parse$5(text) {
42936
43856
  const delimiterRegex = Object.keys(DELIMITER_MAP).map(escapeStringRegexp$2).join("|");
42937
43857
  const match = text.match( // trailing spaces after delimiters are allowed
42938
43858
  new RegExp(`^(${delimiterRegex})[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)`));
@@ -42955,7 +43875,7 @@ function parse$4(text) {
42955
43875
  };
42956
43876
  }
42957
43877
 
42958
- var frontMatter = parse$4;
43878
+ var frontMatter = parse$5;
42959
43879
 
42960
43880
  function hasPragma$1(text) {
42961
43881
  return pragma.hasPragma(frontMatter(text).content);
@@ -43206,7 +44126,7 @@ function getPropOfDeclNode(path) {
43206
44126
 
43207
44127
  function isSCSS(parser, text) {
43208
44128
  const hasExplicitParserChoice = parser === "less" || parser === "scss";
43209
- const IS_POSSIBLY_SCSS = /(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/;
44129
+ const IS_POSSIBLY_SCSS = /(\w\s*:\s*[^}:]+|#){|@import[^\n]+(?:url|,)/;
43210
44130
  return hasExplicitParserChoice ? parser === "scss" : IS_POSSIBLY_SCSS.test(text);
43211
44131
  }
43212
44132
 
@@ -43650,7 +44570,7 @@ function genericPrint$2(path, options, print) {
43650
44570
  return concat$9(["@", // If a Less file ends up being parsed with the SCSS parser, Less
43651
44571
  // variable declarations will be parsed as at-rules with names ending
43652
44572
  // with a colon, so keep the original case then.
43653
- isDetachedRulesetCallNode$1(node) || node.name.endsWith(":") ? node.name : maybeToLowerCase$1(node.name), node.params ? concat$9([isDetachedRulesetCallNode$1(node) ? "" : isTemplatePlaceholderNode$1(node) && /^\s*\n/.test(node.raws.afterName) ? /^\s*\n\s*\n/.test(node.raws.afterName) ? concat$9([hardline$7, hardline$7]) : hardline$7 : " ", path.call(print, "params")]) : "", node.selector ? indent$5(concat$9([" ", path.call(print, "selector")])) : "", node.value ? group$6(concat$9([" ", path.call(print, "value"), isSCSSControlDirectiveNode$1(node) ? hasParensAroundNode$1(node) ? " " : line$5 : ""])) : node.name === "else" ? " " : "", node.nodes ? concat$9([isSCSSControlDirectiveNode$1(node) ? "" : " ", "{", indent$5(concat$9([node.nodes.length > 0 ? softline$3 : "", printNodeSequence(path, options, print)])), softline$3, "}"]) : isTemplatePlaceholderNodeWithoutSemiColon ? "" : ";"]);
44573
+ isDetachedRulesetCallNode$1(node) || node.name.endsWith(":") ? node.name : maybeToLowerCase$1(node.name), node.params ? concat$9([isDetachedRulesetCallNode$1(node) ? "" : isTemplatePlaceholderNode$1(node) ? node.raws.afterName === "" ? "" : node.name.endsWith(":") ? " " : /^\s*\n\s*\n/.test(node.raws.afterName) ? concat$9([hardline$7, hardline$7]) : /^\s*\n/.test(node.raws.afterName) ? hardline$7 : " " : " ", path.call(print, "params")]) : "", node.selector ? indent$5(concat$9([" ", path.call(print, "selector")])) : "", node.value ? group$6(concat$9([" ", path.call(print, "value"), isSCSSControlDirectiveNode$1(node) ? hasParensAroundNode$1(node) ? " " : line$5 : ""])) : node.name === "else" ? " " : "", node.nodes ? concat$9([isSCSSControlDirectiveNode$1(node) ? "" : " ", "{", indent$5(concat$9([node.nodes.length > 0 ? softline$3 : "", printNodeSequence(path, options, print)])), softline$3, "}"]) : isTemplatePlaceholderNodeWithoutSemiColon ? "" : ";"]);
43654
44574
  }
43655
44575
  // postcss-media-query-parser
43656
44576
 
@@ -43856,6 +44776,11 @@ function genericPrint$2(path, options, print) {
43856
44776
 
43857
44777
  if (!iNextNode) {
43858
44778
  continue;
44779
+ } // styled.div` background: var(--${one}); `
44780
+
44781
+
44782
+ if (!iPrevNode && iNode.value === "--" && iNextNode.type === "value-atword") {
44783
+ continue;
43859
44784
  } // Ignore spaces before/after string interpolation (i.e. `"#{my-fn("_")}"`)
43860
44785
 
43861
44786
 
@@ -45501,7 +46426,7 @@ const {
45501
46426
  markAsRoot: markAsRoot$2
45502
46427
  },
45503
46428
  utils: {
45504
- mapDoc: mapDoc$4
46429
+ mapDoc: mapDoc$3
45505
46430
  }
45506
46431
  } = document;
45507
46432
  const {
@@ -45563,7 +46488,7 @@ function embed$2(path, print, textToDoc, options) {
45563
46488
  }
45564
46489
 
45565
46490
  function replaceNewlinesWithLiterallines(doc) {
45566
- return mapDoc$4(doc, currentDoc => typeof currentDoc === "string" && currentDoc.includes("\n") ? concat$c(currentDoc.split(/(\n)/g).map((v, i) => i % 2 === 0 ? v : literalline$4)) : currentDoc);
46491
+ return mapDoc$3(doc, currentDoc => typeof currentDoc === "string" && currentDoc.includes("\n") ? concat$c(currentDoc.split(/(\n)/g).map((v, i) => i % 2 === 0 ? v : literalline$4)) : currentDoc);
45567
46492
  }
45568
46493
  }
45569
46494
 
@@ -45868,7 +46793,7 @@ const {
45868
46793
  group: group$d
45869
46794
  },
45870
46795
  utils: {
45871
- mapDoc: mapDoc$5
46796
+ mapDoc: mapDoc$4
45872
46797
  },
45873
46798
  printer: {
45874
46799
  printDocToString: printDocToString$3
@@ -46436,7 +47361,7 @@ function shouldRemainTheSameContent(path) {
46436
47361
  }
46437
47362
 
46438
47363
  function normalizeDoc(doc) {
46439
- return mapDoc$5(doc, currentDoc => {
47364
+ return mapDoc$4(doc, currentDoc => {
46440
47365
  if (!currentDoc.parts) {
46441
47366
  return currentDoc;
46442
47367
  }
@@ -47032,7 +47957,7 @@ var colgroup = [
47032
47957
  "valign",
47033
47958
  "width"
47034
47959
  ];
47035
- var data = [
47960
+ var data$1 = [
47036
47961
  "value"
47037
47962
  ];
47038
47963
  var del$1 = [
@@ -47525,7 +48450,7 @@ var index$1 = {
47525
48450
  caption: caption,
47526
48451
  col: col,
47527
48452
  colgroup: colgroup,
47528
- data: data,
48453
+ data: data$1,
47529
48454
  del: del$1,
47530
48455
  details: details,
47531
48456
  dfn: dfn,
@@ -47608,7 +48533,7 @@ var htmlElementAttributes = /*#__PURE__*/Object.freeze({
47608
48533
  caption: caption,
47609
48534
  col: col,
47610
48535
  colgroup: colgroup,
47611
- data: data,
48536
+ data: data$1,
47612
48537
  del: del$1,
47613
48538
  details: details,
47614
48539
  dfn: dfn,
@@ -47785,7 +48710,7 @@ function isTextLikeNode(node) {
47785
48710
  }
47786
48711
 
47787
48712
  function isScriptLikeTag(node) {
47788
- return node.type === "element" && (node.fullName === "script" || node.fullName === "style" || node.fullName === "svg:style");
48713
+ return node.type === "element" && (node.fullName === "script" || node.fullName === "style" || node.fullName === "svg:style" || isUnknownNamespace(node) && (node.name === "script" || node.name === "style"));
47789
48714
  }
47790
48715
 
47791
48716
  function isFrontMatterNode(node) {
@@ -48668,7 +49593,7 @@ function deepUnique(array) {
48668
49593
  });
48669
49594
  }
48670
49595
 
48671
- var parse$5 = string => {
49596
+ var parse$6 = string => {
48672
49597
  return deepUnique(string.split(',').map(part => {
48673
49598
  const result = {};
48674
49599
  part.trim().split(/\s+/).forEach((element, index) => {
@@ -48721,7 +49646,7 @@ var stringify$2 = array => {
48721
49646
  };
48722
49647
 
48723
49648
  var srcset = {
48724
- parse: parse$5,
49649
+ parse: parse$6,
48725
49650
  stringify: stringify$2
48726
49651
  };
48727
49652
 
@@ -48786,7 +49711,7 @@ const {
48786
49711
  builders,
48787
49712
  utils: {
48788
49713
  stripTrailingHardline: stripTrailingHardline$2,
48789
- mapDoc: mapDoc$6
49714
+ mapDoc: mapDoc$5
48790
49715
  }
48791
49716
  } = document;
48792
49717
  const {
@@ -48900,7 +49825,7 @@ function embed$4(path, print, textToDoc, options) {
48900
49825
  }, opts)), options);
48901
49826
 
48902
49827
  if (embeddedAttributeValueDoc) {
48903
- return concat$g([node.rawName, '="', group$f(mapDoc$6(embeddedAttributeValueDoc, doc => typeof doc === "string" ? doc.replace(/"/g, "&quot;") : doc)), '"']);
49828
+ return concat$g([node.rawName, '="', group$f(mapDoc$5(embeddedAttributeValueDoc, doc => typeof doc === "string" ? doc.replace(/"/g, "&quot;") : doc)), '"']);
48904
49829
  }
48905
49830
 
48906
49831
  break;
@@ -49108,7 +50033,7 @@ function printChildren$2(path, options, print) {
49108
50033
  }
49109
50034
 
49110
50035
  function printBetweenLine(prevNode, nextNode) {
49111
- return isTextLikeNode$1(prevNode) && isTextLikeNode$1(nextNode) ? prevNode.isTrailingSpaceSensitive ? prevNode.hasTrailingSpaces ? preferHardlineAsLeadingSpaces$1(nextNode) ? hardline$c : line$a : "" : preferHardlineAsLeadingSpaces$1(nextNode) ? hardline$c : softline$7 : needsToBorrowNextOpeningTagStartMarker(prevNode) && (
50036
+ return isTextLikeNode$1(prevNode) && isTextLikeNode$1(nextNode) ? prevNode.isTrailingSpaceSensitive ? prevNode.hasTrailingSpaces ? preferHardlineAsLeadingSpaces$1(nextNode) ? hardline$c : line$a : "" : preferHardlineAsLeadingSpaces$1(nextNode) ? hardline$c : softline$7 : needsToBorrowNextOpeningTagStartMarker(prevNode) && (hasPrettierIgnore$6(nextNode) ||
49112
50037
  /**
49113
50038
  * 123<a
49114
50039
  * ~
@@ -49296,7 +50221,7 @@ function printOpeningTagStartMarker(node) {
49296
50221
  }
49297
50222
 
49298
50223
  function printOpeningTagEndMarker(node) {
49299
- assert(!node.isSelfClosing);
50224
+ assert$1(!node.isSelfClosing);
49300
50225
 
49301
50226
  switch (node.type) {
49302
50227
  case "ieConditionalComment":
@@ -49315,7 +50240,7 @@ function printOpeningTagEndMarker(node) {
49315
50240
  }
49316
50241
 
49317
50242
  function printClosingTagStartMarker(node, options) {
49318
- assert(!node.isSelfClosing);
50243
+ assert$1(!node.isSelfClosing);
49319
50244
 
49320
50245
  if (shouldNotPrintClosingTag$1(node, options)) {
49321
50246
  return "";
@@ -50556,11 +51481,11 @@ languageCss, {
50556
51481
  },
50557
51482
 
50558
51483
  get less() {
50559
- return require("./parser-postcss").parsers.css;
51484
+ return require("./parser-postcss").parsers.less;
50560
51485
  },
50561
51486
 
50562
51487
  get scss() {
50563
- return require("./parser-postcss").parsers.css;
51488
+ return require("./parser-postcss").parsers.scss;
50564
51489
  }
50565
51490
 
50566
51491
  }
@@ -50663,10 +51588,10 @@ function load(plugins, pluginSearchDirs) {
50663
51588
 
50664
51589
  try {
50665
51590
  // try local files
50666
- requirePath = require.resolve(path$1.resolve(process.cwd(), pluginName));
51591
+ requirePath = resolve_1(path$2.resolve(process.cwd(), pluginName));
50667
51592
  } catch (_) {
50668
51593
  // try node modules
50669
- requirePath = require.resolve(pluginName, {
51594
+ requirePath = resolve_1(pluginName, {
50670
51595
  paths: [process.cwd()]
50671
51596
  });
50672
51597
  }
@@ -50677,8 +51602,8 @@ function load(plugins, pluginSearchDirs) {
50677
51602
  };
50678
51603
  });
50679
51604
  const externalAutoLoadPluginInfos = pluginSearchDirs.map(pluginSearchDir => {
50680
- const resolvedPluginSearchDir = path$1.resolve(process.cwd(), pluginSearchDir);
50681
- const nodeModulesDir = path$1.resolve(resolvedPluginSearchDir, "node_modules"); // In some fringe cases (ex: files "mounted" as virtual directories), the
51605
+ const resolvedPluginSearchDir = path$2.resolve(process.cwd(), pluginSearchDir);
51606
+ const nodeModulesDir = path$2.resolve(resolvedPluginSearchDir, "node_modules"); // In some fringe cases (ex: files "mounted" as virtual directories), the
50682
51607
  // isDirectory(resolvedPluginSearchDir) check might be false even though
50683
51608
  // the node_modules actually exists.
50684
51609
 
@@ -50688,7 +51613,7 @@ function load(plugins, pluginSearchDirs) {
50688
51613
 
50689
51614
  return memoizedSearch(nodeModulesDir).map(pluginName => ({
50690
51615
  name: pluginName,
50691
- requirePath: require.resolve(pluginName, {
51616
+ requirePath: resolve_1(pluginName, {
50692
51617
  paths: [resolvedPluginSearchDir]
50693
51618
  })
50694
51619
  }));
@@ -50704,12 +51629,12 @@ function findPluginsInNodeModules(nodeModulesDir) {
50704
51629
  cwd: nodeModulesDir,
50705
51630
  expandDirectories: false
50706
51631
  });
50707
- return pluginPackageJsonPaths.map(path$1.dirname);
51632
+ return pluginPackageJsonPaths.map(path$2.dirname);
50708
51633
  }
50709
51634
 
50710
51635
  function isDirectory$1(dir) {
50711
51636
  try {
50712
- return fs$2.statSync(dir).isDirectory();
51637
+ return fs$3.statSync(dir).isDirectory();
50713
51638
  } catch (e) {
50714
51639
  return false;
50715
51640
  }
@@ -51047,7 +51972,7 @@ value = function () {
51047
51972
  // functions and variables.
51048
51973
 
51049
51974
 
51050
- var parse$6 = function (source, reviver) {
51975
+ var parse$7 = function (source, reviver) {
51051
51976
  var result;
51052
51977
  text = source;
51053
51978
  at = 0;
@@ -51241,10 +52166,10 @@ var stringify$3 = function (value, replacer, space) {
51241
52166
  });
51242
52167
  };
51243
52168
 
51244
- var parse$7 = parse$6;
52169
+ var parse$8 = parse$7;
51245
52170
  var stringify$4 = stringify$3;
51246
52171
  var jsonify = {
51247
- parse: parse$7,
52172
+ parse: parse$8,
51248
52173
  stringify: stringify$4
51249
52174
  };
51250
52175
 
@@ -52165,7 +53090,7 @@ function* expandPatterns(context) {
52165
53090
  continue;
52166
53091
  }
52167
53092
 
52168
- const relativePath = path$1.relative(cwd, pathOrError); // filter out duplicates
53093
+ const relativePath = path$2.relative(cwd, pathOrError); // filter out duplicates
52169
53094
 
52170
53095
  if (seen.has(relativePath)) {
52171
53096
  continue;
@@ -52206,7 +53131,7 @@ function* expandPatternsInternal(context) {
52206
53131
  const entries = [];
52207
53132
 
52208
53133
  for (const pattern of context.filePatterns) {
52209
- const absolutePath = path$1.resolve(cwd, pattern);
53134
+ const absolutePath = path$2.resolve(cwd, pattern);
52210
53135
 
52211
53136
  if (containsIgnoredPathSegment(absolutePath, cwd, silentlyIgnoredDirs)) {
52212
53137
  continue;
@@ -52297,7 +53222,7 @@ const errorMessages = {
52297
53222
  */
52298
53223
 
52299
53224
  function containsIgnoredPathSegment(absolutePath, cwd, ignoredDirectories) {
52300
- return path$1.relative(cwd, absolutePath).split(path$1.sep).some(dir => ignoredDirectories[dir]);
53225
+ return path$2.relative(cwd, absolutePath).split(path$2.sep).some(dir => ignoredDirectories[dir]);
52301
53226
  }
52302
53227
  /**
52303
53228
  * @param {string[]} paths
@@ -52316,7 +53241,7 @@ function sortPaths(paths) {
52316
53241
 
52317
53242
  function statSafeSync(filePath) {
52318
53243
  try {
52319
- return fs$2.statSync(filePath);
53244
+ return fs$3.statSync(filePath);
52320
53245
  } catch (error) {
52321
53246
  /* istanbul ignore next */
52322
53247
  if (error.code !== "ENOENT") {
@@ -52338,7 +53263,7 @@ function escapePathForGlob(path) {
52338
53263
  .replace(/\0/g, "@(\\\\)"); // Workaround for fast-glob#262 (part 2)
52339
53264
  }
52340
53265
 
52341
- const isWindows = path$1.sep === "\\";
53266
+ const isWindows = path$2.sep === "\\";
52342
53267
  /**
52343
53268
  * Using backslashes in globs is probably not okay, but not accepting
52344
53269
  * backslashes as path separators on Windows is even more not okay.
@@ -52593,8 +53518,8 @@ function diff(a, b) {
52593
53518
  function handleError(context, filename, error) {
52594
53519
  if (error instanceof errors.UndefinedParserError) {
52595
53520
  if (context.argv.write && isTty()) {
52596
- readline.clearLine(process.stdout, 0);
52597
- readline.cursorTo(process.stdout, 0, null);
53521
+ readline$1.clearLine(process.stdout, 0);
53522
+ readline$1.cursorTo(process.stdout, 0, null);
52598
53523
  }
52599
53524
 
52600
53525
  if (!context.argv.check && !context.argv["list-different"]) {
@@ -52637,7 +53562,7 @@ function logResolvedConfigPathOrDie(context) {
52637
53562
  const configFile = prettier.resolveConfigFile.sync(context.argv["find-config-path"]);
52638
53563
 
52639
53564
  if (configFile) {
52640
- context.logger.log(path$1.relative(process.cwd(), configFile));
53565
+ context.logger.log(path$2.relative(process.cwd(), configFile));
52641
53566
  } else {
52642
53567
  process.exit(1);
52643
53568
  }
@@ -52855,11 +53780,11 @@ function applyConfigPrecedence(context, options) {
52855
53780
  }
52856
53781
 
52857
53782
  function formatStdin(context) {
52858
- const filepath = context.argv["stdin-filepath"] ? path$1.resolve(process.cwd(), context.argv["stdin-filepath"]) : process.cwd();
53783
+ const filepath = context.argv["stdin-filepath"] ? path$2.resolve(process.cwd(), context.argv["stdin-filepath"]) : process.cwd();
52859
53784
  const ignorer = createIgnorerFromContextOrDie(context); // If there's an ignore-path set, the filename must be relative to the
52860
53785
  // ignore path, not the current working directory.
52861
53786
 
52862
- const relativeFilepath = context.argv["ignore-path"] ? path$1.relative(path$1.dirname(context.argv["ignore-path"]), filepath) : path$1.relative(process.cwd(), filepath);
53787
+ const relativeFilepath = context.argv["ignore-path"] ? path$2.relative(path$2.dirname(context.argv["ignore-path"]), filepath) : path$2.relative(process.cwd(), filepath);
52863
53788
  thirdParty.getStream(process.stdin).then(input => {
52864
53789
  if (relativeFilepath && ignorer.filter([relativeFilepath]).length === 0) {
52865
53790
  writeOutput(context, {
@@ -52910,7 +53835,7 @@ function formatFiles(context) {
52910
53835
  const filename = pathOrError; // If there's an ignore-path set, the filename must be relative to the
52911
53836
  // ignore path, not the current working directory.
52912
53837
 
52913
- const ignoreFilename = context.argv["ignore-path"] ? path$1.relative(path$1.dirname(context.argv["ignore-path"]), filename) : filename;
53838
+ const ignoreFilename = context.argv["ignore-path"] ? path$2.relative(path$2.dirname(context.argv["ignore-path"]), filename) : filename;
52914
53839
  const fileIgnored = ignorer.filter([ignoreFilename]).length === 0;
52915
53840
 
52916
53841
  if (fileIgnored && (context.argv["debug-check"] || context.argv.write || context.argv.check || context.argv["list-different"])) {
@@ -52930,7 +53855,7 @@ function formatFiles(context) {
52930
53855
  let input;
52931
53856
 
52932
53857
  try {
52933
- input = fs$2.readFileSync(filename, "utf8");
53858
+ input = fs$3.readFileSync(filename, "utf8");
52934
53859
  } catch (error) {
52935
53860
  // Add newline to split errors from filename line.
52936
53861
  context.logger.log("");
@@ -52963,8 +53888,8 @@ function formatFiles(context) {
52963
53888
 
52964
53889
  if (isTty()) {
52965
53890
  // Remove previously printed filename to log it with duration.
52966
- readline.clearLine(process.stdout, 0);
52967
- readline.cursorTo(process.stdout, 0, null);
53891
+ readline$1.clearLine(process.stdout, 0);
53892
+ readline$1.cursorTo(process.stdout, 0, null);
52968
53893
  }
52969
53894
 
52970
53895
  if (context.argv.write) {
@@ -52976,7 +53901,7 @@ function formatFiles(context) {
52976
53901
  }
52977
53902
 
52978
53903
  try {
52979
- fs$2.writeFileSync(filename, output, "utf8");
53904
+ fs$3.writeFileSync(filename, output, "utf8");
52980
53905
  } catch (error) {
52981
53906
  context.logger.error(`Unable to write file: ${filename}\n${error.message}`); // Don't exit the process if one file failed
52982
53907
 
@@ -53338,7 +54263,7 @@ function normalizeContextArgv(context, keys) {
53338
54263
  } //------------------------------context-util-end--------------------------------
53339
54264
 
53340
54265
 
53341
- var util$2 = {
54266
+ var util$3 = {
53342
54267
  createContext,
53343
54268
  createDetailedOptionMap,
53344
54269
  createDetailedUsage,
@@ -53355,10 +54280,10 @@ var util$2 = {
53355
54280
  pleaseUpgradeNode(require$$1);
53356
54281
 
53357
54282
  function run(args) {
53358
- const context = util$2.createContext(args);
54283
+ const context = util$3.createContext(args);
53359
54284
 
53360
54285
  try {
53361
- util$2.initContext(context);
54286
+ util$3.initContext(context);
53362
54287
  context.logger.debug(`normalized argv: ${JSON.stringify(context.argv)}`);
53363
54288
 
53364
54289
  if (context.argv.check && context.argv["list-different"]) {
@@ -53387,7 +54312,7 @@ function run(args) {
53387
54312
  }
53388
54313
 
53389
54314
  if (context.argv.help !== undefined) {
53390
- context.logger.log(typeof context.argv.help === "string" && context.argv.help !== "" ? util$2.createDetailedUsage(context, context.argv.help) : util$2.createUsage(context));
54315
+ context.logger.log(typeof context.argv.help === "string" && context.argv.help !== "" ? util$3.createDetailedUsage(context, context.argv.help) : util$3.createUsage(context));
53391
54316
  process.exit(0);
53392
54317
  }
53393
54318
 
@@ -53402,15 +54327,15 @@ function run(args) {
53402
54327
  const useStdin = !hasFilePatterns && (!process.stdin.isTTY || context.args["stdin-filepath"]);
53403
54328
 
53404
54329
  if (context.argv["find-config-path"]) {
53405
- util$2.logResolvedConfigPathOrDie(context);
54330
+ util$3.logResolvedConfigPathOrDie(context);
53406
54331
  } else if (context.argv["file-info"]) {
53407
- util$2.logFileInfoOrDie(context);
54332
+ util$3.logFileInfoOrDie(context);
53408
54333
  } else if (useStdin) {
53409
- util$2.formatStdin(context);
54334
+ util$3.formatStdin(context);
53410
54335
  } else if (hasFilePatterns) {
53411
- util$2.formatFiles(context);
54336
+ util$3.formatFiles(context);
53412
54337
  } else {
53413
- context.logger.log(util$2.createUsage(context));
54338
+ context.logger.log(util$3.createUsage(context));
53414
54339
  process.exit(1);
53415
54340
  }
53416
54341
  } catch (error) {