prettier 3.2.1 → 3.2.3
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/LICENSE +3 -3
- package/index.cjs +1 -1
- package/index.mjs +7 -11
- package/package.json +1 -1
- package/plugins/acorn.js +10 -10
- package/plugins/acorn.mjs +10 -10
- package/plugins/angular.js +1 -1
- package/plugins/angular.mjs +1 -1
- package/plugins/babel.js +8 -8
- package/plugins/babel.mjs +8 -8
- package/plugins/estree.js +24 -24
- package/plugins/estree.mjs +24 -24
- package/plugins/flow.js +17 -17
- package/plugins/flow.mjs +17 -17
- package/plugins/graphql.js +6 -6
- package/plugins/graphql.mjs +6 -6
- package/plugins/html.js +1 -1
- package/plugins/html.mjs +1 -1
- package/plugins/markdown.js +1 -1
- package/plugins/markdown.mjs +1 -1
- package/plugins/meriyah.js +4 -4
- package/plugins/meriyah.mjs +4 -4
- package/plugins/typescript.js +19 -19
- package/plugins/typescript.mjs +19 -19
- package/standalone.js +10 -10
- package/standalone.mjs +9 -9
package/LICENSE
CHANGED
|
@@ -454,7 +454,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
|
|
|
454
454
|
|
|
455
455
|
----------------------------------------
|
|
456
456
|
|
|
457
|
-
### @typescript-eslint/types@v6.
|
|
457
|
+
### @typescript-eslint/types@v6.19.0
|
|
458
458
|
|
|
459
459
|
> Types for the TypeScript-ESTree AST spec
|
|
460
460
|
|
|
@@ -485,7 +485,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
485
485
|
|
|
486
486
|
----------------------------------------
|
|
487
487
|
|
|
488
|
-
### @typescript-eslint/typescript-estree@v6.
|
|
488
|
+
### @typescript-eslint/typescript-estree@v6.19.0
|
|
489
489
|
|
|
490
490
|
> A parser that converts TypeScript source code into an ESTree compatible form
|
|
491
491
|
|
|
@@ -1721,7 +1721,7 @@ Contributors:
|
|
|
1721
1721
|
|
|
1722
1722
|
----------------------------------------
|
|
1723
1723
|
|
|
1724
|
-
### flow-parser@v0.
|
|
1724
|
+
### flow-parser@v0.226.0
|
|
1725
1725
|
|
|
1726
1726
|
> JavaScript parser written in OCaml. Produces ESTree AST
|
|
1727
1727
|
|
package/index.cjs
CHANGED
package/index.mjs
CHANGED
|
@@ -19223,13 +19223,12 @@ function getLanguageByFileName(languages2, file) {
|
|
|
19223
19223
|
}
|
|
19224
19224
|
const basename = getFileBasename(file).toLowerCase();
|
|
19225
19225
|
return languages2.find(
|
|
19226
|
-
(
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
}
|
|
19226
|
+
({ filenames }) => filenames == null ? void 0 : filenames.some((name) => name.toLowerCase() === basename)
|
|
19227
|
+
) ?? languages2.find(
|
|
19228
|
+
({ extensions }) => extensions == null ? void 0 : extensions.some((extension) => basename.endsWith(extension))
|
|
19230
19229
|
);
|
|
19231
19230
|
}
|
|
19232
|
-
function
|
|
19231
|
+
function getLanguageByLanguageName(languages2, languageName) {
|
|
19233
19232
|
if (!languageName) {
|
|
19234
19233
|
return;
|
|
19235
19234
|
}
|
|
@@ -19244,10 +19243,7 @@ function getLanguageByInterpreter(languages2, file) {
|
|
|
19244
19243
|
return;
|
|
19245
19244
|
}
|
|
19246
19245
|
return languages2.find(
|
|
19247
|
-
(
|
|
19248
|
-
var _a;
|
|
19249
|
-
return (_a = language.interpreters) == null ? void 0 : _a.includes(interpreter);
|
|
19250
|
-
}
|
|
19246
|
+
({ interpreters }) => interpreters == null ? void 0 : interpreters.includes(interpreter)
|
|
19251
19247
|
);
|
|
19252
19248
|
}
|
|
19253
19249
|
function inferParser(options8, fileInfo) {
|
|
@@ -19257,7 +19253,7 @@ function inferParser(options8, fileInfo) {
|
|
|
19257
19253
|
plugin.languages ?? []
|
|
19258
19254
|
)
|
|
19259
19255
|
);
|
|
19260
|
-
const language =
|
|
19256
|
+
const language = getLanguageByLanguageName(languages2, fileInfo.language) ?? getLanguageByFileName(languages2, fileInfo.physicalFile) ?? getLanguageByFileName(languages2, fileInfo.file) ?? getLanguageByInterpreter(languages2, fileInfo.physicalFile);
|
|
19261
19257
|
return language == null ? void 0 : language.parsers[0];
|
|
19262
19258
|
}
|
|
19263
19259
|
var infer_parser_default = inferParser;
|
|
@@ -23962,7 +23958,7 @@ var object_omit_default = omit;
|
|
|
23962
23958
|
import * as doc from "./doc.mjs";
|
|
23963
23959
|
|
|
23964
23960
|
// src/main/version.evaluate.cjs
|
|
23965
|
-
var version_evaluate_default = "3.2.
|
|
23961
|
+
var version_evaluate_default = "3.2.3";
|
|
23966
23962
|
|
|
23967
23963
|
// src/utils/public.js
|
|
23968
23964
|
var public_exports = {};
|