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

@putout/operate

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/operate - npm Package Compare versions

Comparing version 6.3.0 to 6.4.0

10

lib/operate.js

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

isIdentifier,
isTemplateElement,
isRegExpLiteral,
} = require('@babel/types');

@@ -142,7 +144,13 @@

if (isRegExpLiteral(node))
return node.pattern;
if (isLiteral(node))
return node.value;
throw Error('"operator.extract(node)" understands only Literals and Identifiers 🤷');
if (isTemplateElement(node))
return node.value.raw;
throw Error(`"operator.extract(node)" understands only Literals, Identifiers, TemplateElement and RegExpLiteral 🤷, found: ${node.type}`);
};

2

package.json
{
"name": "@putout/operate",
"version": "6.3.0",
"version": "6.4.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "operate on ast",

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