ast-module-types
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -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 |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11314
6
215