prettier 4.0.0-alpha.3 → 4.0.0-alpha.5
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 +7 -39
- package/index.cjs +1 -1
- package/index.d.ts +1 -3
- package/index.mjs +7810 -7211
- package/internal/cli.mjs +10 -7
- package/package.json +2 -3
- package/plugins/acorn.js +1 -1
- package/plugins/acorn.mjs +1 -1
- package/plugins/babel.js +1 -1
- package/plugins/babel.mjs +1 -1
- package/plugins/estree.js +26 -26
- package/plugins/estree.mjs +26 -26
- package/plugins/flow.js +14 -14
- package/plugins/flow.mjs +14 -14
- package/plugins/glimmer.js +13 -13
- package/plugins/glimmer.mjs +13 -13
- package/plugins/html.js +15 -15
- package/plugins/html.mjs +15 -15
- package/plugins/meriyah.js +1 -1
- package/plugins/meriyah.mjs +1 -1
- package/plugins/postcss.js +1 -1
- package/plugins/postcss.mjs +1 -1
- package/plugins/typescript.js +19 -19
- package/plugins/typescript.mjs +19 -19
- package/standalone.d.ts +1 -1
- package/standalone.js +15 -18
- package/standalone.mjs +16 -19
- package/internal/internal.mjs +0 -670
package/LICENSE
CHANGED
|
@@ -27,7 +27,7 @@ Author: angular
|
|
|
27
27
|
|
|
28
28
|
----------------------------------------
|
|
29
29
|
|
|
30
|
-
### @babel/code-frame@v7.
|
|
30
|
+
### @babel/code-frame@v7.23.5
|
|
31
31
|
|
|
32
32
|
> Generate errors that contain a code frame that point to source locations.
|
|
33
33
|
|
|
@@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team)
|
|
|
128
128
|
|
|
129
129
|
----------------------------------------
|
|
130
130
|
|
|
131
|
-
### @babel/parser@v7.23.
|
|
131
|
+
### @babel/parser@v7.23.5
|
|
132
132
|
|
|
133
133
|
> A JavaScript parser
|
|
134
134
|
|
|
@@ -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.14.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.14.0
|
|
489
489
|
|
|
490
490
|
> A parser that converts TypeScript source code into an ESTree compatible form
|
|
491
491
|
|
|
@@ -1800,7 +1800,7 @@ Contributors:
|
|
|
1800
1800
|
|
|
1801
1801
|
----------------------------------------
|
|
1802
1802
|
|
|
1803
|
-
### flow-parser@v0.
|
|
1803
|
+
### flow-parser@v0.223.3
|
|
1804
1804
|
|
|
1805
1805
|
> JavaScript parser written in OCaml. Produces ESTree AST
|
|
1806
1806
|
|
|
@@ -2825,38 +2825,6 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
|
2825
2825
|
|
|
2826
2826
|
----------------------------------------
|
|
2827
2827
|
|
|
2828
|
-
### lilconfig@v2.1.0
|
|
2829
|
-
|
|
2830
|
-
> A zero-dependency alternative to cosmiconfig
|
|
2831
|
-
|
|
2832
|
-
License: MIT
|
|
2833
|
-
Repository: <https://github.com/antonk52/lilconfig>
|
|
2834
|
-
Author: antonk52
|
|
2835
|
-
|
|
2836
|
-
> MIT License
|
|
2837
|
-
>
|
|
2838
|
-
> Copyright (c) 2022 Anton Kastritskiy
|
|
2839
|
-
>
|
|
2840
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2841
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
2842
|
-
> in the Software without restriction, including without limitation the rights
|
|
2843
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2844
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
2845
|
-
> furnished to do so, subject to the following conditions:
|
|
2846
|
-
>
|
|
2847
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
2848
|
-
> copies or substantial portions of the Software.
|
|
2849
|
-
>
|
|
2850
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2851
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2852
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2853
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2854
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2855
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2856
|
-
> SOFTWARE.
|
|
2857
|
-
|
|
2858
|
-
----------------------------------------
|
|
2859
|
-
|
|
2860
2828
|
### lines-and-columns@v2.0.4
|
|
2861
2829
|
|
|
2862
2830
|
> Maps lines and columns to character offsets and back.
|
|
@@ -3550,7 +3518,7 @@ Author: typicode
|
|
|
3550
3518
|
|
|
3551
3519
|
----------------------------------------
|
|
3552
3520
|
|
|
3553
|
-
### postcss@v8.4.
|
|
3521
|
+
### postcss@v8.4.32
|
|
3554
3522
|
|
|
3555
3523
|
> Tool for transforming styles with JS plugins
|
|
3556
3524
|
|
|
@@ -4336,7 +4304,7 @@ Author: Josh Goldberg <npm@joshuakgoldberg.com>
|
|
|
4336
4304
|
|
|
4337
4305
|
----------------------------------------
|
|
4338
4306
|
|
|
4339
|
-
### typescript@v5.
|
|
4307
|
+
### typescript@v5.3.3
|
|
4340
4308
|
|
|
4341
4309
|
> TypeScript is a language for application scale JavaScript development
|
|
4342
4310
|
|
package/index.cjs
CHANGED
|
@@ -585,7 +585,7 @@ var init_public = __esm({
|
|
|
585
585
|
// src/main/version.evaluate.cjs
|
|
586
586
|
var require_version_evaluate = __commonJS({
|
|
587
587
|
"src/main/version.evaluate.cjs"(exports2, module2) {
|
|
588
|
-
module2.exports = "4.0.0-alpha.
|
|
588
|
+
module2.exports = "4.0.0-alpha.5";
|
|
589
589
|
}
|
|
590
590
|
});
|
|
591
591
|
|
package/index.d.ts
CHANGED
|
@@ -548,8 +548,6 @@ export interface CursorOptions extends Options {
|
|
|
548
548
|
* Specify where the cursor is.
|
|
549
549
|
*/
|
|
550
550
|
cursorOffset: number;
|
|
551
|
-
rangeStart?: never;
|
|
552
|
-
rangeEnd?: never;
|
|
553
551
|
}
|
|
554
552
|
|
|
555
553
|
export interface CursorResult {
|
|
@@ -572,7 +570,7 @@ export function check(source: string, options?: Options): Promise<boolean>;
|
|
|
572
570
|
* `formatWithCursor` both formats the code, and translates a cursor position from unformatted code to formatted code.
|
|
573
571
|
* This is useful for editor integrations, to prevent the cursor from moving when code is formatted.
|
|
574
572
|
*
|
|
575
|
-
* The `cursorOffset` option should be provided, to specify where the cursor is.
|
|
573
|
+
* The `cursorOffset` option should be provided, to specify where the cursor is.
|
|
576
574
|
*/
|
|
577
575
|
export function formatWithCursor(
|
|
578
576
|
source: string,
|