New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rocambole-indent

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rocambole-indent - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md
# rocambole-indent changelog
## v2.0.1 (2015-03-25)
- safeguard against empty nodes/ast on `alignComments()`
## v2.0.0 (2015-03-25)

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

2

package.json
{
"name": "rocambole-indent",
"version": "2.0.0",
"version": "2.0.1",
"description": "helpers for rocambole AST indentation",

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

@@ -181,3 +181,3 @@ 'use strict';

function alignComments(nodeOrAst) {
var first = nodeOrAst.startToken.prev;
var first = nodeOrAst.startToken && nodeOrAst.startToken.prev;
var token = nodeOrAst.endToken;

@@ -184,0 +184,0 @@ while (token && token !== first) {

@@ -34,2 +34,5 @@ //jshint node:true, eqnull:true

// yes, this will throw if it doesn't support empty nodes/ast
indent.alignComments({});
formatAndCompare('align_comment-input.js', 'align_comment-output.js', indent.alignComments);

@@ -36,0 +39,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