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.2.1 to 2.2.2

.npmignore

1

index.js

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

node.arguments &&
node.arguments[0] && node.arguments[0].type &&
node.arguments[0].type !== 'Literal' &&

@@ -44,0 +45,0 @@ // For some dynamic node requires

2

package.json
{
"name": "ast-module-types",
"version": "2.2.1",
"version": "2.2.2",
"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",

@@ -44,2 +44,8 @@ var types = require('../');

});
it('does not fail on es6', function() {
assert.doesNotThrow(function() {
check('import require from "mylib"; \nrequire();', types.isTopLevelRequire, true);
});
});
});

@@ -46,0 +52,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