Socket
Socket
Sign inDemoInstall

cjs-es

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjs-es - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

11

lib/analyzer.js

@@ -121,2 +121,11 @@ const {walk} = require("estree-walker");

function analyzeTag(node) {
if (
node.tag.type === "Identifier" &&
(!context.scope || context.scope.isRootVar(node.tag.name))
) {
context.callableIds.add(node.tag.name);
}
}
function analyze() {

@@ -161,2 +170,4 @@ walk(context.ast, {

analyzeCallable(node);
} else if (node.type === "TaggedTemplateExpression") {
analyzeTag(node);
}

@@ -163,0 +174,0 @@ if (!context.nested && !context.topLevel.isTop()) {

2

package.json
{
"name": "cjs-es",
"version": "0.4.1",
"version": "0.4.2",
"description": "Transform CommonJS module into ES module.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -232,2 +232,6 @@ cjs-es

* 0.4.2 (Apr 30, 2018)
- Fix: template tag is callable.
* 0.4.1 (Apr 30, 2018)

@@ -234,0 +238,0 @@

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