Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diff2html

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff2html - npm Package Compare versions

Comparing version 2.0.0-beta13 to 2.0.0-beta14

4

dist/diff2html-ui.js

@@ -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

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