diff2html
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -57,3 +57,3 @@ var __assign = (this && this.__assign) || function () { | ||
Diff2HtmlUI.prototype.fileListToggle = function (startVisible) { | ||
var showBtn = this.targetElement.querySelector('d2h-show'); | ||
var showBtn = this.targetElement.querySelector('.d2h-show'); | ||
var hideBtn = this.targetElement.querySelector('.d2h-hide'); | ||
@@ -60,0 +60,0 @@ var fileList = this.targetElement.querySelector('.d2h-file-list'); |
@@ -59,3 +59,3 @@ "use strict"; | ||
Diff2HtmlUI.prototype.fileListToggle = function (startVisible) { | ||
var showBtn = this.targetElement.querySelector('d2h-show'); | ||
var showBtn = this.targetElement.querySelector('.d2h-show'); | ||
var hideBtn = this.targetElement.querySelector('.d2h-hide'); | ||
@@ -62,0 +62,0 @@ var fileList = this.targetElement.querySelector('.d2h-file-list'); |
{ | ||
"name": "diff2html", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"homepage": "https://diff2html.xyz", | ||
@@ -5,0 +5,0 @@ "description": "Fast Diff to colorized HTML", |
@@ -10,3 +10,3 @@ # diff2html | ||
[![devDependency Status](https://david-dm.org/rtfpessoa/diff2html/dev-status.svg)](https://david-dm.org/rtfpessoa/diff2html#info=devDependencies) | ||
[![cdnjs](https://img.shields.io/cdnjs/v/diff2html)](https://cdnjs.com/libraries/diff2html) | ||
[![jsdelivr CDN Downloads](https://data.jsdelivr.com/v1/package/npm/diff2html/badge)](https://www.jsdelivr.com/package/npm/diff2html) | ||
@@ -69,38 +69,42 @@ [![node](https://img.shields.io/node/v/diff2html.svg)]() [![npm](https://img.shields.io/npm/l/diff2html.svg)]() | ||
> Go to [diff2html](https://diff2html.xyz/) | ||
> Go to [diff2html](https://diff2html.xyz/demo.html) | ||
## Distributions | ||
- [jsdelivr CDN](https://www.jsdelivr.com/package/npm/diff2html) | ||
- [WebJar](http://www.webjars.org/) | ||
- [Node Library](https://www.npmjs.org/package/diff2html) | ||
- [NPM CLI](https://www.npmjs.org/package/diff2html-cli) | ||
- Manually download and import: | ||
- Manually use from jsdelivr or build the project: | ||
- Browser / Bundle | ||
- Parser and HTML Generator | ||
- [bundles/js/diff2html.min.js](./bundles/js/diff2html.min.js) - includes the diff parser and html generator | ||
- [bundles/js/diff2html.min.js](https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html.min.js) - includes the | ||
diff parser and html generator | ||
- Wrapper and helper adding syntax highlight, synchronized scroll, and other nice features | ||
- [bundles/js/diff2html-ui.min.js](./bundles/js/diff2html-ui.min.js) - includes the wrapper of diff2html with | ||
highlight for all `highlight.js` supported languages | ||
- [bundles/js/diff2html-ui-slim.min.js](./bundles/js/diff2html-ui-slim.min.js) - includes the wrapper of diff2html | ||
with "the most common" `highlight.js` supported languages | ||
- [bundles/js/diff2html-ui-base.min.js](./bundles/js/diff2html-ui-base.min.js) - includes the wrapper of diff2html | ||
without including a `highlight.js` implementation. You can use it without syntax highlight or by passing your | ||
own implementation with the languages you prefer | ||
- [bundles/js/diff2html-ui.min.js](https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js) - | ||
includes the wrapper of diff2html with highlight for all `highlight.js` supported languages | ||
- [bundles/js/diff2html-ui-slim.min.js](https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui-slim.min.js) - | ||
includes the wrapper of diff2html with "the most common" `highlight.js` supported languages | ||
- [bundles/js/diff2html-ui-base.min.js](https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui-base.min.js) - | ||
includes the wrapper of diff2html without including a `highlight.js` implementation. You can use it without | ||
syntax highlight or by passing your own implementation with the languages you prefer | ||
- NPM / Node.js library | ||
- ES5 | ||
- [lib/diff2html.js](./lib/diff2html.js) - includes the diff parser and html generator | ||
- [lib/ui/js/diff2html-ui.js](./lib/ui/js/diff2html-ui.js) - includes the wrapper of diff2html with highlight for | ||
all `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-slim.js](./lib/ui/js/diff2html-ui-slim.js) - includes the wrapper of diff2html with "the | ||
most common" `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-base.js](./lib/ui/js/diff2html-ui-base.js) | ||
- [lib/diff2html.js](https://cdn.jsdelivr.net/npm/diff2html/lib/diff2html.js) - includes the diff parser and html | ||
generator | ||
- [lib/ui/js/diff2html-ui.js](https://cdn.jsdelivr.net/npm/diff2html/lib/ui/js/diff2html-ui.js) - includes the | ||
wrapper of diff2html with highlight for all `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-slim.js](https://cdn.jsdelivr.net/npm/diff2html/lib/ui/js/diff2html-ui-slim.js) - | ||
includes the wrapper of diff2html with "the most common" `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-base.js](https://cdn.jsdelivr.net/npm/diff2html/lib/ui/js/diff2html-ui-base.js) | ||
- ES6 | ||
- [lib-esm/diff2html.js](./lib-esm/diff2html.js) - includes the diff parser and html generator | ||
- [lib/ui/js/diff2html-ui.js](./lib/ui/js/diff2html-ui.js) - includes the wrapper of diff2html with highlight for | ||
all `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-slim.js](./lib/ui/js/diff2html-ui-slim.js) - includes the wrapper of diff2html with "the | ||
most common" `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-base.js](./lib/ui/js/diff2html-ui-base.js) - includes the wrapper of diff2html without | ||
including a `highlight.js` implementation. You can use it without syntax highlight or by passing your own | ||
implementation with the languages you prefer | ||
- [lib-esm/diff2html.js](https://cdn.jsdelivr.net/npm/diff2html/lib-esm/diff2html.js) - includes the diff parser | ||
and html generator | ||
- [lib/ui/js/diff2html-ui.js](https://cdn.jsdelivr.net/npm/diff2html/lib/ui/js/diff2html-ui.js) - includes the | ||
wrapper of diff2html with highlight for all `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-slim.js](https://cdn.jsdelivr.net/npm/diff2html/lib/ui/js/diff2html-ui-slim.js) - | ||
includes the wrapper of diff2html with "the most common" `highlight.js` supported languages | ||
- [lib/ui/js/diff2html-ui-base.js](https://cdn.jsdelivr.net/npm/diff2html/lib/ui/js/diff2html-ui-base.js) - | ||
includes the wrapper of diff2html without including a `highlight.js` implementation. You can use it without | ||
syntax highlight or by passing your own implementation with the languages you prefer | ||
@@ -126,7 +130,5 @@ ## Usage | ||
<!-- CSS --> | ||
<link rel="stylesheet" type="text/css" href="bundles/css/diff2html.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css" /> | ||
``` | ||
You can also refer to it from a CDN like [CDNJS](https://cdnjs.com/libraries/diff2html). | ||
### Diff2Html API | ||
@@ -146,4 +148,2 @@ | ||
> Check out the [docs/demo.html](./docs/demo.html) for a demo example. | ||
### Diff2Html Configuration | ||
@@ -177,6 +177,6 @@ | ||
<!-- CSS --> | ||
<link rel="stylesheet" type="text/css" href="bundles/css/diff2html.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css" /> | ||
<!-- Javascripts --> | ||
<script type="text/javascript" src="bundles/js/diff2html.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html.min.js"></script> | ||
``` | ||
@@ -318,4 +318,2 @@ | ||
> Check out the [docs/demo.html](./docs/demo.html) for a demo example. | ||
### Diff2HtmlUI Configuration | ||
@@ -336,6 +334,6 @@ | ||
<!-- CSS --> | ||
<link rel="stylesheet" type="text/css" href="bundles/css/diff2html.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css" /> | ||
<!-- Javascripts --> | ||
<script type="text/javascript" src="bundles/js/diff2html-ui.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js"></script> | ||
``` | ||
@@ -365,6 +363,6 @@ | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/github.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="bundles/css/diff2html.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/diff2html/bundles/css/diff2html.min.css" /> | ||
<!-- Javascripts --> | ||
<script type="text/javascript" src="bundles/js/diff2html-ui.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js"></script> | ||
``` | ||
@@ -397,3 +395,3 @@ | ||
<!-- Javascripts --> | ||
<script type="text/javascript" src="bundles/js/diff2html-ui.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/diff2html/bundles/js/diff2html-ui.min.js"></script> | ||
``` | ||
@@ -400,0 +398,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1750163
482