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
600
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.19.0 to 1.20.0

4

lib/tokenize/tokenize.js

@@ -237,4 +237,5 @@ 'use strict';

const computePath = (path, maybeLine) => {
if (isString(maybeLine) && maybeLine.startsWith(GET))
if (isString(maybeLine) && maybeLine.startsWith(GET)) {
return get(path, maybeLine);
}

@@ -246,1 +247,2 @@ if (isObject(maybeLine))

};

@@ -38,3 +38,3 @@ 'use strict';

TSTypeAnnotation(path, {print}) {
if (!path.parentPath.isTSFunctionType()) {
if (path.parentPath.isIdentifier()) {
print(':');

@@ -59,2 +59,25 @@ print.space();

},
TSTypeLiteral(path, {indent, traverse, write}) {
write('{');
write.newline();
indent.inc();
for (const member of path.get('members')) {
indent();
traverse(member);
write(';');
}
write.newline();
indent.dec();
write('}');
},
TSPropertySignature(path, {print, maybe}) {
const {optional} = path.node;
print('__key');
maybe.print(optional, '?');
print(':');
print.space();
print('__typeAnnotation');
},
};
{
"name": "@putout/printer",
"version": "1.19.0",
"version": "1.20.0",
"type": "commonjs",

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

"putout": "*",
"putout-plugin-apply-computed-print": "./rules/putout-plugin-apply-computed-print",
"putout-plugin-printer": "./rules",
"supertape": "^8.0.0",

@@ -62,0 +62,0 @@ "try-catch": "^3.0.0"

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