🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

disparity

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disparity - npm Package Compare versions

Comparing version

to
1.3.1

4

CHANGELOG.md
# disparity changelog
## v1.3.1 (2015/04/01)
- fix line number alignment.
## v1.3.0 (2015/04/01)

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

2

disparity.js

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

var diff = nChars - val.length;
return diff ? (new Array(diff)).join(' ') + val : val;
return diff ? (new Array(diff + 1)).join(' ') + val : val;
}

@@ -85,0 +85,0 @@

{
"name": "disparity",
"version": "1.3.0",
"version": "1.3.1",
"description": "Colorized string diff ideal for text/code that spans through multiple lines",

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

removed added
1 | var foo = "bar";<LF>
2 | <LF>
3 | // some comment<LF>
4 | function dolor(){<LF>
5 |  amet();<LF>
6 | }<LF>
7 | <LF>
8 | // no changes until line 19<LF>
1 | var foo = "bar";<LF>
2 | <LF>
3 | // some comment<LF>
4 | function dolor(){<LF>
5 |  amet();<LF>
6 | }<LF>
7 | <LF>
8 | // no changes until line 19<LF>
16 | thisShouldBeFirstLineOfLine19Diff();<LF>

@@ -12,0 +12,0 @@ 17 | // yeap this will show too<LF>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet