diff2html
Advanced tools
Comparing version 2.0.0-beta13 to 2.0.0-beta14
@@ -86,5 +86,5 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
if (typeof(targetId) === 'object' && targetId instanceof jQuery) { | ||
if (typeof targetId === 'object' && targetId instanceof jQuery) { | ||
$target = targetId; | ||
} else if (typeof(targetId) === 'string') { | ||
} else if (typeof targetId === 'string') { | ||
$target = $(targetId); | ||
@@ -91,0 +91,0 @@ } else { |
{ | ||
"name": "diff2html", | ||
"version": "2.0.0-beta13", | ||
"version": "2.0.0-beta14", | ||
"homepage": "http://rtfpessoa.github.io/diff2html/", | ||
@@ -41,4 +41,4 @@ "description": "Fast Diff to colorized HTML", | ||
"templates": "./scripts/hulk.js --wrapper node --variable 'browserTemplates' ./src/templates/*.mustache > ./src/templates/diff2html-templates.js", | ||
"test": "istanbul cover _mocha -- -u exports -R spec ./test/**/*", | ||
"style": "jscs src test", | ||
"test": "jscs src/*.js src/ui/js/*.js && istanbul cover _mocha -- -u exports -R spec ./test/**/* && istanbul check-coverage --statements 90 --functions 90 --branches 85 --lines 90 ./coverage/coverage.json", | ||
"style": "jscs src/*.js src/ui/js/*.js", | ||
"codacy": "istanbul cover _mocha -- -u exports -R spec ./test/**/* && cat ./coverage/lcov.info | codacy-coverage" | ||
@@ -60,3 +60,3 @@ }, | ||
"istanbul": "^0.4.2", | ||
"jscs": "^2.11.0", | ||
"jscs": "^3.0.3", | ||
"mkdirp": "^0.5.1", | ||
@@ -63,0 +63,0 @@ "mocha": "^2.4.5", |
@@ -18,3 +18,2 @@ /* | ||
var templatesPath = path.resolve(__dirname, 'templates'); | ||
var templatesCache = {}; | ||
@@ -58,3 +57,3 @@ function HoganJsUtils() { | ||
template = hogan.compile(templateContent); | ||
templatesCache[templateKey] = template; | ||
hoganTemplates[templateKey] = template; | ||
} | ||
@@ -69,5 +68,3 @@ } catch (e) { | ||
HoganJsUtils.prototype._readFromCache = function(templateKey) { | ||
return global.browserTemplates && global.browserTemplates[templateKey] || | ||
hoganTemplates[templateKey] || | ||
templatesCache[templateKey]; | ||
return hoganTemplates[templateKey]; | ||
}; | ||
@@ -74,0 +71,0 @@ |
@@ -22,6 +22,2 @@ /* | ||
if (text.length === 0) { | ||
return hash; | ||
} | ||
for (i = 0, len = text.length; i < len; i++) { | ||
@@ -43,4 +39,3 @@ chr = text.charCodeAt(i); | ||
if (oldFilename && newFilename && oldFilename !== newFilename && | ||
!isDevNullName(oldFilename) && !isDevNullName(newFilename)) { | ||
if (oldFilename && newFilename && oldFilename !== newFilename && !isDevNullName(oldFilename) && !isDevNullName(newFilename)) { | ||
return oldFilename + ' -> ' + newFilename; | ||
@@ -47,0 +42,0 @@ } else if (newFilename && !isDevNullName(newFilename)) { |
@@ -12,9 +12,2 @@ /* | ||
var Rematch = {}; | ||
Rematch.arrayToString = function arrayToString(a) { | ||
if (Object.prototype.toString.apply(a, []) === "[object Array]") { | ||
return "[" + a.map(arrayToString).join(", ") + "]"; | ||
} else { | ||
return a; | ||
} | ||
}; | ||
@@ -21,0 +14,0 @@ /* |
@@ -84,5 +84,5 @@ /* | ||
if (typeof(targetId) === 'object' && targetId instanceof jQuery) { | ||
if (typeof targetId === 'object' && targetId instanceof jQuery) { | ||
$target = targetId; | ||
} else if (typeof(targetId) === 'string') { | ||
} else if (typeof targetId === 'string') { | ||
$target = $(targetId); | ||
@@ -89,0 +89,0 @@ } else { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
4
13
4
269933
27
5102