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

ast-module-types

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-module-types - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

3

index.js

@@ -106,4 +106,3 @@ // Whether or not the node represents an AMD define() call

// TODO: Should we also make sure the second element is an array?
return args && args[0].type === 'Literal';
return args && (args[0].type === 'Literal' || args[0].type === 'StringLiteral');
};

@@ -110,0 +109,0 @@

{
"name": "ast-module-types",
"version": "2.3.0",
"version": "2.3.1",
"description": "Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.",

@@ -29,4 +29,4 @@ "main": "index.js",

"mocha": "~2.0.1",
"node-source-walk": "~1.2.0"
"node-source-walk": "^3.0.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