Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
603
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/printer - npm Package Compare versions

Comparing version 1.32.0 to 1.33.0

12

lib/tokenize/expressions/array-expression.js

@@ -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}) {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc