Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putout/compare

Package Overview
Dependencies
Maintainers
0
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/compare - npm Package Compare versions

Comparing version 15.0.1 to 15.0.2

2

lib/comparators.js

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

function linkNodes(node, template, {add, templateStore}) {
if (node && isLinkedNode(template) || isLinkedArgs(template) || isLinkedId(node, template) || isLinkedBool(node, template))
if (node && isLinkedNode(template, node) || isLinkedArgs(template) || isLinkedId(node, template) || isLinkedBool(node, template))
return link({

@@ -121,0 +121,0 @@ add,

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

isRegExpLiteral,
isTSMappedType,
isJSXText,

@@ -343,6 +342,3 @@ isJSXIdentifier,

if (isTSTypeReference(a) && LINKED_NODE.test(a.typeName.name))
return true;
return isTSMappedType(a) && LINKED_NODE.test(a.key.name);
return isTSTypeReference(a) && LINKED_NODE.test(a.typeName.name);
};

@@ -349,0 +345,0 @@

@@ -27,2 +27,4 @@ 'use strict';

return node.typeName.name;
// if (isTSMappedType(node))
// return node.key.name;
};

@@ -41,2 +43,5 @@

if (isIdentifier(templateStore[name]) && isTSTypeReference(nodeValue))
return true;
add(templateStore[name], nodeValue);

@@ -43,0 +48,0 @@

{
"name": "@putout/compare",
"version": "15.0.1",
"version": "15.0.2",
"type": "commonjs",

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

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