Comparing version 0.6.1 to 0.6.2
@@ -0,1 +1,5 @@ | ||
## v0.6.2 - November 10, 2014 | ||
* Add *repository* field to `package.json`. No functional changes. | ||
## v0.6.1 - August 4, 2014 | ||
@@ -2,0 +6,0 @@ |
@@ -5,3 +5,7 @@ { | ||
"license": "MIT", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/rstacruz/hicat.git" | ||
}, | ||
"description": "Command-line syntax highlighter.", | ||
@@ -8,0 +12,0 @@ "main": "index.js", |
@@ -45,3 +45,3 @@ require('./setup'); | ||
beforeEach(function () { | ||
input = 'var x = 2345 + "hi"; /*yo*/'; | ||
input = 'var x = 2345 + "hi"; /*yo*/ window.document.x = function($){};'; | ||
out = hicat(input); | ||
@@ -52,3 +52,3 @@ str = out.ansi; | ||
it('produces .language', function () { | ||
expect(out.language).be.eql('haxe'); | ||
expect(out.language).be.eql('javascript'); | ||
}); | ||
@@ -70,3 +70,3 @@ | ||
it('highlights numbers', function () { | ||
var fragment = hicat.colorize('2345', hicat.color('number', 'haxe')); | ||
var fragment = hicat.colorize('2345', hicat.color('number', 'javascript')); | ||
expect(str).include(str); | ||
@@ -76,3 +76,3 @@ }); | ||
it('highlights comments', function () { | ||
var fragment = hicat.colorize('/*yo*/', hicat.color('comment', 'haxe')); | ||
var fragment = hicat.colorize('/*yo*/', hicat.color('comment', 'javascript')); | ||
expect(str).include(fragment); | ||
@@ -79,0 +79,0 @@ }); |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
26183
1
16