ast-module-types
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -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" | ||
} | ||
} |
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
11813
231