hinted-tree-merger 6.2.7 → 6.2.9
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/README.md +0 -1
- package/package.json +7 -6
- package/src/util.mjs +10 -9
- package/types/util.d.mts +2 -1
package/README.md
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
[](https://github.com/prettier/prettier)
|
|
9
9
|
[](http://commitizen.github.io/cz-cli/)
|
|
10
10
|
[](https://snyk.io/test/github/arlac77/hinted-tree-merger)
|
|
11
|
-
[](https://coveralls.io/github/arlac77/hinted-tree-merger)
|
|
12
11
|
|
|
13
12
|
# hinted-tree-merger
|
|
14
13
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hinted-tree-merger",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
7
7
|
},
|
|
8
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
|
|
8
9
|
"types": "./types/index.d.mts",
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
@@ -40,15 +41,15 @@
|
|
|
40
41
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"ava": "^6.
|
|
44
|
-
"browser-ava": "^2.3.
|
|
44
|
+
"ava": "^6.4.1",
|
|
45
|
+
"browser-ava": "^2.3.47",
|
|
45
46
|
"c8": "^10.1.3",
|
|
46
47
|
"documentation": "^14.0.3",
|
|
47
|
-
"semantic-release": "^
|
|
48
|
-
"typescript": "^5.
|
|
48
|
+
"semantic-release": "^25.0.2",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
49
50
|
},
|
|
50
51
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
52
|
+
"node": ">=24.11.1"
|
|
52
53
|
},
|
|
53
54
|
"repository": {
|
|
54
55
|
"type": "git",
|
package/src/util.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
OVERWRITE_HINT_REGEX
|
|
5
5
|
} from "./hint.mjs";
|
|
6
6
|
|
|
7
|
-
export function nullAction(options,hint) {}
|
|
7
|
+
export function nullAction(options, hint) {}
|
|
8
8
|
|
|
9
9
|
export function asArray(a) {
|
|
10
10
|
return Array.isArray(a) ? a : a === undefined ? [] : [a];
|
|
@@ -293,7 +293,7 @@ export function indexFor(b, i, a) {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
function normalizeValue(value, hint) {
|
|
296
|
-
if(typeof
|
|
296
|
+
if (typeof value === "string" && hint.normalizeValue) {
|
|
297
297
|
return value.replace(new RegExp(hint.normalizeValue), "");
|
|
298
298
|
}
|
|
299
299
|
return value;
|
|
@@ -339,15 +339,16 @@ export function sortObjectsByKeys(source, compare) {
|
|
|
339
339
|
return sorted;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @param {any} a
|
|
345
|
+
* @param {any} b
|
|
346
|
+
* @param {Array<RegExp|string>} definedOrder
|
|
347
|
+
*/
|
|
347
348
|
export function compareWithDefinedOrder(a, b, definedOrder) {
|
|
348
349
|
/**
|
|
349
|
-
*
|
|
350
|
-
* @param {any} value
|
|
350
|
+
*
|
|
351
|
+
* @param {any} value
|
|
351
352
|
* @returns {number}
|
|
352
353
|
*/
|
|
353
354
|
function matchingIndex(value) {
|
package/types/util.d.mts
CHANGED
|
@@ -50,5 +50,6 @@ export function sortObjectsByKeys(source: any, compare: any): any;
|
|
|
50
50
|
*
|
|
51
51
|
* @param {any} a
|
|
52
52
|
* @param {any} b
|
|
53
|
+
* @param {Array<RegExp|string>} definedOrder
|
|
53
54
|
*/
|
|
54
|
-
export function compareWithDefinedOrder(a: any, b: any, definedOrder:
|
|
55
|
+
export function compareWithDefinedOrder(a: any, b: any, definedOrder: Array<RegExp | string>): number;
|