prettier-plugin-java 2.9.0 → 2.9.2

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.cjs CHANGED
@@ -1760,7 +1760,14 @@ var types_values_and_variables_default = {
1760
1760
  return join(" ", path.map(print, "children"));
1761
1761
  },
1762
1762
  dimensions(path, print) {
1763
- return path.map((child) => child.node.isNamed ? [print(child), " "] : child.node.value, "children");
1763
+ return path.map((child) => {
1764
+ if (child.node.isNamed) return [
1765
+ ...child.isFirst ? [" "] : [],
1766
+ print(child),
1767
+ " "
1768
+ ];
1769
+ return child.node.value;
1770
+ }, "children");
1764
1771
  },
1765
1772
  type_parameter(path, print) {
1766
1773
  return join(" ", path.map(print, "children"));
package/dist/index.mjs CHANGED
@@ -1760,7 +1760,14 @@ var types_values_and_variables_default = {
1760
1760
  return join(" ", path.map(print, "children"));
1761
1761
  },
1762
1762
  dimensions(path, print) {
1763
- return path.map((child) => child.node.isNamed ? [print(child), " "] : child.node.value, "children");
1763
+ return path.map((child) => {
1764
+ if (child.node.isNamed) return [
1765
+ ...child.isFirst ? [" "] : [],
1766
+ print(child),
1767
+ " "
1768
+ ];
1769
+ return child.node.value;
1770
+ }, "children");
1764
1771
  },
1765
1772
  type_parameter(path, print) {
1766
1773
  return join(" ", path.map(print, "children"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier-plugin-java",
3
- "version": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "description": "Prettier Java Plugin",
5
5
  "homepage": "https://jhipster.github.io/prettier-java/",
6
6
  "repository": "https://github.com/jhipster/prettier-java",
@@ -29,7 +29,7 @@
29
29
  "clone-samples": "node scripts/clone-samples.js",
30
30
  "format:fix": "prettier --write \"**/*.@(js|json|ts)\"",
31
31
  "format:validate": "prettier --list-different \"**/*.@(js|json|ts)\"",
32
- "postinstall": "node scripts/generate-node-types.ts && prettier --write src/node-types.ts",
32
+ "generate-node-types": "node scripts/generate-node-types.ts && prettier --write src/node-types.ts",
33
33
  "lerna:publish": "lerna publish from-git --yes",
34
34
  "lerna:version": "lerna version --exact --no-private",
35
35
  "lint": "eslint src test",
@@ -79,5 +79,5 @@
79
79
  "prettier": "^3.0.0"
80
80
  },
81
81
  "packageManager": "yarn@1.22.22",
82
- "gitHead": "6e94f5ee92ff695918ce05f91ba12ef45d076afa"
82
+ "gitHead": "efac7313d4bfb21cc3d4b5323b3f30587fb2354c"
83
83
  }