Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-reference

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-reference - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

4

CHANGELOG.md
# is-reference changelog
## 1.1.4
* Disregarded imported specifiers if they differ from local specifiers
## 1.1.3

@@ -4,0 +8,0 @@

6

dist/is-reference.es.js

@@ -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",

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