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

@putout/printer

Package Overview
Dependencies
Maintainers
0
Versions
593
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 9.13.0 to 9.14.0

3

lib/tokenize/expressions/object-expression/object-expression.js

@@ -16,3 +16,4 @@ 'use strict';

const {likeChain} = require('../member-expression/member-expressions');
const {isStringLiteral} = require('@putout/babel').types;
const {types} = require('@putout/babel');
const {isStringLiteral} = types;

@@ -19,0 +20,0 @@ const isBodyOfArrow = (path) => path.parentPath.node.body === path.node;

'use strict';
const {maybeParens} = require('../../expressions/function/parens');
const {isObjectExpression} = require('@putout/babel').types;
const {
isVariableDeclarator,
isObjectExpression,
} = require('@putout/babel').types;
module.exports.TSAsExpression = maybeParens((path, {print, maybe}) => {
const {expression} = path.node;
const is = isObjectExpression(expression);
const is = isParens(path);

@@ -17,1 +19,10 @@ maybe.print(is, '(');

});
function isParens(path) {
const {expression} = path.node;
if (isVariableDeclarator(path.parentPath))
return false;
return isObjectExpression(expression);
}
{
"name": "@putout/printer",
"version": "9.13.0",
"version": "9.14.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