@git-diff-view/core
Advanced tools
+1
-0
@@ -215,2 +215,3 @@ // Generated by dts-bundle-generator v9.5.1 | ||
| _getTheme: () => "light" | "dark"; | ||
| _getIsCloned: () => boolean; | ||
| _addClonedInstance: (instance: DiffFile) => void; | ||
@@ -217,0 +218,0 @@ _notifyOthers: (instance: DiffFile) => void; |
+2
-2
@@ -6,3 +6,3 @@ { | ||
| "license": "MIT", | ||
| "version": "0.0.39", | ||
| "version": "0.0.40", | ||
| "main": "index.js", | ||
@@ -54,3 +54,3 @@ "types": "index.d.ts", | ||
| "dependencies": { | ||
| "@git-diff-view/lowlight": "^0.0.39", | ||
| "@git-diff-view/lowlight": "^0.0.40", | ||
| "highlight.js": "^11.11.0", | ||
@@ -57,0 +57,0 @@ "lowlight": "^3.3.0", |
+12
-1
@@ -137,2 +137,4 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
| #isCloned: boolean = false; | ||
| #theme: "light" | "dark" = "light"; | ||
@@ -750,4 +752,9 @@ | ||
| : true) | ||
| ) | ||
| ) { | ||
| this.#newFileSyntaxLines = this.#newFileResult?.syntaxFile; | ||
| this.#oldFileSyntaxLines = this.#oldFileResult?.syntaxFile; | ||
| return; | ||
| } | ||
@@ -1665,2 +1672,4 @@ this.#doSyntax({ registerHighlighter }); | ||
| this.#isCloned = true; | ||
| if (__DEV__ && this._version_ !== data.version) { | ||
@@ -1687,2 +1696,4 @@ console.error("the version of the `diffInstance` is not match, some error may happen"); | ||
| _getIsCloned = () => this.#isCloned; | ||
| _addClonedInstance = (instance: DiffFile) => { | ||
@@ -1689,0 +1700,0 @@ const updateFunc = () => { |
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 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1162139
0.33%12666
0.22%+ Added
- Removed