prettier 1.18.1 → 1.18.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/bin-prettier.js +5 -5
- package/index.js +5 -5
- package/package.json +1 -1
- package/standalone.js +5 -5
package/bin-prettier.js
CHANGED
|
@@ -14,7 +14,7 @@ var thirdParty__default = thirdParty['default'];
|
|
|
14
14
|
var readline = _interopDefault(require('readline'));
|
|
15
15
|
|
|
16
16
|
var name = "prettier";
|
|
17
|
-
var version$1 = "1.18.
|
|
17
|
+
var version$1 = "1.18.2";
|
|
18
18
|
var description = "Prettier is an opinionated code formatter";
|
|
19
19
|
var bin = {
|
|
20
20
|
"prettier": "./bin/prettier.js"
|
|
@@ -22313,9 +22313,9 @@ function isStyledComponents(path$$1) {
|
|
|
22313
22313
|
|
|
22314
22314
|
case "CallExpression":
|
|
22315
22315
|
return (// styled(Component)``
|
|
22316
|
-
isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.
|
|
22317
|
-
isStyledIdentifier(tag.callee.object.object) || // Component.extend.
|
|
22318
|
-
isStyledExtend(tag.callee.object)) || // styled(Component).
|
|
22316
|
+
isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.attrs({})``
|
|
22317
|
+
isStyledIdentifier(tag.callee.object.object) || // Component.extend.attrs({})``
|
|
22318
|
+
isStyledExtend(tag.callee.object)) || // styled(Component).attrs({})``
|
|
22319
22319
|
tag.callee.object.type === "CallExpression" && isStyledIdentifier(tag.callee.object.callee))
|
|
22320
22320
|
);
|
|
22321
22321
|
|
|
@@ -25443,7 +25443,7 @@ function printPathNoParens(path$$1, options, print, args) {
|
|
|
25443
25443
|
case "TupleTypeAnnotation":
|
|
25444
25444
|
{
|
|
25445
25445
|
var typesField = n.type === "TSTupleType" ? "elementTypes" : "types";
|
|
25446
|
-
return group$1(concat$4(["[", indent$2(concat$4([softline$1, printArrayItems(path$$1, options, typesField, print)])), ifBreak$1(shouldPrintComma(options) ? "," : ""), comments.printDanglingComments(path$$1, options,
|
|
25446
|
+
return group$1(concat$4(["[", indent$2(concat$4([softline$1, printArrayItems(path$$1, options, typesField, print)])), ifBreak$1(shouldPrintComma(options, "all") ? "," : ""), comments.printDanglingComments(path$$1, options,
|
|
25447
25447
|
/* sameIndent */
|
|
25448
25448
|
true), softline$1, "]"]));
|
|
25449
25449
|
}
|
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var thirdParty = require('./third-party');
|
|
|
12
12
|
var thirdParty__default = thirdParty['default'];
|
|
13
13
|
|
|
14
14
|
var name = "prettier";
|
|
15
|
-
var version$1 = "1.18.
|
|
15
|
+
var version$1 = "1.18.2";
|
|
16
16
|
var description = "Prettier is an opinionated code formatter";
|
|
17
17
|
var bin = {
|
|
18
18
|
"prettier": "./bin/prettier.js"
|
|
@@ -22311,9 +22311,9 @@ function isStyledComponents(path$$1) {
|
|
|
22311
22311
|
|
|
22312
22312
|
case "CallExpression":
|
|
22313
22313
|
return (// styled(Component)``
|
|
22314
|
-
isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.
|
|
22315
|
-
isStyledIdentifier(tag.callee.object.object) || // Component.extend.
|
|
22316
|
-
isStyledExtend(tag.callee.object)) || // styled(Component).
|
|
22314
|
+
isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.attrs({})``
|
|
22315
|
+
isStyledIdentifier(tag.callee.object.object) || // Component.extend.attrs({})``
|
|
22316
|
+
isStyledExtend(tag.callee.object)) || // styled(Component).attrs({})``
|
|
22317
22317
|
tag.callee.object.type === "CallExpression" && isStyledIdentifier(tag.callee.object.callee))
|
|
22318
22318
|
);
|
|
22319
22319
|
|
|
@@ -25441,7 +25441,7 @@ function printPathNoParens(path$$1, options, print, args) {
|
|
|
25441
25441
|
case "TupleTypeAnnotation":
|
|
25442
25442
|
{
|
|
25443
25443
|
var typesField = n.type === "TSTupleType" ? "elementTypes" : "types";
|
|
25444
|
-
return group$1(concat$4(["[", indent$2(concat$4([softline$1, printArrayItems(path$$1, options, typesField, print)])), ifBreak$1(shouldPrintComma(options) ? "," : ""), comments.printDanglingComments(path$$1, options,
|
|
25444
|
+
return group$1(concat$4(["[", indent$2(concat$4([softline$1, printArrayItems(path$$1, options, typesField, print)])), ifBreak$1(shouldPrintComma(options, "all") ? "," : ""), comments.printDanglingComments(path$$1, options,
|
|
25445
25445
|
/* sameIndent */
|
|
25446
25446
|
true), softline$1, "]"]));
|
|
25447
25447
|
}
|
package/package.json
CHANGED
package/standalone.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
7
|
var name = "prettier";
|
|
8
|
-
var version$1 = "1.18.
|
|
8
|
+
var version$1 = "1.18.2";
|
|
9
9
|
var description = "Prettier is an opinionated code formatter";
|
|
10
10
|
var bin = {
|
|
11
11
|
"prettier": "./bin/prettier.js"
|
|
@@ -22378,9 +22378,9 @@ function isStyledComponents(path) {
|
|
|
22378
22378
|
|
|
22379
22379
|
case "CallExpression":
|
|
22380
22380
|
return (// styled(Component)``
|
|
22381
|
-
isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.
|
|
22382
|
-
isStyledIdentifier(tag.callee.object.object) || // Component.extend.
|
|
22383
|
-
isStyledExtend(tag.callee.object)) || // styled(Component).
|
|
22381
|
+
isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && ( // styled.foo.attrs({})``
|
|
22382
|
+
isStyledIdentifier(tag.callee.object.object) || // Component.extend.attrs({})``
|
|
22383
|
+
isStyledExtend(tag.callee.object)) || // styled(Component).attrs({})``
|
|
22384
22384
|
tag.callee.object.type === "CallExpression" && isStyledIdentifier(tag.callee.object.callee))
|
|
22385
22385
|
);
|
|
22386
22386
|
|
|
@@ -25315,7 +25315,7 @@ function printPathNoParens(path, options, print, args) {
|
|
|
25315
25315
|
case "TupleTypeAnnotation":
|
|
25316
25316
|
{
|
|
25317
25317
|
var typesField = n.type === "TSTupleType" ? "elementTypes" : "types";
|
|
25318
|
-
return group$10(concat$11(["[", indent$6(concat$11([softline$5, printArrayItems(path, options, typesField, print)])), ifBreak$6(shouldPrintComma$1(options) ? "," : ""), comments.printDanglingComments(path, options,
|
|
25318
|
+
return group$10(concat$11(["[", indent$6(concat$11([softline$5, printArrayItems(path, options, typesField, print)])), ifBreak$6(shouldPrintComma$1(options, "all") ? "," : ""), comments.printDanglingComments(path, options,
|
|
25319
25319
|
/* sameIndent */
|
|
25320
25320
|
true), softline$5, "]"]));
|
|
25321
25321
|
}
|