8000 Merge pull request #425 from rtfpessoa/dependabot/npm_and_yarn/node-f… · rtfpessoa/diff2html@4067ecd · GitHub
[go: up one dir, main page]

Skip to content

Commit 4067ecd

Browse files
authored
Merge pull request #425 from rtfpessoa/dependabot/npm_and_yarn/node-fetch-2.6.7
build(deps): bump node-fetch from 2.6.5 to 2.6.7
2 parents c541b98 + e1f6417 commit 4067ecd

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -303,30 +303,23 @@ index 0000001..0ddf2ba
303303
#### StimulusJS with TypeScript
304304

305305
```ts
306-
import { Controller } from "@hotwired/stimulus";
306+
import { Controller } from '@hotwired/stimulus';
307307

308-
import {
309-
Diff2HtmlUI,
310-
Diff2HtmlUIConfig,
311-
} from "diff2html/lib/ui/js/diff2html-ui-slim.js";
308+
import { Diff2HtmlUI, Diff2HtmlUIConfig } from 'diff2html/lib/ui/js/diff2html-ui-slim.js';
312309

313310
// Requires `yarn add highlight.js`
314-
import "highlight.js/styles/github.css";
315-
import "diff2html/bundles/css/diff2html.min.css";
311+
import 'highlight.js/styles/github.css';
312+
import 'diff2html/bundles/css/diff2html.min.css';
316313

317314
export default class extends Controller {
318315
connect(): void {
319-
const diff2htmlUi = new Diff2HtmlUI(
320-
this.diffElement,
321-
this.unifiedDiff,
322-
this.diffConfiguration
323-
);
316+
const diff2htmlUi = new Diff2HtmlUI(this.diffElement, this.unifiedDiff, this.diffConfiguration);
324317

325318
diff2htmlUi.draw();
326319
}
327320

328321
get unifiedDiff(): string {
329-
return this.data.get("unifiedDiff") || "";
322+
return this.data.get('unifiedDiff') || '';
330323
}
331324

332325
get diffElement(): HTMLElement {
@@ -336,7 +329,7 @@ export default class extends Controller {
336329
get diffConfiguration(): Diff2HtmlUIConfig {
337330
return {
338331
drawFileList: true,
339-
matching: "lines",
332+
matching: 'lines',
340333
};
341334
}
342335
}

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5353,9 +5353,9 @@ no-case@^3.0.4:
53535353
tslib "^2.0.3"
53545354

53555355
node-fetch@^2.6.0:
5356-
version "2.6.5"
5357-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd"
5358-
integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==
5356+
version "2.6.7"
5357+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
5358+
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
53595359
dependencies:
53605360
whatwg-url "^5.0.0"
53615361

0 commit comments

Comments
 (0)
0