prettier-plugin-embed 0.4.11 → 0.4.12
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/dist/index.js +498 -484
- package/dist/utils.d.ts +1 -1
- package/package.json +10 -12
package/dist/utils.d.ts
CHANGED
|
@@ -131,6 +131,6 @@ export declare function parseTagFromTemplateLiteralAstPath({ parent, }: AstPath<
|
|
|
131
131
|
}): string | TemplateLiteral | import("estree").ArrayExpression | import("estree").ArrowFunctionExpression | import("estree").AssignmentExpression | import("estree").AwaitExpression | import("estree").BinaryExpression | import("estree").CallExpression | import("estree").ChainExpression | import("estree").ClassExpression | import("estree").ConditionalExpression | import("estree").FunctionExpression | import("estree").ImportExpression | import("estree").Literal | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").MetaProperty | import("estree").ObjectExpression | import("estree").SequenceExpression | import("estree").TaggedTemplateExpression | import("estree").ThisExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").YieldExpression | undefined;
|
|
132
132
|
export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (embeddedLanguage: EmbeddedLanguage) => Generator<import("type-fest").LiteralUnion<"sql" | "css" | "js" | "jsx" | "es" | "es6" | "mjs" | "cjs" | "pac" | "javascript" | "glsl" | "shader" | "graphql" | "gql" | "html" | "xhtml" | "ini" | "cfg" | "pro" | "java" | "json" | "jsonl" | "jsonata" | "latex" | "tex" | "aux" | "cls" | "bbl" | "bib" | "toc" | "sty" | "md" | "markdown" | "nginx" | "pegjs" | "peggy" | "peg" | "ts" | "tsx" | "cts" | "mts" | "typescript" | "php" | "php5" | "prisma" | "properties" | "pug" | "jade" | "ruby" | "sh" | "toml" | "xml" | "opml" | "rss" | "svg" | "yaml" | "yml", string>, void, undefined>;
|
|
133
133
|
export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (embeddedLanguage: EmbeddedLanguage) => Generator<import("type-fest").LiteralUnion<"sql" | "css" | "js" | "jsx" | "es" | "es6" | "mjs" | "cjs" | "pac" | "javascript" | "glsl" | "shader" | "graphql" | "gql" | "html" | "xhtml" | "ini" | "cfg" | "pro" | "java" | "json" | "jsonl" | "jsonata" | "latex" | "tex" | "aux" | "cls" | "bbl" | "bib" | "toc" | "sty" | "md" | "markdown" | "nginx" | "pegjs" | "peggy" | "peg" | "ts" | "tsx" | "cts" | "mts" | "typescript" | "php" | "php5" | "prisma" | "properties" | "pug" | "jade" | "ruby" | "sh" | "toml" | "xml" | "opml" | "rss" | "svg" | "yaml" | "yml", string>, void, undefined>;
|
|
134
|
-
export declare function createEmbeddedDoc(embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
|
|
134
|
+
export declare function createEmbeddedDoc(node: TemplateLiteral, embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
|
|
135
135
|
export declare function assumeAs<T>(_: unknown): asserts _ is T;
|
|
136
136
|
export declare function compareObjects<T1 extends Record<string | number | symbol, unknown>, T2 extends Record<string | number | symbol, unknown>>(value1: T1, value2: T2, ignoreSet?: Set<keyof T1 | keyof T2>): boolean;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "prettier-plugin-embed",
|
|
3
3
|
"description": "A configurable Prettier plugin to format embedded languages in JS/TS files.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.12",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"./dist"
|
|
@@ -89,32 +89,30 @@
|
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@biomejs/biome": "1.5.3",
|
|
91
91
|
"@changesets/cli": "^2.27.1",
|
|
92
|
-
"@commitlint/cli": "^18.
|
|
93
|
-
"@commitlint/config-conventional": "^18.
|
|
92
|
+
"@commitlint/cli": "^18.6.0",
|
|
93
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
94
94
|
"@prettier/plugin-php": "^0.22.1",
|
|
95
95
|
"@prettier/plugin-pug": "^3.0.0",
|
|
96
96
|
"@prettier/plugin-ruby": "^4.0.4",
|
|
97
97
|
"@prettier/plugin-xml": "^3.2.2",
|
|
98
98
|
"@stedi/prettier-plugin-jsonata": "^2.1.1",
|
|
99
|
-
"@types/node": "^20.11.
|
|
100
|
-
"@vitest/coverage-istanbul": "^1.2.
|
|
101
|
-
"@vitest/ui": "^1.2.
|
|
99
|
+
"@types/node": "^20.11.8",
|
|
100
|
+
"@vitest/coverage-istanbul": "^1.2.2",
|
|
101
|
+
"@vitest/ui": "^1.2.2",
|
|
102
102
|
"@xml-tools/parser": "^1.0.11",
|
|
103
103
|
"chevrotain": "7.1.1",
|
|
104
104
|
"concurrently": "^8.2.2",
|
|
105
105
|
"copy-files-from-to": "^3.9.1",
|
|
106
|
-
"esbuild": "^0.
|
|
106
|
+
"esbuild": "^0.20.0",
|
|
107
107
|
"fast-glob": "^3.3.2",
|
|
108
108
|
"lint-staged": "^15.2.0",
|
|
109
|
-
"npm-check-updates": "^16.14.
|
|
109
|
+
"npm-check-updates": "^16.14.14",
|
|
110
110
|
"prettier": "^3.2.4",
|
|
111
111
|
"prettier-plugin-glsl": "^0.1.3",
|
|
112
112
|
"prettier-plugin-ini": "^1.1.0",
|
|
113
113
|
"prettier-plugin-java": "^2.5.0",
|
|
114
|
-
"prettier-plugin-jsdoc": "^1.3.0",
|
|
115
114
|
"prettier-plugin-latex": "^2.0.1",
|
|
116
115
|
"prettier-plugin-nginx": "^1.0.3",
|
|
117
|
-
"prettier-plugin-organize-imports": "^3.2.4",
|
|
118
116
|
"prettier-plugin-pegjs": "^2.0.2",
|
|
119
117
|
"prettier-plugin-prisma": "^5.0.0",
|
|
120
118
|
"prettier-plugin-properties": "^0.3.0",
|
|
@@ -126,7 +124,7 @@
|
|
|
126
124
|
"tsx": "^4.7.0",
|
|
127
125
|
"typescript": "^5.3.3",
|
|
128
126
|
"vite": "^5.0.12",
|
|
129
|
-
"vitest": "^1.2.
|
|
127
|
+
"vitest": "^1.2.2"
|
|
130
128
|
},
|
|
131
129
|
"dependencies": {
|
|
132
130
|
"@types/estree": "^1.0.5",
|
|
@@ -134,6 +132,6 @@
|
|
|
134
132
|
"micro-memoize": "^4.1.2",
|
|
135
133
|
"package-up": "^5.0.0",
|
|
136
134
|
"tiny-jsonc": "^1.0.1",
|
|
137
|
-
"type-fest": "^4.
|
|
135
|
+
"type-fest": "^4.10.1"
|
|
138
136
|
}
|
|
139
137
|
}
|