File tree Expand file tree Collapse file tree 12 files changed +28
-28
lines changed Expand file tree Collapse file tree 12 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/cli" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.5 " ,
6+ "version" : " 0.0.6 " ,
77 "main" : " index.mjs" ,
88 "type" : " module" ,
99 "types" : " index.d.ts" ,
5050 " cli diff component"
5151 ],
5252 "dependencies" : {
53- "@git-diff-view/core" : " ^0.0.34 " ,
53+ "@git-diff-view/core" : " ^0.0.35 " ,
5454 "@types/hast" : " ^3.0.0" ,
5555 "highlight.js" : " ^11.11.0" ,
5656 "lowlight" : " ^3.3.0" ,
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.34 " ,
6+ "version" : " 0.0.35 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
5353 " diff parse"
5454 ],
5555 "dependencies" : {
56- "@git-diff-view/lowlight" : " ^0.0.34 " ,
56+ "@git-diff-view/lowlight" : " ^0.0.35 " ,
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 @@ -457,25 +457,25 @@ export class DiffFile {
457457
458458 // check the fileContent is match the diff result or not
459459 #checkFile( ) {
460- for ( const line in this . #oldFileDiffLines) {
460+ for ( const line in this . #oldFileDiffLines || { } ) {
461461 const diffLine = this . #oldFileDiffLines[ line ] ;
462462 const fileLine = this . #oldFilePlainLines[ line ] ;
463463 if (
464464 ( this . #oldFilePlaceholderLines ? ! this . #oldFilePlaceholderLines[ line ] : true ) &&
465- diffLine . text !== fileLine . value
465+ diffLine ? .text !== fileLine ? .value
466466 ) {
467467 console . warn (
468468 `there are some mismatch from the 'oldFileContent' and 'diff' at line: ${ line } , please make sure the 'oldFileContent' is correct`
469469 ) ;
470470 break ;
471471 }
472472 }
473- for ( const line in this . #newFileDiffLines) {
473+ for ( const line in this . #newFileDiffLines || { } ) {
474474 const diffLine = this . #newFileDiffLines[ line ] ;
475475 const fileLine = this . #newFilePlainLines[ line ] ;
476476 if (
477477 ( this . #newFilePlaceholderLines ? ! this . #newFilePlaceholderLines[ line ] : true ) &&
478- diffLine . text !== fileLine . value
478+ diffLine ? .text !== fileLine ? .value
479479 ) {
480480 console . warn (
481481 `there are some mismatch from the 'newFileContent' and 'diff' at line: ${ line } , please make sure the 'newFileContent' is correct`
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.34 " ,
6+ "version" : " 0.0.35 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
5353 " diff parse"
5454 ],
5555 "dependencies" : {
56- "@git-diff-view/core" : " ^0.0.34 " ,
56+ "@git-diff-view/core" : " ^0.0.35 " ,
5757 "diff" : " ^8.0.2" ,
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.34 " ,
6+ "version" : " 0.0.35 " ,
77 "main" : " index.js" ,
88 "types" : " index.d.ts" ,
99 "files" : [
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.34 " ,
6+ "version" : " 0.0.35 " ,
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.34 " ,
70+ "@git-diff-view/core" : " ^0.0.35 " ,
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 33 "description" : " @git-diff-view/shiki" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.34 " ,
6+ "version" : " 0.0.35 " ,
77 "types" : " index.d.ts" ,
88 "main" : " ./dist/esm/index.mjs" ,
99 "type" : " module" ,
Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/solid" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.7 " ,
6+ "version" : " 0.0.8 " ,
77 "main" : " ./dist/solid-git-diff-view.mjs" ,
88 "type" : " module" ,
99 "types" : " index.d.ts" ,
4141 " solid diff component"
4242 ],
4343 "dependencies" : {
44- "@git-diff-view/core" : " ^0.0.34 " ,
44+ "@git-diff-view/core" : " ^0.0.35 " ,
4545 "@types/hast" : " ^3.0.0" ,
4646 "highlight.js" : " ^11.11.0" ,
4747 "lowlight" : " ^3.3.0" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @git-diff-view/svelte" ,
3- "version" : " 0.0.8 " ,
3+ "version" : " 0.0.9 " ,
44 "scripts" : {
55 "dev" : " vite dev" ,
66 "build" : " svelte-kit sync && svelte-package" ,
3535 "./package.json" : " ./package.json"
3636 },
3737 "dependencies" : {
38- "@git-diff-view/core" : " ^0.0.34 " ,
38+ "@git-diff-view/core" : " ^0.0.35 " ,
3939 "@types/hast" : " ^3.0.0" ,
4040 "highlight.js" : " ^11.11.0" ,
4141 "lowlight" : " ^3.3.0" ,
Original file line number Diff line number Diff line change 33 "description" : " @git-diff-view/utils" ,
44 "author" : " MrWangJustToDo" ,
55 "license" : " MIT" ,
6- "version" : " 0.0.34 " ,
6+ "version" : " 0.0.35 " ,
77 "types" : " index.d.ts" ,
88 "type" : " module" ,
99 "files" : [
You can’t perform that action at this time.
0 commit comments