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.4.0 to 2.5.0

1

index.js

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

switch(node.type) {
case 'Import':
case 'ImportDeclaration':

@@ -185,0 +186,0 @@ case 'ImportDefaultSpecifier':

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -108,2 +108,3 @@ var types = require('../');

assert(check('import foo from "mod.js";', types.isES6Import, true));
assert(check('import("foo");', types.isES6Import, true));
});

@@ -110,0 +111,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