Skip to content
This repository was archived by the owner on Oct 18, 2025. It is now read-only.

Commit 6ad92f1

Browse files
committed
Package bumps
1 parent e7e2efb commit 6ad92f1

File tree

4 files changed

+1747
-2012
lines changed

4 files changed

+1747
-2012
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
orbs:
3-
codecov: codecov/codecov@3.3.0
3+
codecov: codecov/codecov@5.2.1
44
jobs:
55
test:
66
docker:

angular-diff-match-patch.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ angular.module('diff-match-patch', [])
6565
}
6666
}
6767

68-
function diffAttrName(op) {
68+
function diffAttributeName(op) {
6969
switch (op) {
7070
case DIFF_INSERT: {
7171
return 'insert';
@@ -81,10 +81,10 @@ angular.module('diff-match-patch', [])
8181
}
8282
}
8383

84-
function getTagAttrs(options, op, attrs) {
84+
function getTagAttributes(options, op, attributes) {
8585
const tagOptions = {};
8686
const returnValue = [];
87-
const opName = diffAttrName(op);
87+
const opName = diffAttributeName(op);
8888

8989
if (angular.isDefined(options) && angular.isDefined(options.attrs)) {
9090
const attributesFromOptions = options.attrs[opName];
@@ -93,8 +93,8 @@ angular.module('diff-match-patch', [])
9393
}
9494
}
9595

96-
if (angular.isDefined(attrs)) {
97-
angular.merge(tagOptions, attrs);
96+
if (angular.isDefined(attributes)) {
97+
angular.merge(tagOptions, attributes);
9898
}
9999

100100
if (Object.keys(tagOptions).length === 0) {
@@ -111,11 +111,11 @@ angular.module('diff-match-patch', [])
111111
function getHtmlPrefix(op, display, options) {
112112
switch (display) {
113113
case displayType.LINEDIFF: {
114-
return '<div class="' + diffClass(op) + '"><span' + getTagAttrs(options, op, {class: 'noselect'}) + '>' + diffSymbol(op) + '</span>';
114+
return '<div class="' + diffClass(op) + '"><span' + getTagAttributes(options, op, {class: 'noselect'}) + '>' + diffSymbol(op) + '</span>';
115115
}
116116

117117
default: { // case displayType.INSDEL:
118-
return '<' + diffTag(op) + getTagAttrs(options, op) + '>';
118+
return '<' + diffTag(op) + getTagAttributes(options, op) + '>';
119119
}
120120
}
121121
}
@@ -159,7 +159,7 @@ angular.module('diff-match-patch', [])
159159
let intraHtml2;
160160

161161
for (x = 0; x < diffData.length; x++) {
162-
diffData[x][1] = diffData[x][1].replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
162+
diffData[x][1] = diffData[x][1].replaceAll('&', '&amp;').replaceAll('<', '&lt;').replaceAll('>', '&gt;');
163163
}
164164

165165
for (y = 0; y < diffData.length; y++) {
@@ -177,7 +177,7 @@ angular.module('diff-match-patch', [])
177177
} else {
178178
html[y] = createHtmlLines(text, op, options);
179179
}
180-
} else if (typeof excludeOp === 'undefined' || op !== excludeOp) {
180+
} else if (excludeOp === undefined || op !== excludeOp) {
181181
html[y] = getHtmlPrefix(op, display, options) + text + getHtmlSuffix(op, display);
182182
}
183183
}
@@ -212,7 +212,7 @@ angular.module('diff-match-patch', [])
212212
const line = text.slice(lineStart, lineEnd + ((ignoreTrailingNewLines && hasNewLine) ? 0 : 1));
213213
lineStart = lineEnd + 1;
214214

215-
if (Object.prototype.hasOwnProperty.call(lineHash, line)) {
215+
if (Object.hasOwn(lineHash, line)) {
216216
chars += String.fromCharCode(lineHash[line]); // eslint-disable-line unicorn/prefer-code-point
217217
} else {
218218
chars += String.fromCharCode(lineArrayLength); // eslint-disable-line unicorn/prefer-code-point

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"karma-coverage": "2.2.1",
3535
"karma-jasmine": "5.1.0",
3636
"karma-junit-reporter": "2.0.1",
37-
"puppeteer": "24.2.0",
37+
"puppeteer": "24.2.1",
3838
"standard-version": "9.5.0",
39-
"xo": "0.58.0"
39+
"xo": "0.60.0"
4040
},
4141
"xo": {
4242
"plugins": [
@@ -67,5 +67,5 @@
6767
"diff_match_patch"
6868
]
6969
},
70-
"packageManager": "yarn@4.3.1+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774"
70+
"packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
7171
}

0 commit comments

Comments
 (0)