@putout/printer
Advanced tools
Comparing version 1.32.0 to 1.33.0
@@ -9,2 +9,3 @@ 'use strict'; | ||
isArrayExpression, | ||
isIdentifier, | ||
} = require('@babel/types'); | ||
@@ -21,2 +22,3 @@ | ||
const isStringAndString = ([a, b]) => isStringLiteral(a) && isStringLiteral(b); | ||
const isIdentifierAndIdentifier = ([a, b]) => isIdentifier(a) && isIdentifier(b); | ||
const isArrayParent = (path) => path.parentPath.isArrayExpression(); | ||
@@ -47,3 +49,6 @@ | ||
return isStringAndIdentifier(elements); | ||
if (isStringAndIdentifier(elements)) | ||
return true; | ||
return isIdentifierAndIdentifier(elements); | ||
}, | ||
@@ -103,3 +108,6 @@ before(path, {print}) { | ||
return isStringAndIdentifier(elements); | ||
if (isStringAndIdentifier(elements)) | ||
return true; | ||
return isIdentifierAndIdentifier(elements); | ||
}, | ||
@@ -106,0 +114,0 @@ after(path, {print, indent}) { |
{ | ||
"name": "@putout/printer", | ||
"version": "1.32.0", | ||
"version": "1.33.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72536
1998