prettier 2.2.0 → 2.2.1

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/index.js CHANGED
@@ -21,7 +21,7 @@ var stream_1__default = /*#__PURE__*/_interopDefaultLegacy(stream_1);
21
21
  var events_1__default = /*#__PURE__*/_interopDefaultLegacy(events_1);
22
22
 
23
23
  var name = "prettier";
24
- var version = "2.2.0";
24
+ var version = "2.2.1";
25
25
  var description = "Prettier is an opinionated code formatter";
26
26
  var bin = "./bin/prettier.js";
27
27
  var repository = "prettier/prettier";
@@ -140,7 +140,7 @@ var devDependencies = {
140
140
  "jest-watch-typeahead": "0.6.1",
141
141
  "npm-run-all": "4.1.5",
142
142
  "path-browserify": "1.0.1",
143
- prettier: "2.1.2",
143
+ prettier: "2.2.0",
144
144
  rimraf: "3.0.2",
145
145
  rollup: "2.33.3",
146
146
  "rollup-plugin-node-globals": "1.4.0",
@@ -44014,8 +44014,8 @@ function printSuperClass(path, options, print) {
44014
44014
  const printed = path.call(print, "superClass");
44015
44015
  const parent = path.getParentNode();
44016
44016
 
44017
- if (parent && parent.type === "AssignmentExpression") {
44018
- return concat$m([ifBreak$9("("), indent$h(concat$m([softline$d, printed])), softline$d, ifBreak$9(")")]);
44017
+ if (parent.type === "AssignmentExpression") {
44018
+ return group$d(ifBreak$9(concat$m(["(", indent$h(concat$m([softline$d, printed])), softline$d, ")"]), printed));
44019
44019
  }
44020
44020
 
44021
44021
  return printed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin-prettier.js",
6
6
  "repository": "prettier/prettier",