prettier 2.0.0 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -10
- package/bin-prettier.js +568 -496
- package/doc.js +9 -3
- package/index.js +155 -121
- package/package.json +1 -1
- package/parser-babel.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-graphql.js +1 -1
- package/parser-html.js +1 -1
- package/parser-markdown.js +8 -2
- package/parser-postcss.js +2 -2
- package/parser-typescript.js +3 -3
- package/standalone.js +136 -114
- package/third-party.js +1 -1
package/bin-prettier.js
CHANGED
|
@@ -13,8 +13,44 @@ var stream$5 = _interopDefault(require('stream'));
|
|
|
13
13
|
var events = _interopDefault(require('events'));
|
|
14
14
|
var readline = _interopDefault(require('readline'));
|
|
15
15
|
|
|
16
|
+
var semverCompare = function cmp(a, b) {
|
|
17
|
+
var pa = a.split('.');
|
|
18
|
+
var pb = b.split('.');
|
|
19
|
+
|
|
20
|
+
for (var i = 0; i < 3; i++) {
|
|
21
|
+
var na = Number(pa[i]);
|
|
22
|
+
var nb = Number(pb[i]);
|
|
23
|
+
if (na > nb) return 1;
|
|
24
|
+
if (nb > na) return -1;
|
|
25
|
+
if (!isNaN(na) && isNaN(nb)) return 1;
|
|
26
|
+
if (isNaN(na) && !isNaN(nb)) return -1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return 0;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var pleaseUpgradeNode = function pleaseUpgradeNode(pkg, opts) {
|
|
33
|
+
var opts = opts || {};
|
|
34
|
+
var requiredVersion = pkg.engines.node.replace('>=', '');
|
|
35
|
+
var currentVersion = process.version.replace('v', '');
|
|
36
|
+
|
|
37
|
+
if (semverCompare(currentVersion, requiredVersion) === -1) {
|
|
38
|
+
if (opts.message) {
|
|
39
|
+
console.error(opts.message(requiredVersion));
|
|
40
|
+
} else {
|
|
41
|
+
console.error(pkg.name + ' requires at least version ' + requiredVersion + ' of Node, please upgrade');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (opts.hasOwnProperty('exitCode')) {
|
|
45
|
+
process.exit(opts.exitCode);
|
|
46
|
+
} else {
|
|
47
|
+
process.exit(1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
16
52
|
var name = "prettier";
|
|
17
|
-
var version = "2.0.
|
|
53
|
+
var version = "2.0.4";
|
|
18
54
|
var description = "Prettier is an opinionated code formatter";
|
|
19
55
|
var bin = "./bin/prettier.js";
|
|
20
56
|
var repository = "prettier/prettier";
|
|
@@ -28,14 +64,14 @@ var engines = {
|
|
|
28
64
|
var dependencies = {
|
|
29
65
|
"@angular/compiler": "9.0.5",
|
|
30
66
|
"@babel/code-frame": "7.8.0",
|
|
31
|
-
"@babel/parser": "7.9.
|
|
32
|
-
"@glimmer/syntax": "0.
|
|
67
|
+
"@babel/parser": "7.9.4",
|
|
68
|
+
"@glimmer/syntax": "0.50.0",
|
|
33
69
|
"@iarna/toml": "2.2.3",
|
|
34
|
-
"@typescript-eslint/typescript-estree": "2.
|
|
70
|
+
"@typescript-eslint/typescript-estree": "2.26.0",
|
|
35
71
|
"angular-estree-parser": "1.3.0",
|
|
36
72
|
"angular-html-parser": "1.4.0",
|
|
37
73
|
camelcase: "5.3.1",
|
|
38
|
-
chalk: "
|
|
74
|
+
chalk: "4.0.0",
|
|
39
75
|
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
|
|
40
76
|
"cjk-regex": "2.0.0",
|
|
41
77
|
cosmiconfig: "6.0.0",
|
|
@@ -49,24 +85,25 @@ var dependencies = {
|
|
|
49
85
|
"fast-glob": "3.2.2",
|
|
50
86
|
"find-parent-dir": "0.3.0",
|
|
51
87
|
"find-project-root": "1.1.1",
|
|
52
|
-
"flow-parser": "0.
|
|
88
|
+
"flow-parser": "0.122.0",
|
|
53
89
|
"get-stream": "5.1.0",
|
|
54
90
|
globby: "11.0.0",
|
|
55
|
-
graphql: "
|
|
91
|
+
graphql: "15.0.0",
|
|
56
92
|
"html-element-attributes": "2.2.1",
|
|
57
93
|
"html-styles": "1.0.0",
|
|
58
94
|
"html-tag-names": "1.1.5",
|
|
59
95
|
ignore: "4.0.6",
|
|
60
|
-
"jest-docblock": "25.
|
|
96
|
+
"jest-docblock": "25.2.6",
|
|
61
97
|
"json-stable-stringify": "1.0.1",
|
|
62
98
|
leven: "3.1.0",
|
|
63
99
|
"lines-and-columns": "1.1.6",
|
|
64
|
-
"linguist-languages": "7.
|
|
100
|
+
"linguist-languages": "7.9.0",
|
|
65
101
|
lodash: "4.17.15",
|
|
66
102
|
mem: "6.0.1",
|
|
67
103
|
minimatch: "3.0.4",
|
|
68
104
|
minimist: "1.2.5",
|
|
69
105
|
"n-readlines": "1.0.0",
|
|
106
|
+
"please-upgrade-node": "3.2.0",
|
|
70
107
|
"postcss-less": "3.1.4",
|
|
71
108
|
"postcss-media-query-parser": "0.2.3",
|
|
72
109
|
"postcss-scss": "2.0.0",
|
|
@@ -80,40 +117,39 @@ var dependencies = {
|
|
|
80
117
|
"string-width": "4.2.0",
|
|
81
118
|
typescript: "3.8.3",
|
|
82
119
|
"unicode-regex": "3.0.0",
|
|
83
|
-
unified: "
|
|
120
|
+
unified: "9.0.0",
|
|
84
121
|
vnopts: "1.0.2",
|
|
85
122
|
"yaml-unist-parser": "1.1.1"
|
|
86
123
|
};
|
|
87
124
|
var devDependencies = {
|
|
88
|
-
"@babel/core": "7.
|
|
89
|
-
"@babel/preset-env": "7.
|
|
125
|
+
"@babel/core": "7.9.0",
|
|
126
|
+
"@babel/preset-env": "7.9.0",
|
|
90
127
|
"@rollup/plugin-alias": "3.0.1",
|
|
91
128
|
"@rollup/plugin-commonjs": "11.0.2",
|
|
92
129
|
"@rollup/plugin-json": "4.0.2",
|
|
93
130
|
"@rollup/plugin-node-resolve": "7.1.1",
|
|
94
131
|
"@rollup/plugin-replace": "2.3.1",
|
|
95
|
-
"babel-loader": "8.0
|
|
132
|
+
"babel-loader": "8.1.0",
|
|
96
133
|
benchmark: "2.1.4",
|
|
97
134
|
"builtin-modules": "3.1.0",
|
|
98
135
|
codecov: "3.6.5",
|
|
99
136
|
"cross-env": "7.0.2",
|
|
100
137
|
cspell: "4.0.55",
|
|
101
138
|
eslint: "6.8.0",
|
|
102
|
-
"eslint-config-prettier": "6.10.
|
|
139
|
+
"eslint-config-prettier": "6.10.1",
|
|
103
140
|
"eslint-formatter-friendly": "7.0.0",
|
|
104
|
-
"eslint-plugin-import": "2.20.
|
|
141
|
+
"eslint-plugin-import": "2.20.2",
|
|
105
142
|
"eslint-plugin-prettier": "3.1.2",
|
|
106
143
|
"eslint-plugin-react": "7.19.0",
|
|
107
|
-
"eslint-plugin-unicorn": "
|
|
144
|
+
"eslint-plugin-unicorn": "18.0.1",
|
|
108
145
|
execa: "4.0.0",
|
|
109
|
-
jest: "25.
|
|
110
|
-
"jest-junit": "10.0.0",
|
|
146
|
+
jest: "25.2.7",
|
|
111
147
|
"jest-snapshot-serializer-ansi": "1.0.0",
|
|
112
148
|
"jest-snapshot-serializer-raw": "1.1.0",
|
|
113
|
-
"jest-watch-typeahead": "0.
|
|
114
|
-
prettier: "
|
|
149
|
+
"jest-watch-typeahead": "0.5.0",
|
|
150
|
+
prettier: "2.0.3",
|
|
115
151
|
rimraf: "3.0.2",
|
|
116
|
-
rollup: "2.
|
|
152
|
+
rollup: "2.3.2",
|
|
117
153
|
"rollup-plugin-babel": "4.4.0",
|
|
118
154
|
"rollup-plugin-node-globals": "1.4.0",
|
|
119
155
|
"rollup-plugin-terser": "5.3.0",
|
|
@@ -123,7 +159,7 @@ var devDependencies = {
|
|
|
123
159
|
"synchronous-promise": "2.0.10",
|
|
124
160
|
tempy: "0.5.0",
|
|
125
161
|
"terser-webpack-plugin": "2.3.5",
|
|
126
|
-
webpack: "4.42.
|
|
162
|
+
webpack: "4.42.1"
|
|
127
163
|
};
|
|
128
164
|
var scripts = {
|
|
129
165
|
prepublishOnly: "echo \"Error: must publish from dist/\" && exit 1",
|
|
@@ -139,7 +175,7 @@ var scripts = {
|
|
|
139
175
|
"lint:changelog": "node ./scripts/lint-changelog.js",
|
|
140
176
|
"lint:prettier": "prettier \"**/*.{md,json,yml,html,css}\" --check",
|
|
141
177
|
"lint:dist": "eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 \"dist/!(bin-prettier|index|third-party).js\"",
|
|
142
|
-
"lint:spellcheck": "cspell {bin,scripts,src}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md",
|
|
178
|
+
"lint:spellcheck": "cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md",
|
|
143
179
|
"lint:deps": "node ./scripts/check-deps.js",
|
|
144
180
|
build: "node --max-old-space-size=3072 ./scripts/build/build.js",
|
|
145
181
|
"build-docs": "node ./scripts/build-docs.js"
|
|
@@ -161,21 +197,21 @@ var _package = {
|
|
|
161
197
|
};
|
|
162
198
|
|
|
163
199
|
var _package$1 = /*#__PURE__*/Object.freeze({
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
200
|
+
__proto__: null,
|
|
201
|
+
name: name,
|
|
202
|
+
version: version,
|
|
203
|
+
description: description,
|
|
204
|
+
bin: bin,
|
|
205
|
+
repository: repository,
|
|
206
|
+
homepage: homepage,
|
|
207
|
+
author: author,
|
|
208
|
+
license: license,
|
|
209
|
+
main: main,
|
|
210
|
+
engines: engines,
|
|
211
|
+
dependencies: dependencies,
|
|
212
|
+
devDependencies: devDependencies,
|
|
213
|
+
scripts: scripts,
|
|
214
|
+
'default': _package
|
|
179
215
|
});
|
|
180
216
|
|
|
181
217
|
function Diff() {}
|
|
@@ -1704,27 +1740,27 @@ function escapeHTML(s) {
|
|
|
1704
1740
|
}
|
|
1705
1741
|
|
|
1706
1742
|
var index_es6 = /*#__PURE__*/Object.freeze({
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1743
|
+
__proto__: null,
|
|
1744
|
+
Diff: Diff,
|
|
1745
|
+
diffChars: diffChars,
|
|
1746
|
+
diffWords: diffWords,
|
|
1747
|
+
diffWordsWithSpace: diffWordsWithSpace,
|
|
1748
|
+
diffLines: diffLines,
|
|
1749
|
+
diffTrimmedLines: diffTrimmedLines,
|
|
1750
|
+
diffSentences: diffSentences,
|
|
1751
|
+
diffCss: diffCss,
|
|
1752
|
+
diffJson: diffJson,
|
|
1753
|
+
diffArrays: diffArrays,
|
|
1754
|
+
structuredPatch: structuredPatch,
|
|
1755
|
+
createTwoFilesPatch: createTwoFilesPatch,
|
|
1756
|
+
createPatch: createPatch,
|
|
1757
|
+
applyPatch: applyPatch,
|
|
1758
|
+
applyPatches: applyPatches,
|
|
1759
|
+
parsePatch: parsePatch,
|
|
1760
|
+
merge: merge,
|
|
1761
|
+
convertChangesToDMP: convertChangesToDMP,
|
|
1762
|
+
convertChangesToXML: convertChangesToXML,
|
|
1763
|
+
canonicalize: canonicalize
|
|
1728
1764
|
});
|
|
1729
1765
|
|
|
1730
1766
|
/**
|
|
@@ -2811,14 +2847,14 @@ var coreOptions = {
|
|
|
2811
2847
|
options
|
|
2812
2848
|
};
|
|
2813
2849
|
|
|
2814
|
-
var require$$
|
|
2850
|
+
var require$$1 = getCjsExportFromNamespace(_package$1);
|
|
2815
2851
|
|
|
2816
2852
|
const semver$1 = {
|
|
2817
2853
|
compare: compare_1,
|
|
2818
2854
|
lt: lt_1,
|
|
2819
2855
|
gte: gte_1
|
|
2820
2856
|
};
|
|
2821
|
-
const currentVersion = require$$
|
|
2857
|
+
const currentVersion = require$$1.version;
|
|
2822
2858
|
const coreOptions$1 = coreOptions.options;
|
|
2823
2859
|
/**
|
|
2824
2860
|
* Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
|
|
@@ -3265,27 +3301,27 @@ function __importDefault(mod) {
|
|
|
3265
3301
|
}
|
|
3266
3302
|
|
|
3267
3303
|
var tslib_es6 = /*#__PURE__*/Object.freeze({
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3304
|
+
__proto__: null,
|
|
3305
|
+
__extends: __extends,
|
|
3306
|
+
get __assign () { return __assign; },
|
|
3307
|
+
__rest: __rest,
|
|
3308
|
+
__decorate: __decorate,
|
|
3309
|
+
__param: __param,
|
|
3310
|
+
__metadata: __metadata,
|
|
3311
|
+
__awaiter: __awaiter,
|
|
3312
|
+
__generator: __generator,
|
|
3313
|
+
__exportStar: __exportStar,
|
|
3314
|
+
__values: __values,
|
|
3315
|
+
__read: __read,
|
|
3316
|
+
__spread: __spread,
|
|
3317
|
+
__spreadArrays: __spreadArrays,
|
|
3318
|
+
__await: __await,
|
|
3319
|
+
__asyncGenerator: __asyncGenerator,
|
|
3320
|
+
__asyncDelegator: __asyncDelegator,
|
|
3321
|
+
__asyncValues: __asyncValues,
|
|
3322
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
3323
|
+
__importStar: __importStar,
|
|
3324
|
+
__importDefault: __importDefault
|
|
3289
3325
|
});
|
|
3290
3326
|
|
|
3291
3327
|
var api = createCommonjsModule(function (module, exports) {
|
|
@@ -7830,7 +7866,7 @@ var util = {
|
|
|
7830
7866
|
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;
|
|
7831
7867
|
const STYLE_REGEX$1 = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
7832
7868
|
const STRING_REGEX$1 = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
7833
|
-
const ESCAPE_REGEX$1 = /\\(u(?:[a-f\d]{4}
|
|
7869
|
+
const ESCAPE_REGEX$1 = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
7834
7870
|
const ESCAPES$1 = new Map([['n', '\n'], ['r', '\r'], ['t', '\t'], ['b', '\b'], ['f', '\f'], ['v', '\v'], ['0', '\0'], ['\\', '\\'], ['e', '\u001B'], ['a', '\u0007']]);
|
|
7835
7871
|
|
|
7836
7872
|
function unescape$1(c) {
|
|
@@ -7944,8 +7980,8 @@ var templates$1 = (chalk, temporary) => {
|
|
|
7944
7980
|
chunks.push(chunk.join(''));
|
|
7945
7981
|
|
|
7946
7982
|
if (styles.length > 0) {
|
|
7947
|
-
const
|
|
7948
|
-
throw new Error(
|
|
7983
|
+
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
|
|
7984
|
+
throw new Error(errMessage);
|
|
7949
7985
|
}
|
|
7950
7986
|
|
|
7951
7987
|
return chunks.join('');
|
|
@@ -7964,7 +8000,7 @@ const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
|
|
|
7964
8000
|
const styles = Object.create(null);
|
|
7965
8001
|
|
|
7966
8002
|
const applyOptions = (object, options = {}) => {
|
|
7967
|
-
if (options.level
|
|
8003
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
7968
8004
|
throw new Error('The `level` option should be an integer from 0 to 3');
|
|
7969
8005
|
} // Detect level if not set manually
|
|
7970
8006
|
|
|
@@ -7975,6 +8011,7 @@ const applyOptions = (object, options = {}) => {
|
|
|
7975
8011
|
|
|
7976
8012
|
class ChalkClass {
|
|
7977
8013
|
constructor(options) {
|
|
8014
|
+
// eslint-disable-next-line no-constructor-return
|
|
7978
8015
|
return chalkFactory(options);
|
|
7979
8016
|
}
|
|
7980
8017
|
|
|
@@ -8098,12 +8135,11 @@ const createBuilder = (self, _styler, _isEmpty) => {
|
|
|
8098
8135
|
// Single argument is hot path, implicit coercion is faster than anything
|
|
8099
8136
|
// eslint-disable-next-line no-implicit-coercion
|
|
8100
8137
|
return applyStyle(builder, arguments_.length === 1 ? '' + arguments_[0] : arguments_.join(' '));
|
|
8101
|
-
}; //
|
|
8138
|
+
}; // We alter the prototype because we must return a function, but there is
|
|
8102
8139
|
// no way to create a function with a different prototype
|
|
8103
8140
|
|
|
8104
8141
|
|
|
8105
|
-
builder
|
|
8106
|
-
|
|
8142
|
+
Object.setPrototypeOf(builder, proto);
|
|
8107
8143
|
builder._generator = self;
|
|
8108
8144
|
builder._styler = _styler;
|
|
8109
8145
|
builder._isEmpty = _isEmpty;
|
|
@@ -8181,18 +8217,7 @@ chalk$1.stderr = Chalk({
|
|
|
8181
8217
|
level: stderrColor ? stderrColor.level : 0
|
|
8182
8218
|
}); // eslint-disable-line new-cap
|
|
8183
8219
|
|
|
8184
|
-
chalk$1.stderr.supportsColor = stderrColor;
|
|
8185
|
-
|
|
8186
|
-
chalk$1.Level = {
|
|
8187
|
-
None: 0,
|
|
8188
|
-
Basic: 1,
|
|
8189
|
-
Ansi256: 2,
|
|
8190
|
-
TrueColor: 3,
|
|
8191
|
-
0: 'None',
|
|
8192
|
-
1: 'Basic',
|
|
8193
|
-
2: 'Ansi256',
|
|
8194
|
-
3: 'TrueColor'
|
|
8195
|
-
};
|
|
8220
|
+
chalk$1.stderr.supportsColor = stderrColor;
|
|
8196
8221
|
var source = chalk$1;
|
|
8197
8222
|
|
|
8198
8223
|
const cliDescriptor = {
|
|
@@ -11504,6 +11529,7 @@ function getInterpreter(filepath) {
|
|
|
11504
11529
|
try {
|
|
11505
11530
|
fd = fs$2.openSync(filepath, "r");
|
|
11506
11531
|
} catch (err) {
|
|
11532
|
+
// istanbul ignore next
|
|
11507
11533
|
return "";
|
|
11508
11534
|
}
|
|
11509
11535
|
|
|
@@ -11540,13 +11566,20 @@ function getInterpreter(filepath) {
|
|
|
11540
11566
|
}
|
|
11541
11567
|
|
|
11542
11568
|
function inferParser(filepath, plugins) {
|
|
11543
|
-
const filename = path$1.basename(filepath).toLowerCase();
|
|
11569
|
+
const filename = path$1.basename(filepath).toLowerCase();
|
|
11570
|
+
const languages = getSupportInfo$1({
|
|
11571
|
+
plugins
|
|
11572
|
+
}).languages.filter(language => language.since !== null); // If the file has no extension, we can try to infer the language from the
|
|
11544
11573
|
// interpreter in the shebang line, if any; but since this requires FS access,
|
|
11545
11574
|
// do it last.
|
|
11546
11575
|
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11576
|
+
let language = languages.find(language => language.extensions && language.extensions.some(extension => filename.endsWith(extension)) || language.filenames && language.filenames.find(name => name.toLowerCase() === filename));
|
|
11577
|
+
|
|
11578
|
+
if (!language && !filename.includes(".")) {
|
|
11579
|
+
const interpreter = getInterpreter(filepath);
|
|
11580
|
+
language = languages.find(language => language.interpreters && language.interpreters.includes(interpreter));
|
|
11581
|
+
}
|
|
11582
|
+
|
|
11550
11583
|
return language && language.parsers[0];
|
|
11551
11584
|
}
|
|
11552
11585
|
|
|
@@ -12640,7 +12673,11 @@ function hasIgnoreComment(path) {
|
|
|
12640
12673
|
}
|
|
12641
12674
|
|
|
12642
12675
|
function hasNodeIgnoreComment(node) {
|
|
12643
|
-
return node && node.comments && node.comments.length > 0 && node.comments.some(comment => comment.
|
|
12676
|
+
return node && (node.comments && node.comments.length > 0 && node.comments.some(comment => isNodeIgnoreComment(comment) && !comment.unignore) || node.prettierIgnore);
|
|
12677
|
+
}
|
|
12678
|
+
|
|
12679
|
+
function isNodeIgnoreComment(comment) {
|
|
12680
|
+
return comment.value.trim() === "prettier-ignore";
|
|
12644
12681
|
}
|
|
12645
12682
|
|
|
12646
12683
|
function addCommentHelper(node, comment) {
|
|
@@ -12740,6 +12777,7 @@ var util$1 = {
|
|
|
12740
12777
|
printNumber,
|
|
12741
12778
|
hasIgnoreComment,
|
|
12742
12779
|
hasNodeIgnoreComment,
|
|
12780
|
+
isNodeIgnoreComment,
|
|
12743
12781
|
makeString,
|
|
12744
12782
|
addLeadingComment,
|
|
12745
12783
|
addDanglingComment,
|
|
@@ -13052,8 +13090,9 @@ function printDocToString(doc, options) {
|
|
|
13052
13090
|
const [ind, mode, doc] = cmds.pop();
|
|
13053
13091
|
|
|
13054
13092
|
if (typeof doc === "string") {
|
|
13055
|
-
|
|
13056
|
-
|
|
13093
|
+
const formatted = newLine !== "\n" && doc.includes("\n") ? doc.replace(/\n/g, newLine) : doc;
|
|
13094
|
+
out.push(formatted);
|
|
13095
|
+
pos += getStringWidth$1(formatted);
|
|
13057
13096
|
} else {
|
|
13058
13097
|
switch (doc.type) {
|
|
13059
13098
|
case "cursor":
|
|
@@ -14715,7 +14754,7 @@ var rangeUtil = {
|
|
|
14715
14754
|
findNodeAtOffset
|
|
14716
14755
|
};
|
|
14717
14756
|
|
|
14718
|
-
var require$$0
|
|
14757
|
+
var require$$0 = getCjsExportFromNamespace(index_es6);
|
|
14719
14758
|
|
|
14720
14759
|
const normalizeOptions$1 = options$1.normalize;
|
|
14721
14760
|
const {
|
|
@@ -14723,9 +14762,6 @@ const {
|
|
|
14723
14762
|
convertEndOfLineToChars: convertEndOfLineToChars$2
|
|
14724
14763
|
} = endOfLine;
|
|
14725
14764
|
const {
|
|
14726
|
-
utils: {
|
|
14727
|
-
mapDoc: mapDoc$1
|
|
14728
|
-
},
|
|
14729
14765
|
printer: {
|
|
14730
14766
|
printDocToString: printDocToString$1
|
|
14731
14767
|
},
|
|
@@ -14747,7 +14783,7 @@ function ensureAllCommentsPrinted(astComments) {
|
|
|
14747
14783
|
}
|
|
14748
14784
|
|
|
14749
14785
|
for (let i = 0; i < astComments.length; ++i) {
|
|
14750
|
-
if (astComments[i]
|
|
14786
|
+
if (util$1.isNodeIgnoreComment(astComments[i])) {
|
|
14751
14787
|
// If there's a prettier-ignore, we're not printing that sub-tree so we
|
|
14752
14788
|
// don't know if the comments was printed or not.
|
|
14753
14789
|
return;
|
|
@@ -14801,8 +14837,7 @@ function coreFormat(text, opts, addAlignmentSize) {
|
|
|
14801
14837
|
|
|
14802
14838
|
const astComments = attachComments(text, ast, opts);
|
|
14803
14839
|
const doc = astToDoc(ast, opts, addAlignmentSize);
|
|
14804
|
-
const
|
|
14805
|
-
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);
|
|
14840
|
+
const result = printDocToString$1(doc, opts);
|
|
14806
14841
|
ensureAllCommentsPrinted(astComments); // Remove extra leading indentation as well as the added indentation after last newline
|
|
14807
14842
|
|
|
14808
14843
|
if (addAlignmentSize > 0) {
|
|
@@ -14848,7 +14883,7 @@ function coreFormat(text, opts, addAlignmentSize) {
|
|
|
14848
14883
|
const oldCursorNodeCharArray = oldCursorNodeText.split("");
|
|
14849
14884
|
oldCursorNodeCharArray.splice(cursorOffsetRelativeToOldCursorNode, 0, CURSOR);
|
|
14850
14885
|
const newCursorNodeCharArray = newCursorNodeText.split("");
|
|
14851
|
-
const cursorNodeDiff = require$$0
|
|
14886
|
+
const cursorNodeDiff = require$$0.diffArrays(oldCursorNodeCharArray, newCursorNodeCharArray);
|
|
14852
14887
|
let cursorOffset = newCursorNodeStart;
|
|
14853
14888
|
|
|
14854
14889
|
for (const entry of cursorNodeDiff) {
|
|
@@ -20754,22 +20789,22 @@ var _package$2 = {
|
|
|
20754
20789
|
};
|
|
20755
20790
|
|
|
20756
20791
|
var _package$3 = /*#__PURE__*/Object.freeze({
|
|
20757
|
-
|
|
20758
|
-
|
|
20759
|
-
|
|
20760
|
-
|
|
20761
|
-
|
|
20762
|
-
|
|
20763
|
-
|
|
20764
|
-
|
|
20765
|
-
|
|
20766
|
-
|
|
20767
|
-
|
|
20768
|
-
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
|
|
20772
|
-
|
|
20792
|
+
__proto__: null,
|
|
20793
|
+
name: name$1,
|
|
20794
|
+
version: version$1,
|
|
20795
|
+
description: description$1,
|
|
20796
|
+
keywords: keywords,
|
|
20797
|
+
main: main$1,
|
|
20798
|
+
contributors: contributors,
|
|
20799
|
+
directories: directories,
|
|
20800
|
+
scripts: scripts$1,
|
|
20801
|
+
repository: repository$1,
|
|
20802
|
+
bugs: bugs,
|
|
20803
|
+
author: author$1,
|
|
20804
|
+
license: license$1,
|
|
20805
|
+
dependencies: dependencies$1,
|
|
20806
|
+
devDependencies: devDependencies$1,
|
|
20807
|
+
'default': _package$2
|
|
20773
20808
|
});
|
|
20774
20809
|
|
|
20775
20810
|
var require$$4 = getCjsExportFromNamespace(_package$3);
|
|
@@ -23263,6 +23298,19 @@ var loadToml = function (filePath, content) {
|
|
|
23263
23298
|
}
|
|
23264
23299
|
};
|
|
23265
23300
|
|
|
23301
|
+
let {
|
|
23302
|
+
resolve
|
|
23303
|
+
} = eval("require"); // In the VS Code extension `require` is overridden and `require.resolve` doesn't support the 2nd argument.
|
|
23304
|
+
|
|
23305
|
+
if (resolve.length === 1) {
|
|
23306
|
+
const Module = require("module");
|
|
23307
|
+
|
|
23308
|
+
const createRequire = Module.createRequire || Module.createRequireFromPath;
|
|
23309
|
+
resolve = createRequire(__dirname).resolve;
|
|
23310
|
+
}
|
|
23311
|
+
|
|
23312
|
+
var resolve_1 = resolve;
|
|
23313
|
+
|
|
23266
23314
|
const getExplorerMemoized = mem_1(opts => {
|
|
23267
23315
|
const cosmiconfig = thirdParty["cosmiconfig" + (opts.sync ? "Sync" : "")];
|
|
23268
23316
|
const explorer = cosmiconfig("prettier", {
|
|
@@ -23273,10 +23321,9 @@ const getExplorerMemoized = mem_1(opts => {
|
|
|
23273
23321
|
const dir = path$1.dirname(result.filepath);
|
|
23274
23322
|
|
|
23275
23323
|
try {
|
|
23276
|
-
const modulePath =
|
|
23324
|
+
const modulePath = resolve_1(result.config, {
|
|
23277
23325
|
paths: [dir]
|
|
23278
23326
|
});
|
|
23279
|
-
|
|
23280
23327
|
result.config = require(modulePath);
|
|
23281
23328
|
} catch (error) {
|
|
23282
23329
|
// Original message contains `__filename`, can't pass tests
|
|
@@ -35342,8 +35389,22 @@ function handleCallExpressionComments(precedingNode, enclosingNode, comment) {
|
|
|
35342
35389
|
|
|
35343
35390
|
function handleUnionTypeComments(precedingNode, enclosingNode, followingNode, comment) {
|
|
35344
35391
|
if (enclosingNode && (enclosingNode.type === "UnionTypeAnnotation" || enclosingNode.type === "TSUnionType")) {
|
|
35345
|
-
|
|
35346
|
-
|
|
35392
|
+
if (util$1.isNodeIgnoreComment(comment)) {
|
|
35393
|
+
followingNode.prettierIgnore = true;
|
|
35394
|
+
comment.unignore = true;
|
|
35395
|
+
}
|
|
35396
|
+
|
|
35397
|
+
if (precedingNode) {
|
|
35398
|
+
addTrailingComment$3(precedingNode, comment);
|
|
35399
|
+
return true;
|
|
35400
|
+
}
|
|
35401
|
+
|
|
35402
|
+
return false;
|
|
35403
|
+
}
|
|
35404
|
+
|
|
35405
|
+
if (followingNode && (followingNode.type === "UnionTypeAnnotation" || followingNode.type === "TSUnionType") && util$1.isNodeIgnoreComment(comment)) {
|
|
35406
|
+
followingNode.types[0].prettierIgnore = true;
|
|
35407
|
+
comment.unignore = true;
|
|
35347
35408
|
}
|
|
35348
35409
|
|
|
35349
35410
|
return false;
|
|
@@ -35529,7 +35590,7 @@ const {
|
|
|
35529
35590
|
dedentToRoot: dedentToRoot$1
|
|
35530
35591
|
},
|
|
35531
35592
|
utils: {
|
|
35532
|
-
mapDoc: mapDoc$
|
|
35593
|
+
mapDoc: mapDoc$1,
|
|
35533
35594
|
stripTrailingHardline: stripTrailingHardline$1
|
|
35534
35595
|
}
|
|
35535
35596
|
} = document;
|
|
@@ -35552,7 +35613,7 @@ function embed(path, print, textToDoc, options) {
|
|
|
35552
35613
|
return idx === 0 ? currVal : prevVal + "@prettier-placeholder-" + placeholderID++ + "-id" + currVal;
|
|
35553
35614
|
}, "");
|
|
35554
35615
|
const doc = textToDoc(text, {
|
|
35555
|
-
parser: "
|
|
35616
|
+
parser: "scss"
|
|
35556
35617
|
});
|
|
35557
35618
|
return transformCssDoc(doc, path, print);
|
|
35558
35619
|
}
|
|
@@ -35678,7 +35739,7 @@ function uncook(cookedValue) {
|
|
|
35678
35739
|
}
|
|
35679
35740
|
|
|
35680
35741
|
function escapeTemplateCharacters(doc, raw) {
|
|
35681
|
-
return mapDoc$
|
|
35742
|
+
return mapDoc$1(doc, currentDoc => {
|
|
35682
35743
|
if (!currentDoc.parts) {
|
|
35683
35744
|
return currentDoc;
|
|
35684
35745
|
}
|
|
@@ -35727,7 +35788,7 @@ function replacePlaceholders(quasisDoc, expressionDocs) {
|
|
|
35727
35788
|
|
|
35728
35789
|
const expressions = expressionDocs.slice();
|
|
35729
35790
|
let replaceCounter = 0;
|
|
35730
|
-
const newDoc = mapDoc$
|
|
35791
|
+
const newDoc = mapDoc$1(quasisDoc, doc => {
|
|
35731
35792
|
if (!doc || !doc.parts || !doc.parts.length) {
|
|
35732
35793
|
return doc;
|
|
35733
35794
|
}
|
|
@@ -35942,7 +36003,7 @@ function printHtmlTemplateLiteral(path, print, textToDoc, parser, options) {
|
|
|
35942
36003
|
|
|
35943
36004
|
const placeholderRegex = new RegExp(composePlaceholder("(\\d+)"), "g");
|
|
35944
36005
|
let topLevelCount = 0;
|
|
35945
|
-
const contentDoc = mapDoc$
|
|
36006
|
+
const contentDoc = mapDoc$1(stripTrailingHardline$1(textToDoc(text, {
|
|
35946
36007
|
parser,
|
|
35947
36008
|
|
|
35948
36009
|
__onHtmlRoot(root) {
|
|
@@ -36512,8 +36573,10 @@ function isTypeAnnotationAFunction(node, options) {
|
|
|
36512
36573
|
return (node.type === "TypeAnnotation" || node.type === "TSTypeAnnotation") && node.typeAnnotation.type === "FunctionTypeAnnotation" && !node.static && !sameLocStart(node, node.typeAnnotation, options);
|
|
36513
36574
|
}
|
|
36514
36575
|
|
|
36576
|
+
const binaryishNodeTypes = new Set(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
|
|
36577
|
+
|
|
36515
36578
|
function isBinaryish(node) {
|
|
36516
|
-
return
|
|
36579
|
+
return binaryishNodeTypes.has(node.type);
|
|
36517
36580
|
}
|
|
36518
36581
|
|
|
36519
36582
|
function isMemberish(node) {
|
|
@@ -37066,7 +37129,7 @@ function isSimpleCallArgument(node, depth) {
|
|
|
37066
37129
|
}
|
|
37067
37130
|
|
|
37068
37131
|
if (node.type === "ArrayExpression") {
|
|
37069
|
-
return node.elements.every(isChildSimple);
|
|
37132
|
+
return node.elements.every(x => x == null || isChildSimple(x));
|
|
37070
37133
|
}
|
|
37071
37134
|
|
|
37072
37135
|
if (node.type === "CallExpression" || node.type === "OptionalCallExpression" || node.type === "NewExpression") {
|
|
@@ -37740,7 +37803,7 @@ function needsParens(path, options) {
|
|
|
37740
37803
|
}
|
|
37741
37804
|
|
|
37742
37805
|
function isStatement(node) {
|
|
37743
|
-
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 === "
|
|
37806
|
+
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";
|
|
37744
37807
|
}
|
|
37745
37808
|
|
|
37746
37809
|
function includesFunctionTypeInObjectType(node) {
|
|
@@ -38279,7 +38342,9 @@ function printPathNoParens(path, options, print, args) {
|
|
|
38279
38342
|
/* sameIndent */
|
|
38280
38343
|
true)); // Only force a trailing newline if there were any contents.
|
|
38281
38344
|
|
|
38282
|
-
if (n.body.
|
|
38345
|
+
if (!n.body.every(({
|
|
38346
|
+
type
|
|
38347
|
+
}) => type === "EmptyStatement") || n.comments) {
|
|
38283
38348
|
parts.push(hardline$4);
|
|
38284
38349
|
}
|
|
38285
38350
|
|
|
@@ -38454,7 +38519,6 @@ function printPathNoParens(path, options, print, args) {
|
|
|
38454
38519
|
|
|
38455
38520
|
case "SpreadElement":
|
|
38456
38521
|
case "SpreadElementPattern":
|
|
38457
|
-
case "RestProperty":
|
|
38458
38522
|
case "SpreadProperty":
|
|
38459
38523
|
case "SpreadPropertyPattern":
|
|
38460
38524
|
case "RestElement":
|
|
@@ -38821,11 +38885,23 @@ function printPathNoParens(path, options, print, args) {
|
|
|
38821
38885
|
});
|
|
38822
38886
|
|
|
38823
38887
|
if (n.inexact) {
|
|
38824
|
-
|
|
38888
|
+
let printed;
|
|
38889
|
+
|
|
38890
|
+
if (hasDanglingComments$1(n)) {
|
|
38891
|
+
const hasLineComments = !n.comments.every(comments$1.isBlockComment);
|
|
38892
|
+
const printedDanglingComments = comments.printDanglingComments(path, options,
|
|
38893
|
+
/* sameIndent */
|
|
38894
|
+
true);
|
|
38895
|
+
printed = concat$6([printedDanglingComments, hasLineComments || hasNewline$4(options.originalText, options.locEnd(n.comments[n.comments.length - 1])) ? hardline$4 : line$4, "..."]);
|
|
38896
|
+
} else {
|
|
38897
|
+
printed = "...";
|
|
38898
|
+
}
|
|
38899
|
+
|
|
38900
|
+
props.push(concat$6(separatorParts.concat(printed)));
|
|
38825
38901
|
}
|
|
38826
38902
|
|
|
38827
38903
|
const lastElem = getLast$2(n[propertiesField]);
|
|
38828
|
-
const canHaveTrailingSeparator = !(lastElem && (lastElem.type === "
|
|
38904
|
+
const canHaveTrailingSeparator = !(n.inexact || lastElem && (lastElem.type === "RestElement" || hasNodeIgnoreComment$2(lastElem)));
|
|
38829
38905
|
let content;
|
|
38830
38906
|
|
|
38831
38907
|
if (props.length === 0) {
|
|
@@ -39064,7 +39140,7 @@ function printPathNoParens(path, options, print, args) {
|
|
|
39064
39140
|
// semicolon, except when they in the () part of for loops.
|
|
39065
39141
|
|
|
39066
39142
|
const parentNode = path.getParentNode();
|
|
39067
|
-
const isParentForLoop = parentNode.type === "ForStatement" || parentNode.type === "ForInStatement" || parentNode.type === "ForOfStatement"
|
|
39143
|
+
const isParentForLoop = parentNode.type === "ForStatement" || parentNode.type === "ForInStatement" || parentNode.type === "ForOfStatement";
|
|
39068
39144
|
const hasValue = n.declarations.some(decl => decl.init);
|
|
39069
39145
|
let firstVariable;
|
|
39070
39146
|
|
|
@@ -39148,14 +39224,7 @@ function printPathNoParens(path, options, print, args) {
|
|
|
39148
39224
|
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"))]));
|
|
39149
39225
|
|
|
39150
39226
|
case "ForOfStatement":
|
|
39151
|
-
|
|
39152
|
-
{
|
|
39153
|
-
// Babel 7 removed ForAwaitStatement in favor of ForOfStatement
|
|
39154
|
-
// with `"await": true`:
|
|
39155
|
-
// https://github.com/estree/estree/pull/138
|
|
39156
|
-
const isAwait = n.type === "ForAwaitStatement" || n.await;
|
|
39157
|
-
return group$2(concat$6(["for", isAwait ? " await" : "", " (", path.call(print, "left"), " of ", path.call(print, "right"), ")", adjustClause(n.body, path.call(print, "body"))]));
|
|
39158
|
-
}
|
|
39227
|
+
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"))]));
|
|
39159
39228
|
|
|
39160
39229
|
case "DoWhileStatement":
|
|
39161
39230
|
{
|
|
@@ -39305,8 +39374,8 @@ function printPathNoParens(path, options, print, args) {
|
|
|
39305
39374
|
case "JSXExpressionContainer":
|
|
39306
39375
|
{
|
|
39307
39376
|
const parent = path.getParentNode(0);
|
|
39308
|
-
const
|
|
39309
|
-
const shouldInline =
|
|
39377
|
+
const hasComments = n.expression.comments && n.expression.comments.length > 0;
|
|
39378
|
+
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)));
|
|
39310
39379
|
|
|
39311
39380
|
if (shouldInline) {
|
|
39312
39381
|
return group$2(concat$6(["{", path.call(print, "expression"), lineSuffixBoundary$1, "}"]));
|
|
@@ -39512,7 +39581,7 @@ function printPathNoParens(path, options, print, args) {
|
|
|
39512
39581
|
if (!isSimple) {
|
|
39513
39582
|
// Breaks at the template element boundaries (${ and }) are preferred to breaking
|
|
39514
39583
|
// in the middle of a MemberExpression
|
|
39515
|
-
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 === "
|
|
39584
|
+
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])) {
|
|
39516
39585
|
printed = concat$6([indent$3(concat$6([softline$2, printed])), softline$2]);
|
|
39517
39586
|
}
|
|
39518
39587
|
}
|
|
@@ -40145,8 +40214,13 @@ function printPathNoParens(path, options, print, args) {
|
|
|
40145
40214
|
|
|
40146
40215
|
case "TSIndexSignature":
|
|
40147
40216
|
{
|
|
40148
|
-
const parent = path.getParentNode();
|
|
40149
|
-
|
|
40217
|
+
const parent = path.getParentNode(); // The typescript parser accepts multiple parameters here. If you're
|
|
40218
|
+
// using them, it makes sense to have a trailing comma. But if you
|
|
40219
|
+
// aren't, this is more like a computed property name than an array.
|
|
40220
|
+
// So we leave off the trailing comma when there's just one parameter.
|
|
40221
|
+
|
|
40222
|
+
const trailingComma = n.parameters.length > 1 ? ifBreak$1(shouldPrintComma(options) ? "," : "") : "";
|
|
40223
|
+
const parametersGroup = group$2(concat$6([indent$3(concat$6([softline$2, join$4(concat$6([", ", softline$2]), path.map(print, "parameters"))])), trailingComma, softline$2]));
|
|
40150
40224
|
return concat$6([n.export ? "export " : "", n.accessibility ? concat$6([n.accessibility, " "]) : "", n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? parametersGroup : "", n.typeAnnotation ? "]: " : "]", n.typeAnnotation ? path.call(print, "typeAnnotation") : "", parent.type === "ClassBody" ? semi : ""]);
|
|
40151
40225
|
}
|
|
40152
40226
|
|
|
@@ -40353,7 +40427,7 @@ function printPathNoParens(path, options, print, args) {
|
|
|
40353
40427
|
return "";
|
|
40354
40428
|
|
|
40355
40429
|
case "NGQuotedExpression":
|
|
40356
|
-
return concat$6([n.prefix, ":", n.value]);
|
|
40430
|
+
return concat$6([n.prefix, ": ", n.value.trim()]);
|
|
40357
40431
|
|
|
40358
40432
|
case "NGMicrosyntax":
|
|
40359
40433
|
return concat$6(path.map((childPath, index) => concat$6([index === 0 ? "" : isNgForOf$1(childPath.getValue(), index, n) ? " " : concat$6([";", line$4]), print(childPath)]), "body"));
|
|
@@ -41910,7 +41984,7 @@ function printReturnAndThrowArgument(path, options, print) {
|
|
|
41910
41984
|
if (node.argument) {
|
|
41911
41985
|
if (returnArgumentHasLeadingComment$1(options, node.argument)) {
|
|
41912
41986
|
parts.push(concat$6([" (", indent$3(concat$6([hardline$4, path.call(print, "argument")])), hardline$4, ")"]));
|
|
41913
|
-
} else if (node.argument
|
|
41987
|
+
} else if (isBinaryish$1(node.argument) || node.argument.type === "SequenceExpression") {
|
|
41914
41988
|
parts.push(group$2(concat$6([ifBreak$1(" (", " "), indent$3(concat$6([softline$2, path.call(print, "argument")])), softline$2, ifBreak$1(")")])));
|
|
41915
41989
|
} else {
|
|
41916
41990
|
parts.push(" ", path.call(print, "argument"));
|
|
@@ -41942,7 +42016,7 @@ function willPrintOwnComments(path
|
|
|
41942
42016
|
) {
|
|
41943
42017
|
const node = path.getValue();
|
|
41944
42018
|
const parent = path.getParentNode();
|
|
41945
|
-
return (node && (isJSXNode$1(node) || hasFlowShorthandAnnotationComment$2(node) || parent && (parent.type === "CallExpression" || parent.type === "OptionalCallExpression") && (hasFlowAnnotationComment$1(node.leadingComments) || hasFlowAnnotationComment$1(node.trailingComments))) || parent && (parent.type === "JSXSpreadAttribute" || parent.type === "JSXSpreadChild" || parent.type === "UnionTypeAnnotation" || parent.type === "TSUnionType" || (parent.type === "ClassDeclaration" || parent.type === "ClassExpression") && parent.superClass === node)) && !hasIgnoreComment$2(path);
|
|
42019
|
+
return (node && (isJSXNode$1(node) || hasFlowShorthandAnnotationComment$2(node) || parent && (parent.type === "CallExpression" || parent.type === "OptionalCallExpression") && (hasFlowAnnotationComment$1(node.leadingComments) || hasFlowAnnotationComment$1(node.trailingComments))) || parent && (parent.type === "JSXSpreadAttribute" || parent.type === "JSXSpreadChild" || parent.type === "UnionTypeAnnotation" || parent.type === "TSUnionType" || (parent.type === "ClassDeclaration" || parent.type === "ClassExpression") && parent.superClass === node)) && (!hasIgnoreComment$2(path) || parent.type === "UnionTypeAnnotation" || parent.type === "TSUnionType");
|
|
41946
42020
|
}
|
|
41947
42021
|
|
|
41948
42022
|
function canAttachComment(node) {
|
|
@@ -42310,20 +42384,20 @@ var JavaScript = {
|
|
|
42310
42384
|
};
|
|
42311
42385
|
|
|
42312
42386
|
var JavaScript$1 = /*#__PURE__*/Object.freeze({
|
|
42313
|
-
|
|
42314
|
-
|
|
42315
|
-
|
|
42316
|
-
|
|
42317
|
-
|
|
42318
|
-
|
|
42319
|
-
|
|
42320
|
-
|
|
42321
|
-
|
|
42322
|
-
|
|
42323
|
-
|
|
42324
|
-
|
|
42325
|
-
|
|
42326
|
-
|
|
42387
|
+
__proto__: null,
|
|
42388
|
+
name: name$2,
|
|
42389
|
+
type: type,
|
|
42390
|
+
tmScope: tmScope,
|
|
42391
|
+
aceMode: aceMode,
|
|
42392
|
+
codemirrorMode: codemirrorMode,
|
|
42393
|
+
codemirrorMimeType: codemirrorMimeType,
|
|
42394
|
+
color: color,
|
|
42395
|
+
aliases: aliases,
|
|
42396
|
+
extensions: extensions,
|
|
42397
|
+
filenames: filenames,
|
|
42398
|
+
interpreters: interpreters,
|
|
42399
|
+
languageId: languageId,
|
|
42400
|
+
'default': JavaScript
|
|
42327
42401
|
});
|
|
42328
42402
|
|
|
42329
42403
|
var name$3 = "JSX";
|
|
@@ -42350,17 +42424,17 @@ var JSX = {
|
|
|
42350
42424
|
};
|
|
42351
42425
|
|
|
42352
42426
|
var JSX$1 = /*#__PURE__*/Object.freeze({
|
|
42353
|
-
|
|
42354
|
-
|
|
42355
|
-
|
|
42356
|
-
|
|
42357
|
-
|
|
42358
|
-
|
|
42359
|
-
|
|
42360
|
-
|
|
42361
|
-
|
|
42362
|
-
|
|
42363
|
-
|
|
42427
|
+
__proto__: null,
|
|
42428
|
+
name: name$3,
|
|
42429
|
+
type: type$1,
|
|
42430
|
+
group: group$3,
|
|
42431
|
+
extensions: extensions$1,
|
|
42432
|
+
tmScope: tmScope$1,
|
|
42433
|
+
aceMode: aceMode$1,
|
|
42434
|
+
codemirrorMode: codemirrorMode$1,
|
|
42435
|
+
codemirrorMimeType: codemirrorMimeType$1,
|
|
42436
|
+
languageId: languageId$1,
|
|
42437
|
+
'default': JSX
|
|
42364
42438
|
});
|
|
42365
42439
|
|
|
42366
42440
|
var name$4 = "TypeScript";
|
|
@@ -42396,19 +42470,19 @@ var TypeScript = {
|
|
|
42396
42470
|
};
|
|
42397
42471
|
|
|
42398
42472
|
var TypeScript$1 = /*#__PURE__*/Object.freeze({
|
|
42399
|
-
|
|
42400
|
-
|
|
42401
|
-
|
|
42402
|
-
|
|
42403
|
-
|
|
42404
|
-
|
|
42405
|
-
|
|
42406
|
-
|
|
42407
|
-
|
|
42408
|
-
|
|
42409
|
-
|
|
42410
|
-
|
|
42411
|
-
|
|
42473
|
+
__proto__: null,
|
|
42474
|
+
name: name$4,
|
|
42475
|
+
type: type$2,
|
|
42476
|
+
color: color$1,
|
|
42477
|
+
aliases: aliases$1,
|
|
42478
|
+
interpreters: interpreters$1,
|
|
42479
|
+
extensions: extensions$2,
|
|
42480
|
+
tmScope: tmScope$2,
|
|
42481
|
+
aceMode: aceMode$2,
|
|
42482
|
+
codemirrorMode: codemirrorMode$2,
|
|
42483
|
+
codemirrorMimeType: codemirrorMimeType$2,
|
|
42484
|
+
languageId: languageId$2,
|
|
42485
|
+
'default': TypeScript
|
|
42412
42486
|
});
|
|
42413
42487
|
|
|
42414
42488
|
var name$5 = "TSX";
|
|
@@ -42435,17 +42509,17 @@ var TSX = {
|
|
|
42435
42509
|
};
|
|
42436
42510
|
|
|
42437
42511
|
var TSX$1 = /*#__PURE__*/Object.freeze({
|
|
42438
|
-
|
|
42439
|
-
|
|
42440
|
-
|
|
42441
|
-
|
|
42442
|
-
|
|
42443
|
-
|
|
42444
|
-
|
|
42445
|
-
|
|
42446
|
-
|
|
42447
|
-
|
|
42448
|
-
|
|
42512
|
+
__proto__: null,
|
|
42513
|
+
name: name$5,
|
|
42514
|
+
type: type$3,
|
|
42515
|
+
group: group$4,
|
|
42516
|
+
extensions: extensions$3,
|
|
42517
|
+
tmScope: tmScope$3,
|
|
42518
|
+
aceMode: aceMode$3,
|
|
42519
|
+
codemirrorMode: codemirrorMode$3,
|
|
42520
|
+
codemirrorMimeType: codemirrorMimeType$3,
|
|
42521
|
+
languageId: languageId$3,
|
|
42522
|
+
'default': TSX
|
|
42449
42523
|
});
|
|
42450
42524
|
|
|
42451
42525
|
var name$6 = "JSON";
|
|
@@ -42497,18 +42571,18 @@ var _JSON = {
|
|
|
42497
42571
|
};
|
|
42498
42572
|
|
|
42499
42573
|
var _JSON$1 = /*#__PURE__*/Object.freeze({
|
|
42500
|
-
|
|
42501
|
-
|
|
42502
|
-
|
|
42503
|
-
|
|
42504
|
-
|
|
42505
|
-
|
|
42506
|
-
|
|
42507
|
-
|
|
42508
|
-
|
|
42509
|
-
|
|
42510
|
-
|
|
42511
|
-
|
|
42574
|
+
__proto__: null,
|
|
42575
|
+
name: name$6,
|
|
42576
|
+
type: type$4,
|
|
42577
|
+
tmScope: tmScope$4,
|
|
42578
|
+
aceMode: aceMode$4,
|
|
42579
|
+
codemirrorMode: codemirrorMode$4,
|
|
42580
|
+
codemirrorMimeType: codemirrorMimeType$4,
|
|
42581
|
+
searchable: searchable,
|
|
42582
|
+
extensions: extensions$4,
|
|
42583
|
+
filenames: filenames$1,
|
|
42584
|
+
languageId: languageId$4,
|
|
42585
|
+
'default': _JSON
|
|
42512
42586
|
});
|
|
42513
42587
|
|
|
42514
42588
|
var name$7 = "JSON with Comments";
|
|
@@ -42522,6 +42596,7 @@ var aliases$2 = [
|
|
|
42522
42596
|
"jsonc"
|
|
42523
42597
|
];
|
|
42524
42598
|
var extensions$5 = [
|
|
42599
|
+
".jsonc",
|
|
42525
42600
|
".sublime-build",
|
|
42526
42601
|
".sublime-commands",
|
|
42527
42602
|
".sublime-completions",
|
|
@@ -42562,19 +42637,19 @@ var JSON_with_Comments = {
|
|
|
42562
42637
|
};
|
|
42563
42638
|
|
|
42564
42639
|
var JSON_with_Comments$1 = /*#__PURE__*/Object.freeze({
|
|
42565
|
-
|
|
42566
|
-
|
|
42567
|
-
|
|
42568
|
-
|
|
42569
|
-
|
|
42570
|
-
|
|
42571
|
-
|
|
42572
|
-
|
|
42573
|
-
|
|
42574
|
-
|
|
42575
|
-
|
|
42576
|
-
|
|
42577
|
-
|
|
42640
|
+
__proto__: null,
|
|
42641
|
+
name: name$7,
|
|
42642
|
+
type: type$5,
|
|
42643
|
+
group: group$5,
|
|
42644
|
+
tmScope: tmScope$5,
|
|
42645
|
+
aceMode: aceMode$5,
|
|
42646
|
+
codemirrorMode: codemirrorMode$5,
|
|
42647
|
+
codemirrorMimeType: codemirrorMimeType$5,
|
|
42648
|
+
aliases: aliases$2,
|
|
42649
|
+
extensions: extensions$5,
|
|
42650
|
+
filenames: filenames$2,
|
|
42651
|
+
languageId: languageId$5,
|
|
42652
|
+
'default': JSON_with_Comments
|
|
42578
42653
|
});
|
|
42579
42654
|
|
|
42580
42655
|
var name$8 = "JSON5";
|
|
@@ -42599,21 +42674,21 @@ var JSON5 = {
|
|
|
42599
42674
|
};
|
|
42600
42675
|
|
|
42601
42676
|
var JSON5$1 = /*#__PURE__*/Object.freeze({
|
|
42602
|
-
|
|
42603
|
-
|
|
42604
|
-
|
|
42605
|
-
|
|
42606
|
-
|
|
42607
|
-
|
|
42608
|
-
|
|
42609
|
-
|
|
42610
|
-
|
|
42611
|
-
|
|
42677
|
+
__proto__: null,
|
|
42678
|
+
name: name$8,
|
|
42679
|
+
type: type$6,
|
|
42680
|
+
extensions: extensions$6,
|
|
42681
|
+
tmScope: tmScope$6,
|
|
42682
|
+
aceMode: aceMode$6,
|
|
42683
|
+
codemirrorMode: codemirrorMode$6,
|
|
42684
|
+
codemirrorMimeType: codemirrorMimeType$6,
|
|
42685
|
+
languageId: languageId$6,
|
|
42686
|
+
'default': JSON5
|
|
42612
42687
|
});
|
|
42613
42688
|
|
|
42614
|
-
var require$$0$
|
|
42689
|
+
var require$$0$1 = getCjsExportFromNamespace(JavaScript$1);
|
|
42615
42690
|
|
|
42616
|
-
var require$$1 = getCjsExportFromNamespace(JSX$1);
|
|
42691
|
+
var require$$1$1 = getCjsExportFromNamespace(JSX$1);
|
|
42617
42692
|
|
|
42618
42693
|
var require$$2 = getCjsExportFromNamespace(TypeScript$1);
|
|
42619
42694
|
|
|
@@ -42625,12 +42700,12 @@ var require$$5 = getCjsExportFromNamespace(JSON_with_Comments$1);
|
|
|
42625
42700
|
|
|
42626
42701
|
var require$$6 = getCjsExportFromNamespace(JSON5$1);
|
|
42627
42702
|
|
|
42628
|
-
const languages = [createLanguage(require$$0$
|
|
42703
|
+
const languages = [createLanguage(require$$0$1, data => ({
|
|
42629
42704
|
since: "0.0.0",
|
|
42630
42705
|
parsers: ["babel", "flow"],
|
|
42631
42706
|
vscodeLanguageIds: ["javascript", "mongo"],
|
|
42632
42707
|
interpreters: data.interpreters.concat(["nodejs"])
|
|
42633
|
-
})), createLanguage(require$$0$
|
|
42708
|
+
})), createLanguage(require$$0$1, () => ({
|
|
42634
42709
|
name: "Flow",
|
|
42635
42710
|
since: "0.0.0",
|
|
42636
42711
|
parsers: ["babel", "flow"],
|
|
@@ -42638,7 +42713,7 @@ const languages = [createLanguage(require$$0$2, data => ({
|
|
|
42638
42713
|
aliases: [],
|
|
42639
42714
|
filenames: [],
|
|
42640
42715
|
extensions: [".js.flow"]
|
|
42641
|
-
})), createLanguage(require$$1, () => ({
|
|
42716
|
+
})), createLanguage(require$$1$1, () => ({
|
|
42642
42717
|
since: "0.0.0",
|
|
42643
42718
|
parsers: ["babel", "flow"],
|
|
42644
42719
|
vscodeLanguageIds: ["javascriptreact"]
|
|
@@ -42803,7 +42878,7 @@ const {
|
|
|
42803
42878
|
markAsRoot: markAsRoot$1
|
|
42804
42879
|
},
|
|
42805
42880
|
utils: {
|
|
42806
|
-
mapDoc: mapDoc$
|
|
42881
|
+
mapDoc: mapDoc$2
|
|
42807
42882
|
}
|
|
42808
42883
|
} = document;
|
|
42809
42884
|
|
|
@@ -42821,7 +42896,7 @@ function embed$1(path, print, textToDoc
|
|
|
42821
42896
|
return null;
|
|
42822
42897
|
|
|
42823
42898
|
function replaceNewlinesWithLiterallines(doc) {
|
|
42824
|
-
return mapDoc$
|
|
42899
|
+
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);
|
|
42825
42900
|
}
|
|
42826
42901
|
}
|
|
42827
42902
|
|
|
@@ -43106,7 +43181,7 @@ function getPropOfDeclNode(path) {
|
|
|
43106
43181
|
|
|
43107
43182
|
function isSCSS(parser, text) {
|
|
43108
43183
|
const hasExplicitParserChoice = parser === "less" || parser === "scss";
|
|
43109
|
-
const IS_POSSIBLY_SCSS = /(\w\s
|
|
43184
|
+
const IS_POSSIBLY_SCSS = /(\w\s*:\s*[^}:]+|#){|@import[^\n]+(?:url|,)/;
|
|
43110
43185
|
return hasExplicitParserChoice ? parser === "scss" : IS_POSSIBLY_SCSS.test(text);
|
|
43111
43186
|
}
|
|
43112
43187
|
|
|
@@ -43550,7 +43625,7 @@ function genericPrint$2(path, options, print) {
|
|
|
43550
43625
|
return concat$9(["@", // If a Less file ends up being parsed with the SCSS parser, Less
|
|
43551
43626
|
// variable declarations will be parsed as at-rules with names ending
|
|
43552
43627
|
// with a colon, so keep the original case then.
|
|
43553
|
-
isDetachedRulesetCallNode$1(node) || node.name.endsWith(":") ? node.name : maybeToLowerCase$1(node.name), node.params ? concat$9([isDetachedRulesetCallNode$1(node) ? "" : isTemplatePlaceholderNode$1(node)
|
|
43628
|
+
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 ? "" : ";"]);
|
|
43554
43629
|
}
|
|
43555
43630
|
// postcss-media-query-parser
|
|
43556
43631
|
|
|
@@ -43756,6 +43831,11 @@ function genericPrint$2(path, options, print) {
|
|
|
43756
43831
|
|
|
43757
43832
|
if (!iNextNode) {
|
|
43758
43833
|
continue;
|
|
43834
|
+
} // styled.div` background: var(--${one}); `
|
|
43835
|
+
|
|
43836
|
+
|
|
43837
|
+
if (!iPrevNode && iNode.value === "--" && iNextNode.type === "value-atword") {
|
|
43838
|
+
continue;
|
|
43759
43839
|
} // Ignore spaces before/after string interpolation (i.e. `"#{my-fn("_")}"`)
|
|
43760
43840
|
|
|
43761
43841
|
|
|
@@ -44104,17 +44184,17 @@ var CSS = {
|
|
|
44104
44184
|
};
|
|
44105
44185
|
|
|
44106
44186
|
var CSS$1 = /*#__PURE__*/Object.freeze({
|
|
44107
|
-
|
|
44108
|
-
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
|
|
44113
|
-
|
|
44114
|
-
|
|
44115
|
-
|
|
44116
|
-
|
|
44117
|
-
|
|
44187
|
+
__proto__: null,
|
|
44188
|
+
name: name$9,
|
|
44189
|
+
type: type$7,
|
|
44190
|
+
tmScope: tmScope$7,
|
|
44191
|
+
aceMode: aceMode$7,
|
|
44192
|
+
codemirrorMode: codemirrorMode$7,
|
|
44193
|
+
codemirrorMimeType: codemirrorMimeType$7,
|
|
44194
|
+
color: color$2,
|
|
44195
|
+
extensions: extensions$7,
|
|
44196
|
+
languageId: languageId$7,
|
|
44197
|
+
'default': CSS
|
|
44118
44198
|
});
|
|
44119
44199
|
|
|
44120
44200
|
var name$a = "PostCSS";
|
|
@@ -44138,15 +44218,15 @@ var PostCSS = {
|
|
|
44138
44218
|
};
|
|
44139
44219
|
|
|
44140
44220
|
var PostCSS$1 = /*#__PURE__*/Object.freeze({
|
|
44141
|
-
|
|
44142
|
-
|
|
44143
|
-
|
|
44144
|
-
|
|
44145
|
-
|
|
44146
|
-
|
|
44147
|
-
|
|
44148
|
-
|
|
44149
|
-
|
|
44221
|
+
__proto__: null,
|
|
44222
|
+
name: name$a,
|
|
44223
|
+
type: type$8,
|
|
44224
|
+
tmScope: tmScope$8,
|
|
44225
|
+
group: group$7,
|
|
44226
|
+
extensions: extensions$8,
|
|
44227
|
+
aceMode: aceMode$8,
|
|
44228
|
+
languageId: languageId$8,
|
|
44229
|
+
'default': PostCSS
|
|
44150
44230
|
});
|
|
44151
44231
|
|
|
44152
44232
|
var name$b = "Less";
|
|
@@ -44173,17 +44253,17 @@ var Less = {
|
|
|
44173
44253
|
};
|
|
44174
44254
|
|
|
44175
44255
|
var Less$1 = /*#__PURE__*/Object.freeze({
|
|
44176
|
-
|
|
44177
|
-
|
|
44178
|
-
|
|
44179
|
-
|
|
44180
|
-
|
|
44181
|
-
|
|
44182
|
-
|
|
44183
|
-
|
|
44184
|
-
|
|
44185
|
-
|
|
44186
|
-
|
|
44256
|
+
__proto__: null,
|
|
44257
|
+
name: name$b,
|
|
44258
|
+
type: type$9,
|
|
44259
|
+
group: group$8,
|
|
44260
|
+
extensions: extensions$9,
|
|
44261
|
+
tmScope: tmScope$9,
|
|
44262
|
+
aceMode: aceMode$9,
|
|
44263
|
+
codemirrorMode: codemirrorMode$8,
|
|
44264
|
+
codemirrorMimeType: codemirrorMimeType$8,
|
|
44265
|
+
languageId: languageId$9,
|
|
44266
|
+
'default': Less
|
|
44187
44267
|
});
|
|
44188
44268
|
|
|
44189
44269
|
var name$c = "SCSS";
|
|
@@ -44210,32 +44290,32 @@ var SCSS = {
|
|
|
44210
44290
|
};
|
|
44211
44291
|
|
|
44212
44292
|
var SCSS$1 = /*#__PURE__*/Object.freeze({
|
|
44213
|
-
|
|
44214
|
-
|
|
44215
|
-
|
|
44216
|
-
|
|
44217
|
-
|
|
44218
|
-
|
|
44219
|
-
|
|
44220
|
-
|
|
44221
|
-
|
|
44222
|
-
|
|
44223
|
-
|
|
44293
|
+
__proto__: null,
|
|
44294
|
+
name: name$c,
|
|
44295
|
+
type: type$a,
|
|
44296
|
+
tmScope: tmScope$a,
|
|
44297
|
+
group: group$9,
|
|
44298
|
+
aceMode: aceMode$a,
|
|
44299
|
+
codemirrorMode: codemirrorMode$9,
|
|
44300
|
+
codemirrorMimeType: codemirrorMimeType$9,
|
|
44301
|
+
extensions: extensions$a,
|
|
44302
|
+
languageId: languageId$a,
|
|
44303
|
+
'default': SCSS
|
|
44224
44304
|
});
|
|
44225
44305
|
|
|
44226
|
-
var require$$0$
|
|
44306
|
+
var require$$0$2 = getCjsExportFromNamespace(CSS$1);
|
|
44227
44307
|
|
|
44228
|
-
var require$$1$
|
|
44308
|
+
var require$$1$2 = getCjsExportFromNamespace(PostCSS$1);
|
|
44229
44309
|
|
|
44230
44310
|
var require$$2$1 = getCjsExportFromNamespace(Less$1);
|
|
44231
44311
|
|
|
44232
44312
|
var require$$3$1 = getCjsExportFromNamespace(SCSS$1);
|
|
44233
44313
|
|
|
44234
|
-
const languages$1 = [createLanguage(require$$0$
|
|
44314
|
+
const languages$1 = [createLanguage(require$$0$2, () => ({
|
|
44235
44315
|
since: "1.4.0",
|
|
44236
44316
|
parsers: ["css"],
|
|
44237
44317
|
vscodeLanguageIds: ["css"]
|
|
44238
|
-
})), createLanguage(require$$1$
|
|
44318
|
+
})), createLanguage(require$$1$2, () => ({
|
|
44239
44319
|
since: "1.4.0",
|
|
44240
44320
|
parsers: ["css"],
|
|
44241
44321
|
vscodeLanguageIds: ["postcss"]
|
|
@@ -44806,21 +44886,21 @@ var Handlebars = {
|
|
|
44806
44886
|
};
|
|
44807
44887
|
|
|
44808
44888
|
var Handlebars$1 = /*#__PURE__*/Object.freeze({
|
|
44809
|
-
|
|
44810
|
-
|
|
44811
|
-
|
|
44812
|
-
|
|
44813
|
-
|
|
44814
|
-
|
|
44815
|
-
|
|
44816
|
-
|
|
44817
|
-
|
|
44818
|
-
|
|
44889
|
+
__proto__: null,
|
|
44890
|
+
name: name$d,
|
|
44891
|
+
type: type$b,
|
|
44892
|
+
group: group$b,
|
|
44893
|
+
aliases: aliases$3,
|
|
44894
|
+
extensions: extensions$b,
|
|
44895
|
+
tmScope: tmScope$b,
|
|
44896
|
+
aceMode: aceMode$b,
|
|
44897
|
+
languageId: languageId$b,
|
|
44898
|
+
'default': Handlebars
|
|
44819
44899
|
});
|
|
44820
44900
|
|
|
44821
|
-
var require$$0$
|
|
44901
|
+
var require$$0$3 = getCjsExportFromNamespace(Handlebars$1);
|
|
44822
44902
|
|
|
44823
|
-
const languages$2 = [createLanguage(require$$0$
|
|
44903
|
+
const languages$2 = [createLanguage(require$$0$3, () => ({
|
|
44824
44904
|
since: null,
|
|
44825
44905
|
// unreleased
|
|
44826
44906
|
parsers: ["glimmer"],
|
|
@@ -45183,19 +45263,19 @@ var GraphQL = {
|
|
|
45183
45263
|
};
|
|
45184
45264
|
|
|
45185
45265
|
var GraphQL$1 = /*#__PURE__*/Object.freeze({
|
|
45186
|
-
|
|
45187
|
-
|
|
45188
|
-
|
|
45189
|
-
|
|
45190
|
-
|
|
45191
|
-
|
|
45192
|
-
|
|
45193
|
-
|
|
45266
|
+
__proto__: null,
|
|
45267
|
+
name: name$e,
|
|
45268
|
+
type: type$c,
|
|
45269
|
+
extensions: extensions$c,
|
|
45270
|
+
tmScope: tmScope$c,
|
|
45271
|
+
aceMode: aceMode$c,
|
|
45272
|
+
languageId: languageId$c,
|
|
45273
|
+
'default': GraphQL
|
|
45194
45274
|
});
|
|
45195
45275
|
|
|
45196
|
-
var require$$0$
|
|
45276
|
+
var require$$0$4 = getCjsExportFromNamespace(GraphQL$1);
|
|
45197
45277
|
|
|
45198
|
-
const languages$3 = [createLanguage(require$$0$
|
|
45278
|
+
const languages$3 = [createLanguage(require$$0$4, () => ({
|
|
45199
45279
|
since: "1.5.0",
|
|
45200
45280
|
parsers: ["graphql"],
|
|
45201
45281
|
vscodeLanguageIds: ["graphql"]
|
|
@@ -45401,7 +45481,7 @@ const {
|
|
|
45401
45481
|
markAsRoot: markAsRoot$2
|
|
45402
45482
|
},
|
|
45403
45483
|
utils: {
|
|
45404
|
-
mapDoc: mapDoc$
|
|
45484
|
+
mapDoc: mapDoc$3
|
|
45405
45485
|
}
|
|
45406
45486
|
} = document;
|
|
45407
45487
|
const {
|
|
@@ -45463,7 +45543,7 @@ function embed$2(path, print, textToDoc, options) {
|
|
|
45463
45543
|
}
|
|
45464
45544
|
|
|
45465
45545
|
function replaceNewlinesWithLiterallines(doc) {
|
|
45466
|
-
return mapDoc$
|
|
45546
|
+
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);
|
|
45467
45547
|
}
|
|
45468
45548
|
}
|
|
45469
45549
|
|
|
@@ -45768,7 +45848,7 @@ const {
|
|
|
45768
45848
|
group: group$d
|
|
45769
45849
|
},
|
|
45770
45850
|
utils: {
|
|
45771
|
-
mapDoc: mapDoc$
|
|
45851
|
+
mapDoc: mapDoc$4
|
|
45772
45852
|
},
|
|
45773
45853
|
printer: {
|
|
45774
45854
|
printDocToString: printDocToString$3
|
|
@@ -46085,19 +46165,6 @@ function getAncestorNode$2(path, typeOrTypes) {
|
|
|
46085
46165
|
}
|
|
46086
46166
|
|
|
46087
46167
|
function printLine(path, value, options) {
|
|
46088
|
-
const greatGrandParentNode = path.getParentNode(2);
|
|
46089
|
-
|
|
46090
|
-
if (greatGrandParentNode && greatGrandParentNode.type === "listItem") {
|
|
46091
|
-
const parentNode = path.getParentNode();
|
|
46092
|
-
const grandParentNode = path.getParentNode(1);
|
|
46093
|
-
const index = grandParentNode.children.indexOf(parentNode);
|
|
46094
|
-
const prevGrandParentNode = grandParentNode.children[index - 1];
|
|
46095
|
-
|
|
46096
|
-
if (prevGrandParentNode && prevGrandParentNode.type === "break") {
|
|
46097
|
-
return "";
|
|
46098
|
-
}
|
|
46099
|
-
}
|
|
46100
|
-
|
|
46101
46168
|
if (options.proseWrap === "preserve" && value === "\n") {
|
|
46102
46169
|
return hardline$b;
|
|
46103
46170
|
}
|
|
@@ -46349,7 +46416,7 @@ function shouldRemainTheSameContent(path) {
|
|
|
46349
46416
|
}
|
|
46350
46417
|
|
|
46351
46418
|
function normalizeDoc(doc) {
|
|
46352
|
-
return mapDoc$
|
|
46419
|
+
return mapDoc$4(doc, currentDoc => {
|
|
46353
46420
|
if (!currentDoc.parts) {
|
|
46354
46421
|
return currentDoc;
|
|
46355
46422
|
}
|
|
@@ -46515,30 +46582,30 @@ var Markdown = {
|
|
|
46515
46582
|
};
|
|
46516
46583
|
|
|
46517
46584
|
var Markdown$1 = /*#__PURE__*/Object.freeze({
|
|
46518
|
-
|
|
46519
|
-
|
|
46520
|
-
|
|
46521
|
-
|
|
46522
|
-
|
|
46523
|
-
|
|
46524
|
-
|
|
46525
|
-
|
|
46526
|
-
|
|
46527
|
-
|
|
46528
|
-
|
|
46529
|
-
|
|
46530
|
-
|
|
46585
|
+
__proto__: null,
|
|
46586
|
+
name: name$f,
|
|
46587
|
+
type: type$d,
|
|
46588
|
+
aliases: aliases$4,
|
|
46589
|
+
aceMode: aceMode$d,
|
|
46590
|
+
codemirrorMode: codemirrorMode$a,
|
|
46591
|
+
codemirrorMimeType: codemirrorMimeType$a,
|
|
46592
|
+
wrap: wrap,
|
|
46593
|
+
extensions: extensions$d,
|
|
46594
|
+
filenames: filenames$3,
|
|
46595
|
+
tmScope: tmScope$d,
|
|
46596
|
+
languageId: languageId$d,
|
|
46597
|
+
'default': Markdown
|
|
46531
46598
|
});
|
|
46532
46599
|
|
|
46533
|
-
var require$$0$
|
|
46600
|
+
var require$$0$5 = getCjsExportFromNamespace(Markdown$1);
|
|
46534
46601
|
|
|
46535
|
-
const languages$4 = [createLanguage(require$$0$
|
|
46602
|
+
const languages$4 = [createLanguage(require$$0$5, data => ({
|
|
46536
46603
|
since: "1.8.0",
|
|
46537
46604
|
parsers: ["markdown"],
|
|
46538
46605
|
vscodeLanguageIds: ["markdown"],
|
|
46539
46606
|
filenames: data.filenames.concat(["README"]),
|
|
46540
46607
|
extensions: data.extensions.filter(extension => extension !== ".mdx")
|
|
46541
|
-
})), createLanguage(require$$0$
|
|
46608
|
+
})), createLanguage(require$$0$5, () => ({
|
|
46542
46609
|
name: "MDX",
|
|
46543
46610
|
since: "1.15.0",
|
|
46544
46611
|
parsers: ["mdx"],
|
|
@@ -46819,8 +46886,8 @@ var index = [
|
|
|
46819
46886
|
];
|
|
46820
46887
|
|
|
46821
46888
|
var htmlTagNames = /*#__PURE__*/Object.freeze({
|
|
46822
|
-
|
|
46823
|
-
|
|
46889
|
+
__proto__: null,
|
|
46890
|
+
'default': index
|
|
46824
46891
|
});
|
|
46825
46892
|
|
|
46826
46893
|
var a = [
|
|
@@ -47504,87 +47571,87 @@ var index$1 = {
|
|
|
47504
47571
|
};
|
|
47505
47572
|
|
|
47506
47573
|
var htmlElementAttributes = /*#__PURE__*/Object.freeze({
|
|
47507
|
-
|
|
47508
|
-
|
|
47509
|
-
|
|
47510
|
-
|
|
47511
|
-
|
|
47512
|
-
|
|
47513
|
-
|
|
47514
|
-
|
|
47515
|
-
|
|
47516
|
-
|
|
47517
|
-
|
|
47518
|
-
|
|
47519
|
-
|
|
47520
|
-
|
|
47521
|
-
|
|
47522
|
-
|
|
47523
|
-
|
|
47524
|
-
|
|
47525
|
-
|
|
47526
|
-
|
|
47527
|
-
|
|
47528
|
-
|
|
47529
|
-
|
|
47530
|
-
|
|
47531
|
-
|
|
47532
|
-
|
|
47533
|
-
|
|
47534
|
-
|
|
47535
|
-
|
|
47536
|
-
|
|
47537
|
-
|
|
47538
|
-
|
|
47539
|
-
|
|
47540
|
-
|
|
47541
|
-
|
|
47542
|
-
|
|
47543
|
-
|
|
47544
|
-
|
|
47545
|
-
|
|
47546
|
-
|
|
47547
|
-
|
|
47548
|
-
|
|
47549
|
-
|
|
47550
|
-
|
|
47551
|
-
|
|
47552
|
-
|
|
47553
|
-
|
|
47554
|
-
|
|
47555
|
-
|
|
47556
|
-
|
|
47557
|
-
|
|
47558
|
-
|
|
47559
|
-
|
|
47560
|
-
|
|
47561
|
-
|
|
47562
|
-
|
|
47563
|
-
|
|
47564
|
-
|
|
47565
|
-
|
|
47566
|
-
|
|
47567
|
-
|
|
47568
|
-
|
|
47569
|
-
|
|
47570
|
-
|
|
47571
|
-
|
|
47572
|
-
|
|
47573
|
-
|
|
47574
|
-
|
|
47575
|
-
|
|
47576
|
-
|
|
47577
|
-
|
|
47578
|
-
|
|
47579
|
-
|
|
47580
|
-
|
|
47581
|
-
|
|
47582
|
-
|
|
47583
|
-
|
|
47584
|
-
|
|
47585
|
-
|
|
47586
|
-
|
|
47587
|
-
|
|
47574
|
+
__proto__: null,
|
|
47575
|
+
a: a,
|
|
47576
|
+
abbr: abbr,
|
|
47577
|
+
applet: applet,
|
|
47578
|
+
area: area,
|
|
47579
|
+
audio: audio,
|
|
47580
|
+
base: base,
|
|
47581
|
+
basefont: basefont,
|
|
47582
|
+
bdo: bdo,
|
|
47583
|
+
blockquote: blockquote,
|
|
47584
|
+
body: body,
|
|
47585
|
+
br: br,
|
|
47586
|
+
button: button,
|
|
47587
|
+
canvas: canvas,
|
|
47588
|
+
caption: caption,
|
|
47589
|
+
col: col,
|
|
47590
|
+
colgroup: colgroup,
|
|
47591
|
+
data: data,
|
|
47592
|
+
del: del$1,
|
|
47593
|
+
details: details,
|
|
47594
|
+
dfn: dfn,
|
|
47595
|
+
dialog: dialog,
|
|
47596
|
+
dir: dir,
|
|
47597
|
+
div: div,
|
|
47598
|
+
dl: dl,
|
|
47599
|
+
embed: embed$3,
|
|
47600
|
+
fieldset: fieldset,
|
|
47601
|
+
font: font,
|
|
47602
|
+
form: form,
|
|
47603
|
+
frame: frame,
|
|
47604
|
+
frameset: frameset,
|
|
47605
|
+
h1: h1,
|
|
47606
|
+
h2: h2,
|
|
47607
|
+
h3: h3,
|
|
47608
|
+
h4: h4,
|
|
47609
|
+
h5: h5,
|
|
47610
|
+
h6: h6,
|
|
47611
|
+
head: head,
|
|
47612
|
+
hr: hr,
|
|
47613
|
+
html: html,
|
|
47614
|
+
iframe: iframe,
|
|
47615
|
+
img: img,
|
|
47616
|
+
input: input,
|
|
47617
|
+
ins: ins,
|
|
47618
|
+
isindex: isindex,
|
|
47619
|
+
label: label,
|
|
47620
|
+
legend: legend,
|
|
47621
|
+
li: li,
|
|
47622
|
+
link: link$3,
|
|
47623
|
+
map: map$1,
|
|
47624
|
+
menu: menu,
|
|
47625
|
+
meta: meta,
|
|
47626
|
+
meter: meter,
|
|
47627
|
+
object: object,
|
|
47628
|
+
ol: ol,
|
|
47629
|
+
optgroup: optgroup,
|
|
47630
|
+
option: option,
|
|
47631
|
+
output: output,
|
|
47632
|
+
p: p,
|
|
47633
|
+
param: param,
|
|
47634
|
+
pre: pre,
|
|
47635
|
+
progress: progress,
|
|
47636
|
+
q: q,
|
|
47637
|
+
script: script,
|
|
47638
|
+
select: select,
|
|
47639
|
+
slot: slot,
|
|
47640
|
+
source: source$1,
|
|
47641
|
+
style: style,
|
|
47642
|
+
table: table,
|
|
47643
|
+
tbody: tbody,
|
|
47644
|
+
td: td,
|
|
47645
|
+
textarea: textarea,
|
|
47646
|
+
tfoot: tfoot,
|
|
47647
|
+
th: th,
|
|
47648
|
+
thead: thead,
|
|
47649
|
+
time: time,
|
|
47650
|
+
tr: tr,
|
|
47651
|
+
track: track,
|
|
47652
|
+
ul: ul,
|
|
47653
|
+
video: video,
|
|
47654
|
+
'default': index$1
|
|
47588
47655
|
});
|
|
47589
47656
|
|
|
47590
47657
|
var htmlTagNames$1 = getCjsExportFromNamespace(htmlTagNames);
|
|
@@ -47698,7 +47765,7 @@ function isTextLikeNode(node) {
|
|
|
47698
47765
|
}
|
|
47699
47766
|
|
|
47700
47767
|
function isScriptLikeTag(node) {
|
|
47701
|
-
return node.type === "element" && (node.fullName === "script" || node.fullName === "style" || node.fullName === "svg:style");
|
|
47768
|
+
return node.type === "element" && (node.fullName === "script" || node.fullName === "style" || node.fullName === "svg:style" || isUnknownNamespace(node) && (node.name === "script" || node.name === "style"));
|
|
47702
47769
|
}
|
|
47703
47770
|
|
|
47704
47771
|
function isFrontMatterNode(node) {
|
|
@@ -48699,7 +48766,7 @@ const {
|
|
|
48699
48766
|
builders,
|
|
48700
48767
|
utils: {
|
|
48701
48768
|
stripTrailingHardline: stripTrailingHardline$2,
|
|
48702
|
-
mapDoc: mapDoc$
|
|
48769
|
+
mapDoc: mapDoc$5
|
|
48703
48770
|
}
|
|
48704
48771
|
} = document;
|
|
48705
48772
|
const {
|
|
@@ -48813,7 +48880,7 @@ function embed$4(path, print, textToDoc, options) {
|
|
|
48813
48880
|
}, opts)), options);
|
|
48814
48881
|
|
|
48815
48882
|
if (embeddedAttributeValueDoc) {
|
|
48816
|
-
return concat$g([node.rawName, '="', group$f(mapDoc$
|
|
48883
|
+
return concat$g([node.rawName, '="', group$f(mapDoc$5(embeddedAttributeValueDoc, doc => typeof doc === "string" ? doc.replace(/"/g, """) : doc)), '"']);
|
|
48817
48884
|
}
|
|
48818
48885
|
|
|
48819
48886
|
break;
|
|
@@ -49021,7 +49088,7 @@ function printChildren$2(path, options, print) {
|
|
|
49021
49088
|
}
|
|
49022
49089
|
|
|
49023
49090
|
function printBetweenLine(prevNode, nextNode) {
|
|
49024
|
-
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) && (
|
|
49091
|
+
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) ||
|
|
49025
49092
|
/**
|
|
49026
49093
|
* 123<a
|
|
49027
49094
|
* ~
|
|
@@ -49536,18 +49603,18 @@ var HTML = {
|
|
|
49536
49603
|
};
|
|
49537
49604
|
|
|
49538
49605
|
var HTML$1 = /*#__PURE__*/Object.freeze({
|
|
49539
|
-
|
|
49540
|
-
|
|
49541
|
-
|
|
49542
|
-
|
|
49543
|
-
|
|
49544
|
-
|
|
49545
|
-
|
|
49546
|
-
|
|
49547
|
-
|
|
49548
|
-
|
|
49549
|
-
|
|
49550
|
-
|
|
49606
|
+
__proto__: null,
|
|
49607
|
+
name: name$g,
|
|
49608
|
+
type: type$e,
|
|
49609
|
+
tmScope: tmScope$e,
|
|
49610
|
+
aceMode: aceMode$e,
|
|
49611
|
+
codemirrorMode: codemirrorMode$b,
|
|
49612
|
+
codemirrorMimeType: codemirrorMimeType$b,
|
|
49613
|
+
color: color$3,
|
|
49614
|
+
aliases: aliases$5,
|
|
49615
|
+
extensions: extensions$e,
|
|
49616
|
+
languageId: languageId$e,
|
|
49617
|
+
'default': HTML
|
|
49551
49618
|
});
|
|
49552
49619
|
|
|
49553
49620
|
var name$h = "Vue";
|
|
@@ -49570,42 +49637,42 @@ var Vue = {
|
|
|
49570
49637
|
};
|
|
49571
49638
|
|
|
49572
49639
|
var Vue$1 = /*#__PURE__*/Object.freeze({
|
|
49573
|
-
|
|
49574
|
-
|
|
49575
|
-
|
|
49576
|
-
|
|
49577
|
-
|
|
49578
|
-
|
|
49579
|
-
|
|
49580
|
-
|
|
49581
|
-
|
|
49640
|
+
__proto__: null,
|
|
49641
|
+
name: name$h,
|
|
49642
|
+
type: type$f,
|
|
49643
|
+
color: color$4,
|
|
49644
|
+
extensions: extensions$f,
|
|
49645
|
+
tmScope: tmScope$f,
|
|
49646
|
+
aceMode: aceMode$f,
|
|
49647
|
+
languageId: languageId$f,
|
|
49648
|
+
'default': Vue
|
|
49582
49649
|
});
|
|
49583
49650
|
|
|
49584
|
-
var require$$0$
|
|
49651
|
+
var require$$0$6 = getCjsExportFromNamespace(HTML$1);
|
|
49585
49652
|
|
|
49586
|
-
var require$$1$
|
|
49653
|
+
var require$$1$3 = getCjsExportFromNamespace(Vue$1);
|
|
49587
49654
|
|
|
49588
|
-
const languages$5 = [createLanguage(require$$0$
|
|
49655
|
+
const languages$5 = [createLanguage(require$$0$6, () => ({
|
|
49589
49656
|
name: "Angular",
|
|
49590
49657
|
since: "1.15.0",
|
|
49591
49658
|
parsers: ["angular"],
|
|
49592
49659
|
vscodeLanguageIds: ["html"],
|
|
49593
49660
|
extensions: [".component.html"],
|
|
49594
49661
|
filenames: []
|
|
49595
|
-
})), createLanguage(require$$0$
|
|
49662
|
+
})), createLanguage(require$$0$6, data => ({
|
|
49596
49663
|
since: "1.15.0",
|
|
49597
49664
|
parsers: ["html"],
|
|
49598
49665
|
vscodeLanguageIds: ["html"],
|
|
49599
49666
|
extensions: data.extensions.concat([".mjml" // MJML is considered XML in Linguist but it should be formatted as HTML
|
|
49600
49667
|
])
|
|
49601
|
-
})), createLanguage(require$$0$
|
|
49668
|
+
})), createLanguage(require$$0$6, () => ({
|
|
49602
49669
|
name: "Lightning Web Components",
|
|
49603
49670
|
since: "1.17.0",
|
|
49604
49671
|
parsers: ["lwc"],
|
|
49605
49672
|
vscodeLanguageIds: ["html"],
|
|
49606
49673
|
extensions: [],
|
|
49607
49674
|
filenames: []
|
|
49608
|
-
})), createLanguage(require$$1$
|
|
49675
|
+
})), createLanguage(require$$1$3, () => ({
|
|
49609
49676
|
since: "1.10.0",
|
|
49610
49677
|
parsers: ["vue"],
|
|
49611
49678
|
vscodeLanguageIds: ["vue"]
|
|
@@ -50332,7 +50399,8 @@ var filenames$4 = [
|
|
|
50332
50399
|
".clang-format",
|
|
50333
50400
|
".clang-tidy",
|
|
50334
50401
|
".gemrc",
|
|
50335
|
-
"glide.lock"
|
|
50402
|
+
"glide.lock",
|
|
50403
|
+
"yarn.lock"
|
|
50336
50404
|
];
|
|
50337
50405
|
var aceMode$g = "yaml";
|
|
50338
50406
|
var codemirrorMode$c = "yaml";
|
|
@@ -50352,26 +50420,28 @@ var YAML = {
|
|
|
50352
50420
|
};
|
|
50353
50421
|
|
|
50354
50422
|
var YAML$1 = /*#__PURE__*/Object.freeze({
|
|
50355
|
-
|
|
50356
|
-
|
|
50357
|
-
|
|
50358
|
-
|
|
50359
|
-
|
|
50360
|
-
|
|
50361
|
-
|
|
50362
|
-
|
|
50363
|
-
|
|
50364
|
-
|
|
50365
|
-
|
|
50366
|
-
|
|
50423
|
+
__proto__: null,
|
|
50424
|
+
name: name$i,
|
|
50425
|
+
type: type$g,
|
|
50426
|
+
tmScope: tmScope$g,
|
|
50427
|
+
aliases: aliases$6,
|
|
50428
|
+
extensions: extensions$g,
|
|
50429
|
+
filenames: filenames$4,
|
|
50430
|
+
aceMode: aceMode$g,
|
|
50431
|
+
codemirrorMode: codemirrorMode$c,
|
|
50432
|
+
codemirrorMimeType: codemirrorMimeType$c,
|
|
50433
|
+
languageId: languageId$g,
|
|
50434
|
+
'default': YAML
|
|
50367
50435
|
});
|
|
50368
50436
|
|
|
50369
|
-
var require$$0$
|
|
50437
|
+
var require$$0$7 = getCjsExportFromNamespace(YAML$1);
|
|
50370
50438
|
|
|
50371
|
-
const languages$6 = [createLanguage(require$$0$
|
|
50439
|
+
const languages$6 = [createLanguage(require$$0$7, data => ({
|
|
50372
50440
|
since: "1.14.0",
|
|
50373
50441
|
parsers: ["yaml"],
|
|
50374
|
-
vscodeLanguageIds: ["yaml"]
|
|
50442
|
+
vscodeLanguageIds: ["yaml"],
|
|
50443
|
+
// yarn.lock is not YAML: https://github.com/yarnpkg/yarn/issues/5629
|
|
50444
|
+
filenames: data.filenames.filter(filename => filename !== "yarn.lock")
|
|
50375
50445
|
}))];
|
|
50376
50446
|
var languageYaml = {
|
|
50377
50447
|
languages: languages$6,
|
|
@@ -50466,11 +50536,11 @@ languageCss, {
|
|
|
50466
50536
|
},
|
|
50467
50537
|
|
|
50468
50538
|
get less() {
|
|
50469
|
-
return require("./parser-postcss").parsers.
|
|
50539
|
+
return require("./parser-postcss").parsers.less;
|
|
50470
50540
|
},
|
|
50471
50541
|
|
|
50472
50542
|
get scss() {
|
|
50473
|
-
return require("./parser-postcss").parsers.
|
|
50543
|
+
return require("./parser-postcss").parsers.scss;
|
|
50474
50544
|
}
|
|
50475
50545
|
|
|
50476
50546
|
}
|
|
@@ -50573,10 +50643,10 @@ function load(plugins, pluginSearchDirs) {
|
|
|
50573
50643
|
|
|
50574
50644
|
try {
|
|
50575
50645
|
// try local files
|
|
50576
|
-
requirePath =
|
|
50646
|
+
requirePath = resolve_1(path$1.resolve(process.cwd(), pluginName));
|
|
50577
50647
|
} catch (_) {
|
|
50578
50648
|
// try node modules
|
|
50579
|
-
requirePath =
|
|
50649
|
+
requirePath = resolve_1(pluginName, {
|
|
50580
50650
|
paths: [process.cwd()]
|
|
50581
50651
|
});
|
|
50582
50652
|
}
|
|
@@ -50598,7 +50668,7 @@ function load(plugins, pluginSearchDirs) {
|
|
|
50598
50668
|
|
|
50599
50669
|
return memoizedSearch(nodeModulesDir).map(pluginName => ({
|
|
50600
50670
|
name: pluginName,
|
|
50601
|
-
requirePath:
|
|
50671
|
+
requirePath: resolve_1(pluginName, {
|
|
50602
50672
|
paths: [resolvedPluginSearchDir]
|
|
50603
50673
|
})
|
|
50604
50674
|
}));
|
|
@@ -50632,7 +50702,7 @@ var loadPlugins = {
|
|
|
50632
50702
|
|
|
50633
50703
|
const {
|
|
50634
50704
|
version: version$2
|
|
50635
|
-
} = require$$
|
|
50705
|
+
} = require$$1;
|
|
50636
50706
|
const {
|
|
50637
50707
|
getSupportInfo: getSupportInfo$2
|
|
50638
50708
|
} = support;
|
|
@@ -52495,7 +52565,7 @@ function cliifyOptions(object, apiDetailedOptionMap) {
|
|
|
52495
52565
|
}
|
|
52496
52566
|
|
|
52497
52567
|
function diff(a, b) {
|
|
52498
|
-
return require$$0
|
|
52568
|
+
return require$$0.createTwoFilesPatch("", "", a, b, "", "", {
|
|
52499
52569
|
context: 2
|
|
52500
52570
|
});
|
|
52501
52571
|
}
|
|
@@ -53262,6 +53332,8 @@ var util$2 = {
|
|
|
53262
53332
|
normalizeDetailedOptionMap
|
|
53263
53333
|
};
|
|
53264
53334
|
|
|
53335
|
+
pleaseUpgradeNode(require$$1);
|
|
53336
|
+
|
|
53265
53337
|
function run(args) {
|
|
53266
53338
|
const context = util$2.createContext(args);
|
|
53267
53339
|
|