is-reference
Advanced tools
Comparing version 1.1.3 to 1.1.4
# is-reference changelog | ||
## 1.1.4 | ||
* Disregarded imported specifiers if they differ from local specifiers | ||
## 1.1.3 | ||
@@ -4,0 +8,0 @@ |
@@ -15,4 +15,6 @@ function isReference(node, parent) { | ||
case 'Property': return parent.computed || node === parent.value; | ||
// disregard the `bar` in `export { foo as bar }` | ||
case 'ExportSpecifier': return node === parent.local; | ||
// disregard the `bar` in `export { foo as bar }` or | ||
// the foo in `import { foo as bar }` | ||
case 'ExportSpecifier': | ||
case 'ImportSpecifier': return node === parent.local; | ||
// disregard the `foo` in `foo: while (...) { ... break foo; ... continue foo;}` | ||
@@ -19,0 +21,0 @@ case 'LabeledStatement': |
@@ -21,4 +21,6 @@ (function (global, factory) { | ||
case 'Property': return parent.computed || node === parent.value; | ||
// disregard the `bar` in `export { foo as bar }` | ||
case 'ExportSpecifier': return node === parent.local; | ||
// disregard the `bar` in `export { foo as bar }` or | ||
// the foo in `import { foo as bar }` | ||
case 'ExportSpecifier': | ||
case 'ImportSpecifier': return node === parent.local; | ||
// disregard the `foo` in `foo: while (...) { ... break foo; ... continue foo;}` | ||
@@ -25,0 +27,0 @@ case 'LabeledStatement': |
{ | ||
"name": "is-reference", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Determine whether an AST node is a reference", | ||
@@ -5,0 +5,0 @@ "main": "dist/is-reference.js", |
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
5756
64