New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@putout/printer

Package Overview
Dependencies
Maintainers
1
Versions
623
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.63.1 to 1.64.0

4

lib/tokenize/maybe/index.js

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

const maybeProgram = (ast) => isProgram(ast) ? ast : Program([ExpressionStatement(ast)]);
const maybeProgram = (ast) => isProgram(ast) ? ast : Program([
ExpressionStatement(ast),
]);

@@ -29,0 +31,0 @@ module.exports.maybeFile = (ast) => isFile(ast) ? ast : File(maybeProgram(ast));

@@ -40,2 +40,8 @@ 'use strict';

const constraint = path.get('constraint');
if (path.node.in)
write('in ');
else if (path.node.out)
write('out ');
write(path.node.name);

@@ -42,0 +48,0 @@

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

print('__id');
print('__typeParameters');

@@ -13,0 +14,0 @@ print.space();

{
"name": "@putout/printer",
"version": "1.63.1",
"version": "1.64.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