@git-diff-view/core
Advanced tools
+30
-9
@@ -12,3 +12,3 @@ // Generated by dts-bundle-generator v9.5.1 | ||
| readonly raw: string; | ||
| readonly lang: string; | ||
| readonly lang: DiffHighlighterLang | string; | ||
| readonly fileName?: string; | ||
@@ -26,3 +26,4 @@ ast?: DiffAST; | ||
| static createInstance(data: File$1): File$1; | ||
| constructor(raw: string, lang: string, fileName?: string); | ||
| constructor(row: string, lang: DiffHighlighterLang, fileName?: string); | ||
| constructor(row: string, lang: string, fileName?: string); | ||
| doSyntax({ registerHighlighter, theme, }: { | ||
@@ -54,6 +55,6 @@ registerHighlighter?: Omit<DiffHighlighter, "getHighlighterEngine">; | ||
| _oldFileContent: string; | ||
| _oldFileLang: string; | ||
| _oldFileLang: DiffHighlighterLang | string; | ||
| _newFileName: string; | ||
| _newFileContent: string; | ||
| _newFileLang: string; | ||
| _newFileLang: DiffHighlighterLang | string; | ||
| _diffList: string[]; | ||
@@ -67,3 +68,5 @@ diffLineLength: number; | ||
| hasSomeLineCollapsed: boolean; | ||
| static createInstance(data: FileData, bundle?: ReturnType<DiffFile["getBundle"] | DiffFile["_getFullBundle"]>): DiffFile; | ||
| static createInstance(data: FileData_1, bundle?: ReturnType<DiffFile["getBundle"] | DiffFile["_getFullBundle"]>): DiffFile; | ||
| static createInstance(data: FileData_2, bundle?: ReturnType<DiffFile["getBundle"] | DiffFile["_getFullBundle"]>): DiffFile; | ||
| constructor(_oldFileName: string, _oldFileContent: string, _newFileName: string, _newFileContent: string, _diffList: string[], _oldFileLang?: DiffHighlighterLang, _newFileLang?: DiffHighlighterLang, uuid?: string); | ||
| constructor(_oldFileName: string, _oldFileContent: string, _newFileName: string, _newFileContent: string, _diffList: string[], _oldFileLang?: string, _newFileLang?: string, uuid?: string); | ||
@@ -360,3 +363,2 @@ initId(): void; | ||
| }) => void; | ||
| export declare const getFile: (raw: string, lang: string, theme: "light" | "dark", fileName?: string, uuid?: string) => File$1; | ||
| export declare const getLang: (fileName: string) => string; | ||
@@ -414,4 +416,7 @@ export declare const getSplitContentLines: (diffFile: DiffFile) => DiffSplitContentLineItem[]; | ||
| NEWLINE = 4, | ||
| NORMAL = 5 | ||
| NORMAL = 5, | ||
| NULL = 6 | ||
| } | ||
| export declare function _getAST(raw: string, fileName?: string, lang?: DiffHighlighterLang, theme?: "light" | "dark"): DiffAST; | ||
| export declare function _getAST(raw: string, fileName?: string, lang?: string, theme?: "light" | "dark"): DiffAST; | ||
| export declare function assertNever(_: never, message: string): never; | ||
@@ -422,2 +427,4 @@ export declare function diffChanges(addition: DiffLine, deletion: DiffLine): { | ||
| }; | ||
| export declare function getFile(raw: string, lang: DiffHighlighterLang, theme: "light" | "dark", fileName?: string, uuid?: string): File$1; | ||
| export declare function getFile(raw: string, lang: string, theme: "light" | "dark", fileName?: string, uuid?: string): File$1; | ||
| /** | ||
@@ -529,3 +536,3 @@ * Calculates whether or not a hunk header can be expanded up, down, both, or if | ||
| setIgnoreSyntaxHighlightList: (v: (string | RegExp)[]) => void; | ||
| getAST: (raw: string, fileName?: string, lang?: string, theme?: "light" | "dark") => DiffAST; | ||
| getAST: typeof _getAST; | ||
| processAST: (ast: DiffAST) => { | ||
@@ -538,2 +545,3 @@ syntaxFileObject: Record<number, SyntaxLine>; | ||
| }; | ||
| export type DiffHighlighterLang = "arduino" | "bash" | "c" | "cpp" | "csharp" | "css" | "diff" | "go" | "graphql" | "ini" | "java" | "javascript" | "js" | "jsx" | "json" | "kotlin" | "less" | "lua" | "makefile" | "markdown" | "objectivec" | "perl" | "php" | "php-template" | "plaintext" | "python" | "python-repl" | "r" | "ruby" | "rust" | "scss" | "shell" | "sql" | "swift" | "typescript" | "ts" | "tsx" | "vbnet" | "wasm" | "xml" | "yaml" | "abnf" | "accesslog" | "actionscript" | "ada" | "angelscript" | "apache" | "applescript" | "arcade" | "armasm" | "asciidoc" | "aspectj" | "autohotkey" | "autoit" | "avrasm" | "awk" | "axapta" | "basic" | "bnf" | "brainfuck" | "cal" | "capnproto" | "ceylon" | "clean" | "clojure" | "clojure-repl" | "cmake" | "coffeescript" | "coq" | "cos" | "crmsh" | "crystal" | "csp" | "d" | "dart" | "delphi" | "django" | "dns" | "dockerfile" | "dos" | "dsconfig" | "dts" | "dust" | "ebnf" | "elixir" | "elm" | "erb" | "erlang" | "erlang-repl" | "excel" | "fix" | "flix" | "fortran" | "fsharp" | "gams" | "gauss" | "gcode" | "gherkin" | "glsl" | "gml" | "golo" | "gradle" | "groovy" | "haml" | "handlebars" | "haskell" | "haxe" | "hsp" | "http" | "hy" | "inform7" | "irpf90" | "isbl" | "jboss-cli" | "julia" | "julia-repl" | "lasso" | "latex" | "ldif" | "leaf" | "lisp" | "livecodeserver" | "livescript" | "llvm" | "lsl" | "mathematica" | "matlab" | "maxima" | "mel" | "mercury" | "mipsasm" | "mizar" | "mojolicious" | "monkey" | "moonscript" | "n1ql" | "nestedtext" | "nginx" | "nim" | "nix" | "node-repl" | "nsis" | "ocaml" | "openscad" | "oxygene" | "parser3" | "pf" | "pgsql" | "pony" | "powershell" | "processing" | "profile" | "prolog" | "properties" | "protobuf" | "puppet" | "purebasic" | "q" | "qml" | "reasonml" | "rib" | "roboconf" | "routeros" | "rsl" | "ruleslanguage" | "sas" | "scala" | "scheme" | "scilab" | "smali" | "smalltalk" | "sml" | "sqf" | "stan" | "stata" | "step21" | "stylus" | "subunit" | "taggerscript" | "tap" | "tcl" | "thrift" | "tp" | "twig" | "vala" | "vbscript" | "vbscript-html" | "verilog" | "vhdl" | "vim" | "wren" | "x86asm" | "xl" | "xquery" | "zephi" | "vue" | "vue-html"; | ||
| export type DiffSplitContentLineItem = { | ||
@@ -564,5 +572,18 @@ type: DiffFileLineType.content; | ||
| }; | ||
| export type FileData = { | ||
| export type FileData_1 = { | ||
| oldFile?: { | ||
| fileName?: string | null; | ||
| fileLang?: DiffHighlighterLang | null; | ||
| content?: string | null; | ||
| }; | ||
| newFile?: { | ||
| fileName?: string | null; | ||
| fileLang?: DiffHighlighterLang | null; | ||
| content?: string | null; | ||
| }; | ||
| hunks?: string[]; | ||
| }; | ||
| export type FileData_2 = { | ||
| oldFile?: { | ||
| fileName?: string | null; | ||
| fileLang?: string | null; | ||
@@ -569,0 +590,0 @@ content?: string | null; |
+4
-4
@@ -6,3 +6,3 @@ { | ||
| "license": "MIT", | ||
| "version": "0.0.20", | ||
| "version": "0.0.21", | ||
| "main": "index.js", | ||
@@ -53,5 +53,5 @@ "types": "index.d.ts", | ||
| "dependencies": { | ||
| "@git-diff-view/lowlight": "^0.0.20", | ||
| "highlight.js": "^11.9.0", | ||
| "lowlight": "^3.1.0", | ||
| "@git-diff-view/lowlight": "^0.0.21", | ||
| "highlight.js": "^11.10.0", | ||
| "lowlight": "^3.2.0", | ||
| "fast-diff": "^1.3.0" | ||
@@ -58,0 +58,0 @@ }, |
+7
-0
@@ -45,1 +45,8 @@ ## `git diff` for @git-diff-view Component | ||
| ``` | ||
| ## Screen Shot | ||
|  | ||
|  | ||
|  | ||
|  | ||
|  |
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
648236
1.24%6694
1.13%52
15.56%36
20%+ Added
- Removed
Updated
Updated