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
629
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.72.7 to 1.73.0

lib/tokenize/typescript/ts-declare-function.js

4

lib/tokenize/is.js

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

module.exports.isIf = (path) => isIfStatement(path.find(isIfOrStatement));
module.exports.isIf = (path) => isIfStatement(path.find(
isIfOrStatement,
));

@@ -58,0 +60,0 @@ module.exports.isForOf = (path) => {

@@ -29,4 +29,10 @@ 'use strict';

},
Identifier(path, {write, print}) {
write(path.node.name);
Identifier(path, {write, print, maybe}) {
const {
name,
optional,
} = path.node;
write(name);
maybe.write(optional, '?');
print('__typeAnnotation');

@@ -33,0 +39,0 @@ },

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

const {TSTypeParameter} = require('./ts-type-parameter');
const {TSDeclareFunction} = require('./ts-declare-function');

@@ -17,2 +18,3 @@ module.exports = {

TSConditionalType,
TSDeclareFunction,
TSNeverKeyword(path, {write}) {

@@ -19,0 +21,0 @@ write('never');

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