Comparing version 1.3.0 to 1.3.1
# disparity changelog | ||
## v1.3.1 (2015/04/01) | ||
- fix line number alignment. | ||
## v1.3.0 (2015/04/01) | ||
@@ -4,0 +8,0 @@ |
@@ -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", |
[41mremoved[49m [42madded[49m | ||
1 | var foo = "bar";<LF> | ||
2 | <LF> | ||
3 | // some comment<LF> | ||
4 | function dolor(){[41m<LF>[49m | ||
5 | [41m [49mamet()[41m;[49m<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(){[41m<LF>[49m | ||
5 | [41m [49mamet()[41m;[49m<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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112195