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

ast-util

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-util - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

.idea/codeStyleSettings.xml

129

lib/index.js

@@ -27,7 +27,7 @@ /* jshint node:true, undef:true, unused:true */

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} node
* @param {ast-types.Expression|number} begin
* @param {?ast-types.Expression|number} end
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} node
* @param {Expression|number=} begin
* @param {Expression|number=} end
* @return {CallExpression}
*/

@@ -61,7 +61,7 @@ function callArraySlice(scope, node, begin, end) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} fn
* @param {ast-types.Expression} context
* @param {ast-types.Expression|Array.<ast-types.Expression>} args
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} fn
* @param {Expression} context
* @param {Expression|Array.<Expression>} args
* @return {CallExpression}
*/

@@ -95,5 +95,5 @@ function callFunctionBind(scope, fn, context, args) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} expression
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} expression
* @return {CallExpression}
*/

@@ -111,4 +111,4 @@ function callGetIterator(scope, expression) {

* @private
* @param {ast-types.Scope} scope
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @return {CallExpression}
*/

@@ -123,8 +123,8 @@ function getArrayIterator(scope) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} expression
* @param {ast-types.Literal} index
* @param {ast-types.Literal} begin
* @param {ast-types.Literal} len
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} iterator
* @param {Literal} index
* @param {Literal} begin
* @param {Literal} len
* @return {CallExpression}
*/

@@ -140,7 +140,7 @@ function callGetIteratorRange(scope, iterator, index, begin, len) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} object
* @param {ast-types.Expression} property
* @param {ast-types.Expression} receiver
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} object
* @param {Expression} property
* @param {Expression} receiver
* @return {CallExpression}
*/

@@ -157,6 +157,6 @@ function callGet(scope, object, property, receiver) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} object
* @param {ast-types.Expression|string} property
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} object
* @param {Expression|string} property
* @return {CallExpression}
*/

@@ -179,5 +179,5 @@ function callGetOwnPropertyDescriptor(scope, object, property) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} object
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} object
* @return {CallExpression}
*/

@@ -193,6 +193,6 @@ function callGetPrototypeOf(scope, object) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression} node
* @param {ast-types.Expression|string} property
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression} node
* @param {Expression|string} property
* @return {CallExpression}
*/

@@ -220,7 +220,6 @@ function callHasOwnProperty(scope, node, property) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression|string} callee
* @param {ast-types.Expression} context
* @param {Array.<ast-types.Expression>} args
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression|string} callee
* @param {Array.<Expression>} args
* @return {CallExpression}
*/

@@ -243,7 +242,7 @@ function callSharedMethod(scope, callee, args) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Expression|string} callee
* @param {ast-types.Expression} context
* @param {Array.<ast-types.Expression>} args
* @return {ast-types.CallExpression}
* @param {Scope} scope
* @param {Expression|string} callee
* @param {Expression} context
* @param {Array.<Expression>} args
* @return {CallExpression}
*/

@@ -272,4 +271,4 @@ function callSharedMethodWithContext(scope, callee, context, args) {

*
* @param {ast-types.Node} ast
* @return {Array.<ast-types.Identifier>}
* @param {Node} ast
* @return {Array.<Identifier>}
*/

@@ -313,5 +312,5 @@ function getGlobals(ast) {

*
* @param {ast-types.Scope} scope
* @param {Scope} scope
* @param {string} name
* @return {ast-types.Identifier}
* @return {Identifier}
*/

@@ -335,6 +334,6 @@ function injectHelper(scope, name) {

*
* @param {ast-types.Scope} scope
* @param {Scope} scope
* @param {string} name
* @param {ast-types.Expression|function(): ast-types.Expression} expression
* @return {ast-types.Identifier}
* @param {Expression|function(): Expression} expression
* @return {Identifier}
*/

@@ -362,6 +361,6 @@ function injectShared(scope, name, expression) {

*
* @param {ast-types.Scope} scope
* @param {ast-types.Identifier} identifier
* @param {?ast-types.Expression} init
* @return {ast-types.Identifier} Returns the given `identifier`.
* @param {Scope} scope
* @param {Identifier} identifier
* @param {Expression=} init
* @return {Identifier} Returns the given `identifier`.
*/

@@ -402,4 +401,4 @@ function injectVariable(scope, identifier, init) {

*
* @param {ast-types.NodePath} path
* @param {?string} name
* @param {NodePath} path
* @param {string=} name
* @return {boolean}

@@ -464,3 +463,3 @@ */

*
* @param {ast-types.Scope} scope
* @param {Scope} scope
* @param {string} name

@@ -497,5 +496,5 @@ * @return {boolean}

*
* @param {ast-types.Scope} scope
* @param {Scope} scope
* @param {string} name
* @return {ast-types.Identifier}
* @return {Identifier}
*/

@@ -536,5 +535,5 @@ function sharedFor(scope, name) {

*
* @param {ast-types.Scope} scope
* @param {Scope} scope
* @param {?string} name
* @return {ast-types.Identifier}
* @return {Identifier}
* @see isUsed

@@ -541,0 +540,0 @@ */

@@ -7,4 +7,4 @@ /* jshint node:true, undef:true, unused:true */

* @constructor
* @param {ast-types.NodePath} nodePath
* @param {Array.<ast-types.Node>} nodes
* @param {NodePath} nodePath
* @param {Array.<Node>} nodes
*/

@@ -41,3 +41,3 @@ function Replacement(nodePath, nodes) {

*
* @param {ast-types.NodePath} nodePath
* @param {NodePath} nodePath
* @returns {Replacement}

@@ -53,4 +53,4 @@ */

*
* @param {ast-types.NodePath} nodePath
* @param {Array.<ast-types.Node>} nodes
* @param {NodePath} nodePath
* @param {Array.<Node>} nodes
* @returns {Replacement}

@@ -66,4 +66,4 @@ */

*
* @param {ast-types.NodePath} nodePath
* @param {ast-types.Node|Array.<ast-types.Node>} nodes
* @param {NodePath} nodePath
* @param {Node|Array.<Node>} nodes
*/

@@ -82,4 +82,4 @@ Replacement.swaps = function(nodePath, nodes) {

*
* @param {Array.<ast-types.NodePath>} nodePaths
* @param {function(ast-types.NodePath): ?Replacement} callback
* @param {Array.<NodePath>} nodePaths
* @param {function(NodePath): ?Replacement} callback
* @returns {Replacement}

@@ -86,0 +86,0 @@ */

{
"name": "ast-util",
"version": "0.3.1",
"version": "0.3.2",
"description": "Utilities for AST transformers.",

@@ -31,3 +31,3 @@ "main": "lib/index.js",

"mocha": "^1.18.2",
"recast": "^0.6.2",
"recast": "^0.6.7",
"esprima": "git://github.com/ariya/esprima.git#harmony"

@@ -34,0 +34,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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