prettier-plugin-embed 0.4.12 → 0.4.14
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 +19 -1
- package/dist/embedded/utils.d.ts +1 -2
- package/dist/index.js +611 -643
- package/dist/utils.d.ts +1 -0
- package/package.json +21 -18
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Prettier Plugin Embed
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/prettier-plugin-embed/v/latest) [](https://www.npmjs.com/package/prettier-plugin-embed/v/latest) [](https://www.npmjs.com/package/prettier-plugin-embed/v/latest)
|
|
7
|
+
[](https://www.npmjs.com/package/prettier-plugin-embed/v/latest) [](https://www.npmjs.com/package/prettier-plugin-embed/v/latest) [](https://www.npmjs.com/package/prettier-plugin-embed/v/latest) [](#contributors)
|
|
8
8
|
|
|
9
9
|
[](https://github.com/Sec-ant/prettier-plugin-embed) [](https://bundlephobia.com/package/prettier-plugin-embed@latest) [](https://www.jsdelivr.com/package/npm/prettier-plugin-embed)
|
|
10
10
|
|
|
@@ -1102,6 +1102,24 @@ There're several ways to use the typed options provided by this plugin. Taking t
|
|
|
1102
1102
|
|
|
1103
1103
|
Bug fixes, new language support and tests are welcome. Please have a look at the project structure before getting started. Feel free to leave questions or suggestions.
|
|
1104
1104
|
|
|
1105
|
+
## Contributors
|
|
1106
|
+
|
|
1107
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
1108
|
+
<!-- prettier-ignore-start -->
|
|
1109
|
+
<!-- markdownlint-disable -->
|
|
1110
|
+
<table>
|
|
1111
|
+
<tbody>
|
|
1112
|
+
<tr>
|
|
1113
|
+
<td align="center" valign="top" width="14.28%"><a href="https://upleveled.io"><img src="https://avatars.githubusercontent.com/u/1935696?v=4?s=100" width="100px;" alt="Karl Horky"/><br /><sub><b>Karl Horky</b></sub></a><br /><a href="#code-karlhorky" title="Code">💻</a> <a href="#doc-karlhorky" title="Documentation">📖</a></td>
|
|
1114
|
+
</tr>
|
|
1115
|
+
</tbody>
|
|
1116
|
+
</table>
|
|
1117
|
+
|
|
1118
|
+
<!-- markdownlint-restore -->
|
|
1119
|
+
<!-- prettier-ignore-end -->
|
|
1120
|
+
|
|
1121
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
1122
|
+
|
|
1105
1123
|
## License
|
|
1106
1124
|
|
|
1107
1125
|
MIT
|
package/dist/embedded/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Comment, Expression, TemplateLiteral } from "estree";
|
|
2
|
-
import type { AstPath, Doc
|
|
2
|
+
import type { AstPath, Doc } from "prettier";
|
|
3
3
|
import { builders } from "prettier/doc";
|
|
4
4
|
import type { LiteralUnion, OmitIndexSignature, UnionToIntersection } from "type-fest";
|
|
5
5
|
import type { InternalPrintFun } from "../types.js";
|
|
@@ -8,7 +8,6 @@ export declare function printTemplateExpression(path: AstPath<Expression & {
|
|
|
8
8
|
}>, print: InternalPrintFun): builders.Doc[];
|
|
9
9
|
export declare function printTemplateExpressions(path: AstPath<TemplateLiteral>, print: InternalPrintFun): builders.Doc[][];
|
|
10
10
|
export declare function simpleRehydrateDoc(doc: Doc, placeholderRegex: RegExp, expressionDocs: Doc[], replaceLiteralNewlinesToHardlines?: boolean): builders.Doc[] | builders.DocCommand;
|
|
11
|
-
export declare function throwIfPluginIsNotFound(pluginName: string, options: Options, commentOrTag: string): void;
|
|
12
11
|
export declare function insertLanguage(languages: string[], language: string, firstLanguage: string): void;
|
|
13
12
|
export declare const randomUUID: () => string;
|
|
14
13
|
export declare function preparePlaceholder(leading?: string, trailing?: string): {
|