8000 bump: Update dependencies · huggingface/diff2html@27bfd3c · GitHub
[go: up one dir, main page]

Skip to content

Commit 27bfd3c

Browse files
committed
bump: Update dependencies
1 parent 739751a commit 27bfd3c

File tree

3 files changed

+453
-450
lines changed

3 files changed

+453
-450
lines changed

package.json

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -97,62 +97,64 @@
9797
"@types/diff": "4.0.2",
9898
"@types/hogan.js": "3.0.0",
9999
"@types/html-webpack-plugin": "3.2.3",
100-
"@types/jest": "26.0.10",
100+
"@types/jest": "26.0.13",
101101
"@types/mini-css-extract-plugin": "0.9.1",
102102
"@types/mkdirp": "1.0.1",
103-
"@types/node": "14.0.27",
103+
"@types/node": "14.6.4",
104104
"@types/nopt": "3.0.29",
105-
"@typescript-eslint/eslint-plugin": "3.9.0",
106-
"@typescript-eslint/parser": "3.9.0",
105+
"@typescript-eslint/eslint-plugin": "4.0.1",
106+
"@typescript-eslint/parser": "4.0.1",
107107
"autoprefixer": "9.8.6",
108108
"bulma": "^0.9.0",
109109
"clipboard": "2.0.6",
110-
"copy-webpack-plugin": "6.0.3",
111-
"css-loader": "4.2.1",
110+
"copy-webpack-plugin": "6.1.0",
111+
"css-loader": "4.2.2",
112112
"cssnano": "4.1.10",
113-
"eslint": "7.7.0",
113+
"eslint": "7.8.1",
114114
"eslint-config-prettier": "6.11.0",
115115
"eslint-plugin-import": "2.22.0",
116-
"eslint-plugin-jest": "23.20.0",
116+
"eslint-plugin-jest": "24.0.0",
117117
"eslint-plugin-json": "2.1.2",
118118
"eslint-plugin-node": "11.1.0",
119119
"eslint-plugin-optimize-regex": "1.2.0",
120120
"eslint-plugin-promise": "4.2.1",
121121
"eslint-plugin-sonarjs": "0.5.0",
122-
"file-loader": "6.0.0",
122+
"file-loader": "6.1.0",
123123
"handlebars": "4.7.6",
124124
"handlebars-loader": "1.7.1",
125-
"html-webpack-plugin": "4.3.0",
125+
"html-webpack-plugin": "4.4.1",
126126
"husky": "4.2.5",
127127
"image-webpack-loader": "6.0.0",
128128
"is-ci-cli": "2.1.2",
129-
"jest": "26.4.0",
130-
"lint-staged": "10.2.11",
129+
"jest": "26.4.2",
130+
"lint-staged": "10.3.0",
131131
"markdown-toc": "^1.2.0",
132-
"mini-css-extract-plugin": "0.10.0",
132+
"mini-css-extract-plugin": "0.11.0",
133133
"mkdirp": "1.0.4",
134-
"nopt": "4.0.3",
134+
"nopt": "5.0.0",
135135
"postcss": "7.0.32",
136-
"postcss-cli": "7.1.1",
136+
"postcss-cli": "7.1.2",
137137
"postcss-import": "12.0.1",
138138
"postcss-loader": "3.0.0",
139139
"postcss-preset-env": "6.7.0",
140-
"prettier": "2.0.5",
141-
"ts-jest": "26.2.0",
142-
"ts-loader": "8.0.2",
143-
"ts-node": "8.10.2",
144-
"typescript": "3.9.7",
140+
"prettier": "2.1.1",
141+
"ts-jest": "26.3.0",
142+
"ts-loader": "8.0.3",
143+
"ts-node": "9.0.0",
144+
"typescript": "4.0.2",
145145
"url-loader": "4.1.0",
146146
"webpack": "4.44.1",
147147
"webpack-cli": "3.3.12",
148148
"webpack-dev-server": "3.11.0",
149149
"whatwg-fetch": "3.4.0"
150150
},
151151
"resolutions": {
152-
"lodash": ">=4.17.15",
153-
"minimist": ">=1.2.2",
154-
"acorn": ">=7.1.1",
155-
"autolinker": ">=3.0.0"
152+
"lodash": ">=4.17.20",
153+
"minimist": ">=1.2.5",
154+
"acorn": ">=7.4.0",
155+
"autolinker": ">=3.14.1",
156+
"bl": ">=2.2.1",
157+
"decompress": ">=4.2.1"
156158
},
157159
"license": "MIT",
158160
"files": [

src/diff-parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ export function parse(diffInput: string, config: DiffParserConfig = {}): DiffFil
290290
if (
291291
!currentFile || // If we do not have a file yet, we should crete one
292292
(!currentFile.isGitDiff &&
293-
currentFile && // If we already have some file in progress and
294-
line.startsWith(oldFileNameHeader) && // If we get to an old file path header line
293+
currentFile && // If we already have some file in progress and
294+
line.startsWith(oldFileNameHeader) && // If we get to an old file path header line
295295
// And is followed by the new file path header line and the hunk header line
296296
nxtLine.startsWith(newFileNameHeader) &&
297297
afterNxtLine.startsWith(hunkHeaderPrefix))

0 commit comments

Comments
 (0)
0