Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
753
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
15.22.0
to
15.23.0
+32
lib/tokenize/statements/with-statement/with-statement.js
'use strict';
const {isNext} = require('#is');
const {markAfter} = require('../../mark');
module.exports.WithStatement = {
print(path, {print, indent}) {
indent();
print('with');
print.space();
print('(');
print('__object');
print(')');
if (path.node.body.body) {
print.space();
print('__body');
} else {
indent.inc();
print.newline();
print('__body');
indent.dec();
}
},
afterIf(path) {
return isNext(path);
},
after(path, {print}) {
print.linebreak();
markAfter(path);
},
};
+2
-0

@@ -26,2 +26,3 @@ 'use strict';

const {EmptyStatement} = require('./empty-statement/empty-statement');
const {WithStatement} = require('./with-statement/with-statement');

@@ -63,2 +64,3 @@ const {

WhileStatement,
WithStatement,
};
+1
-1
{
"name": "@putout/printer",
"version": "15.22.0",
"version": "15.23.0",
"type": "commonjs",

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

Sorry, the diff of this file is too big to display