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.2 to 0.3.3

2

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

@@ -5,0 +5,0 @@ "main": "rocambole.js",

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

### v0.3.3 (2014/04/26)
- add `toString` to empty programs AST (#16)
### v0.3.2 (2014/01/17)

@@ -232,0 +236,0 @@

@@ -58,2 +58,3 @@ /*jshint node:true */

ast.startToken = ast.endToken = null;
ast.toString = _nodeProto.toString;
return ast;

@@ -106,2 +107,3 @@ }

var token = this.startToken;
if (!token) return str;
do {

@@ -108,0 +110,0 @@ str += ('raw' in token)? token.raw : token.value;

@@ -322,2 +322,4 @@ /*global describe:false, it:false, beforeEach:false */

tokens: [],
// we check toString behavior later
toString: ast.toString,
startToken: null,

@@ -328,2 +330,6 @@ endToken: null,

});
it('toString should return proper value', function() {
var ast = rocambole.parse('');
expect(ast.toString()).to.be('');
});
});

@@ -330,0 +336,0 @@

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