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/bin-prettier.js +2 -2
- package/doc.js +2 -2
- package/esm/parser-babel.mjs +1 -1
- package/esm/parser-espree.mjs +1 -1
- package/esm/parser-flow.mjs +1 -1
- package/esm/parser-html.mjs +1 -1
- package/esm/parser-markdown.mjs +1 -1
- package/esm/parser-meriyah.mjs +1 -1
- package/esm/parser-postcss.mjs +1 -1
- package/esm/parser-typescript.mjs +1 -1
- package/esm/standalone.mjs +2 -2
- package/index.js +4 -4
- package/package.json +1 -1
- package/parser-babel.js +1 -1
- package/parser-espree.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-html.js +1 -1
- package/parser-markdown.js +1 -1
- package/parser-meriyah.js +1 -1
- package/parser-postcss.js +1 -1
- package/parser-typescript.js +1 -1
- package/standalone.js +2 -2
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.
|
|
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.
|
|
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
|
|
44018
|
-
return
|
|
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;
|