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 3.0.0 to 3.0.1

89

package.json
{
"name": "is-reference",
"version": "3.0.0",
"description": "Determine whether an AST node is a reference",
"type": "module",
"module": "src/index.js",
"types": "types/index.d.ts",
"exports": {
"import": "./src/index.js"
},
"files": [
"src",
"types"
],
"scripts": {
"test": "uvu",
"prepublishOnly": "npm test && tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Rich-Harris/is-reference.git"
},
"keywords": [
"ast",
"javascript",
"estree",
"acorn"
],
"author": "Rich Harris",
"license": "MIT",
"bugs": {
"url": "https://github.com/Rich-Harris/is-reference/issues"
},
"homepage": "https://github.com/Rich-Harris/is-reference#readme",
"dependencies": {
"@types/estree": "*"
},
"devDependencies": {
"acorn": "^8.0.5",
"acorn-class-fields": "^1.0.0",
"acorn-static-class-features": "^1.0.0",
"estree-walker": "^3.0.0",
"typescript": "^4.1.5",
"uvu": "^0.5.1"
}
"name": "is-reference",
"version": "3.0.1",
"description": "Determine whether an AST node is a reference",
"type": "module",
"module": "src/index.js",
"types": "types/index.d.ts",
"exports": {
"types": "./types/index.d.ts",
"import": "./src/index.js"
},
"files": [
"src",
"types"
],
"scripts": {
"test": "uvu",
"prepublishOnly": "npm test && tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Rich-Harris/is-reference.git"
},
"keywords": [
"ast",
"javascript",
"estree",
"acorn"
],
"author": "Rich Harris",
"license": "MIT",
"bugs": {
"url": "https://github.com/Rich-Harris/is-reference/issues"
},
"homepage": "https://github.com/Rich-Harris/is-reference#readme",
"dependencies": {
"@types/estree": "*"
},
"devDependencies": {
"acorn": "^8.0.5",
"acorn-class-fields": "^1.0.0",
"acorn-static-class-features": "^1.0.0",
"estree-walker": "^3.0.0",
"typescript": "^4.1.5",
"uvu": "^0.5.1"
}
}

@@ -1,2 +0,1 @@

//@ts-check
/** @typedef { import('estree').Node} Node */

@@ -13,3 +12,3 @@ /** @typedef {Node | {

* @param {NodeWithPropertyDefinition} parent
* @returns boolean
* @returns {boolean}
*/

@@ -16,0 +15,0 @@ export default function is_reference (node, parent) {

@@ -11,7 +11,7 @@ /** @typedef { import('estree').Node} Node */

* @param {NodeWithPropertyDefinition} parent
* @returns boolean
* @returns {boolean}
*/
export default function is_reference(node: NodeWithPropertyDefinition, parent: NodeWithPropertyDefinition): any;
export type Node = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").AssignmentProperty | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier;
export type NodeWithPropertyDefinition = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").AssignmentProperty | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier | {
export default function is_reference(node: NodeWithPropertyDefinition, parent: NodeWithPropertyDefinition): boolean;
export type Node = import('estree').Node;
export type NodeWithPropertyDefinition = Node | {
type: 'PropertyDefinition';

@@ -18,0 +18,0 @@ computed: boolean;

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