diff2html 3.4.55 → 3.4.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diff2html",
3
- "version": "3.4.55",
3
+ "version": "3.4.58",
4
4
  "homepage": "https://diff2html.xyz",
5
5
  "description": "Fast Diff to colorized HTML",
6
6
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "git://github.com/rtfpessoa/diff2html.git"
29
+ "url": "git+https://github.com/rtfpessoa/diff2html.git"
30
30
  },
31
31
  "bugs": {
32
32
  "url": "https://www.github.com/rtfpessoa/diff2html/issues"
@@ -39,8 +39,8 @@
39
39
  "lint:check": "eslint",
40
40
  "lint:fix": "eslint --fix",
41
41
  "prettier": "prettier --ignore-path .gitignore '**/*.+(js|jsx|ts|tsx|json|css|html|md|mdx)'",
42
- "format:check": "npm run prettier --check",
43
- "format:fix": "npm run prettier --write",
42
+ "format:check": "npm run prettier -- --check",
43
+ "format:fix": "npm run prettier -- --write",
44
44
  "build": "npm run build:css && npm run build:templates && npm run build:commonjs && npm run build:esm && npm run build:bundles && npm run build:website",
45
45
  "build:commonjs": "rm -rf lib; tsc -p tsconfig.json -m CommonJS --outDir lib",
46
46
  "build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m ESNext --outDir lib-esm",
@@ -81,60 +81,58 @@
81
81
  ]
82
82
  },
83
83
  "dependencies": {
84
- "diff": "^7.0.0",
84
+ "diff": "^8.0.3",
85
85
  "@profoundlogic/hogan": "^3.0.4"
86
86
  },
87
87
  "optionalDependencies": {
88
- "highlight.js": "11.9.0"
88
+ "highlight.js": "11.11.1"
89
89
  },
90
90
  "devDependencies": {
91
- "prettier-2": "npm:prettier@^2",
92
- "@eslint/js": "^9.17.0",
93
- "@eslint/json": "^0.9.0",
94
- "@types/diff": "^6.0.0",
91
+ "prettier-2": "npm:prettier@^3",
92
+ "@eslint/js": "^9.39.2",
93
+ "@eslint/json": "^1.0.0",
95
94
  "@types/hogan.js": "3.0.5",
96
- "@types/jest": "^29.5.14",
97
- "@types/node": "^22.10.2",
95
+ "@types/jest": "^30.0.0",
96
+ "@types/node": "^25.1.0",
98
97
  "@types/nopt": "3.0.32",
99
- "all-contributors-cli": "^6.24.0",
100
- "autoprefixer": "^10.4.20",
101
- "bulma": "^1.0.2",
98
+ "all-contributors-cli": "^6.26.1",
99
+ "autoprefixer": "^10.4.24",
100
+ "bulma": "^1.0.4",
102
101
  "clipboard": "2.0.11",
103
- "copy-webpack-plugin": "^12.0.2",
104
- "css-loader": "^7.1.2",
105
- "cssnano": "^7.0.6",
106
- "eslint": "^9.17.0",
107
- "eslint-plugin-jest": "28.10.0",
102
+ "copy-webpack-plugin": "^13.0.1",
103
+ "css-loader": "^7.1.3",
104
+ "cssnano": "^7.1.2",
105
+ "eslint": "^9.39.2",
106
+ "eslint-plugin-jest": "29.12.1",
108
107
  "eslint-plugin-promise": "^7.2.1",
109
108
  "file-loader": "6.2.0",
110
- "globals": "^15.14.0",
109
+ "globals": "^17.2.0",
111
110
  "handlebars": "4.7.8",
112
111
  "handlebars-loader": "1.7.3",
113
- "html-webpack-plugin": "^5.6.3",
112
+ "html-webpack-plugin": "^5.6.6",
114
113
  "husky": "^9.1.7",
115
- "image-webpack-loader": "8.1.0",
116
114
  "is-ci-cli": "2.2.0",
117
- "jest": "29.7.0",
118
- "lint-staged": "^15.2.11",
115
+ "jest": "30.2.0",
116
+ "lint-staged": "^16.2.7",
119
117
  "markdown-toc": "^1.2.0",
120
- "mini-css-extract-plugin": "^2.9.2",
118
+ "mini-css-extract-plugin": "^2.10.0",
121
119
  "mkdirp": "3.0.1",
122
- "nopt": "^8.0.0",
123
- "postcss": "^8.4.49",
124
- "postcss-cli": "11.0.0",
125
- "postcss-import": "^16.1.0",
126
- "postcss-loader": "^8.1.1",
127
- "postcss-preset-env": "^10.1.2",
128
- "prettier": "^3.4.2",
129
- "ts-jest": "^29.2.5",
130
- "ts-loader": "9.5.1",
120
+ "nopt": "^9.0.0",
121
+ "postcss": "^8.5.6",
122
+ "postcss-cli": "11.0.1",
123
+ "postcss-import": "^16.1.1",
124
+ "postcss-loader": "^8.2.0",
125
+ "postcss-preset-env": "^11.1.2",
126
+ "prettier": "^3.8.1",
127
+ "ts-jest": "^29.4.6",
128
+ "ts-loader": "9.5.4",
131
129
  "ts-node": "10.9.2",
132
- "typescript": "^5.7.2",
133
- "typescript-eslint": "^8.18.2",
130
+ "typescript": "^5.9.3",
131
+ "typescript-eslint": "^8.54.0",
134
132
  "url-loader": "4.1.1",
135
- "webpack": "^5.97.1",
133
+ "webpack": "^5.104.1",
136
134
  "webpack-cli": "^6.0.1",
137
- "webpack-dev-server": "^5.2.0",
135
+ "webpack-dev-server": "^5.2.3",
138
136
  "whatwg-fetch": "3.6.20"
139
137
  },
140
138
  "resolutions": {
@@ -155,6 +153,7 @@
155
153
  "files": [
156
154
  "bundles",
157
155
  "lib",
158
- "lib-esm"
156
+ "lib-esm",
157
+ "typings"
159
158
  ]
160
159
  }
@@ -0,0 +1,3 @@
1
+ declare module 'merge' {
2
+ export function recursive(clone: boolean, ...items: object[]): object;
3
+ }
@@ -0,0 +1,52 @@
1
+ declare module '@profoundlogic/hogan' {
2
+ export interface Context {
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
+ [key: string]: any;
5
+ }
6
+
7
+ export interface SectionTags {
8
+ o: string;
9
+ c: string;
10
+ }
11
+
12
+ export interface HoganOptions {
13
+ asString?: boolean | undefined;
14
+ sectionTags?: readonly SectionTags[] | undefined;
15
+ delimiters?: string | undefined;
16
+ disableLambda?: boolean | undefined;
17
+ }
18
+
19
+ export interface Token {
20
+ tag: string;
21
+ otag?: string | undefined;
22
+ ctag?: string | undefined;
23
+ i?: number | undefined;
24
+ n?: string | undefined;
25
+ text?: string | undefined;
26
+ }
27
+
28
+ export interface Leaf extends Token {
29
+ end: number;
30
+ nodes: Token[];
31
+ }
32
+
33
+ export type Tree = Leaf[];
34
+
35
+ export interface Partials {
36
+ [symbol: string]: HoganTemplate;
37
+ }
38
+
39
+ export class HoganTemplate {
40
+ render(context: Context, partials?: Partials, indent?: string): string;
41
+ }
42
+
43
+ export { HoganTemplate as Template, HoganTemplate as template };
44
+
45
+ export function compile(text: string, options?: HoganOptions & { asString: false }): HoganTemplate;
46
+ export function compile(text: string, options?: HoganOptions & { asString: true }): string;
47
+ export function compile(text: string, options?: HoganOptions): HoganTemplate | string;
48
+
49
+ export function scan(text: string, delimiters?: string): Token[];
50
+
51
+ export function parse(tokens: readonly Token[], text?: undefined, options?: HoganOptions): Tree;
52
+ }