You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
835
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
18.8.5
to
18.8.6
+5
-6
lib/tokenize/expre...s/object-pattern/should-add-new-line.js

@@ -35,9 +35,6 @@ import {types} from '@putout/babel';

const cutOptions = (fn) => (a) => fn(a);
const isFunctionLike = cutOptions(isFunction);
const isFunctionParam = callWithParent(createTypeChecker([
['+', isFunctionLike],
['+', isFunction],
['-: -> !AssignmentPattern'],
['+: parentPath', isFunctionLike],
['+: parentPath', isFunction],
]));

@@ -72,3 +69,5 @@

const properties = path.node.properties
const properties = path
.node
.properties
.filter(isObjectProperty)

@@ -75,0 +74,0 @@ .map(getValue)

@@ -0,1 +1,3 @@

import {types} from '@putout/babel';
const isFn = (a) => typeof a === 'function';

@@ -21,3 +23,3 @@ const isString = (a) => typeof a === 'string';

const result = fn(a, options);
const result = maybeCutOptions(fn, a, options);

@@ -29,1 +31,10 @@ if (not)

};
function maybeCutOptions(fn, a, options) {
const {name} = fn;
if (types[name] === fn)
return fn(a);
return fn(a, options);
}
{
"name": "@putout/printer",
"version": "18.8.5",
"version": "18.8.6",
"type": "module",

@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

Sorry, the diff of this file is not supported yet