File tree Expand file tree Collapse file tree 18 files changed +59
-59
lines changed
Expand file tree Collapse file tree 18 files changed +59
-59
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ declare const lowlight: {
4949 } ;
5050 registered : ( aliasOrName : string ) => boolean ;
5151} ;
52+ declare enum NewLineSymbol {
53+ CRLF = 1 ,
54+ CR = 2 ,
55+ LF = 3 ,
56+ NEWLINE = 4 ,
57+ NORMAL = 5 ,
58+ NULL = 6
59+ }
5260export declare class DiffFile {
5361
5462 readonly uuid ?: string ;
@@ -556,14 +564,6 @@ export declare enum DiffLineType {
556564 Delete = 2 ,
557565 Hunk = 3
558566}
559- export declare enum NewLineSymbol {
560- CRLF = 1 ,
561- CR = 2 ,
562- LF = 3 ,
563- NEWLINE = 4 ,
564- NORMAL = 5 ,
565- NULL = 6
566- }
567567export declare enum SplitSide {
568568 old = 1 ,
569569 new = 2
Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/core" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.27 " ,
6+ "version" : " 0.0.28 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
5353 " diff parse"
5454 ],
5555 "dependencies" : {
56- "@git-diff-view/lowlight" : " ^0.0.27 " ,
56+ "@git-diff-view/lowlight" : " ^0.0.28 " ,
5757 "highlight.js" : " ^11.11.0" ,
5858 "lowlight" : " ^3.3.0" ,
5959 "fast-diff" : " ^1.3.0"
Original file line number Diff line number Diff line change 1+ import { NewLineSymbol } from "@git-diff-view/utils" ;
12import fastDiff from "fast-diff" ;
23
34import type { DiffLine } from "./diff-line" ;
45
5- export enum NewLineSymbol {
6- CRLF = 1 ,
7- CR = 2 ,
8- LF = 3 ,
9- NEWLINE = 4 ,
10- NORMAL = 5 ,
11- NULL = 6 ,
12- }
13-
146export interface IRange {
157 readonly range : {
168 /** The starting location for the range. */
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ declare const lowlight: {
4949 } ;
5050 registered : ( aliasOrName : string ) => boolean ;
5151} ;
52+ declare enum NewLineSymbol {
53+ CRLF = 1 ,
54+ CR = 2 ,
55+ LF = 3 ,
56+ NEWLINE = 4 ,
57+ NORMAL = 5 ,
58+ NULL = 6
59+ }
5260export declare class DiffFile {
5361 readonly uuid ?: string ;
5462 _version_ : string ;
@@ -555,14 +563,6 @@ export declare enum DiffLineType {
555563 Delete = 2 ,
556564 Hunk = 3
557565}
558- export declare enum NewLineSymbol {
559- CRLF = 1 ,
560- CR = 2 ,
561- LF = 3 ,
562- NEWLINE = 4 ,
563- NORMAL = 5 ,
564- NULL = 6
565- }
566566export declare enum SplitSide {
567567 old = 1 ,
568568 new = 2
Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/file" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.27 " ,
6+ "version" : " 0.0.28 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
5353 " diff parse"
5454 ],
5555 "dependencies" : {
56- "@git-diff-view/core" : " ^0.0.27 " ,
56+ "@git-diff-view/core" : " ^0.0.28 " ,
5757 "diff" : " ^7.0.0" ,
5858 "highlight.js" : " ^11.11.0" ,
5959 "lowlight" : " ^3.3.0" ,
Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/lowlight" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.27 " ,
6+ "version" : " 0.0.28 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ declare const lowlight: {
4949 } ;
5050 registered : ( aliasOrName : string ) => boolean ;
5151} ;
52+ declare enum NewLineSymbol {
53+ CRLF = 1 ,
54+ CR = 2 ,
55+ LF = 3 ,
56+ NEWLINE = 4 ,
57+ NORMAL = 5 ,
58+ NULL = 6
59+ }
5260export declare class DiffFile {
5361 readonly uuid ?: string ;
5462 _version_ : string ;
@@ -555,14 +563,6 @@ export declare enum DiffLineType {
555563 Delete = 2 ,
556564 Hunk = 3
557565}
558- export declare enum NewLineSymbol {
559- CRLF = 1 ,
560- CR = 2 ,
561- LF = 3 ,
562- NEWLINE = 4 ,
563- NORMAL = 5 ,
564- NULL = 6
565- }
566566export declare enum SplitSide {
567567 old = 1 ,
568568 new = 2
Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/react" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.27 " ,
6+ "version" : " 0.0.28 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
6767 " react diff component"
6868 ],
6969 "dependencies" : {
70- "@git-diff-view/core" : " ^0.0.27 " ,
70+ "@git-diff-view/core" : " ^0.0.28 " ,
7171 "@types/hast" : " ^3.0.0" ,
7272 "fast-diff" : " ^1.3.0" ,
7373 "highlight.js" : " ^11.11.0" ,
Original file line number Diff line number Diff line change 11/* eslint-disable max-lines */
22import {
33 DiffLineType ,
4- NewLineSymbol ,
54 getSyntaxDiffTemplate ,
65 getSyntaxLineTemplate ,
76 getPlainDiffTemplate ,
@@ -13,6 +12,7 @@ import {
1312 delContentHighlightBGName ,
1413 diffFontSizeName ,
1514 getSymbol ,
15+ NewLineSymbol ,
1616} from "@git-diff-view/utils" ;
1717import * as React from "react" ;
1818
Original file line number Diff line number Diff line change 11import {
22 DiffLineType ,
3- NewLineSymbol ,
43 type DiffFile ,
54 type DiffLine ,
65 type diffChanges ,
@@ -11,6 +10,7 @@ import {
1110 delContentHighlightBGName ,
1211 diffFontSizeName ,
1312 getSymbol ,
13+ NewLineSymbol ,
1414} from "@git-diff-view/utils" ;
1515import * as React from "react" ;
1616
You can’t perform that action at this time.
0 commit comments