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

rocambole

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rocambole - npm Package Compare versions

Comparing version 0.3.6 to 0.5.0

4

package.json
{
"name": "rocambole",
"version": "0.3.6",
"version": "0.5.0",
"description": "Recursively walk and transform EcmaScript AST",

@@ -33,3 +33,3 @@ "main": "rocambole.js",

"dependencies": {
"esprima": "~1.0"
"esprima": "^2.0"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -122,9 +122,8 @@ # Rocambole [![Build Status](https://secure.travis-ci.org/millermedeiros/rocambole.png?branch=master)](https://travis-ci.org/millermedeiros/rocambole)

I plan to create helpers as separate projects. For now I'm adding the helpers
on the [esformatter util
package](https://github.com/millermedeiros/esformatter/tree/master/lib/util)
but I plan to extract the generic ones.
I plan to create helpers as separate projects when possible.
- [rocambole-token](https://github.com/millermedeiros/rocambole-token): helpers for token manipulation
- [rocambole-token](https://github.com/millermedeiros/rocambole-token): helpers for token manipulation/traversal
- [rocambole-node](https://github.com/millermedeiros/rocambole-node): helpers for node manipulation/traversal
There are a few nice helpers on [esformatter](https://github.com/millermedeiros/esformatter/) to deal with indentation, white spaces and line breaks that might be useful.

@@ -187,3 +186,3 @@

### rocambole.recursive
### rocambole.walk / rocambole.recursive

@@ -194,3 +193,3 @@ It loops through all nodes on the AST starting from the root node (`Program`),

```js
rocambole.recursive(ast, function(node){
rocambole.walk(ast, function(node){
console.log(node.type);

@@ -233,2 +232,12 @@ });

### v0.5.0 (2015/02/25)
- updated `esprima` to v2.0 because of ES6 features and to avoid `esprima-fb`
bug related to RegExp.
### v0.4.0 (2014/07/14)
- aliased `rocambole.recursive` as `rocambole.walk` to avoid confusions.
- switched `esprima` dependency to `esprima-fb` because of ES6 features.
### v0.3.6 (2014/06/23)

@@ -235,0 +244,0 @@

@@ -348,3 +348,3 @@ /*jshint node:true */

exports.recursive = recursiveWalk;
exports.walk = exports.recursive = recursiveWalk;

@@ -351,0 +351,0 @@ // heavily inspired by node-falafel

@@ -75,4 +75,8 @@ /* globals describe:false, it:false */

it('should be aliased as walk() to avoid confusions', function () {
expect( rocambole.walk ).to.be( rocambole.recursive );
});
});
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