@augment-vir/core 31.67.0 → 31.68.0
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/dist/augments/diff/pretty-diff.mock.js +7 -2
- package/dist/augments/error/ensure-error.js +3 -1
- package/dist/augments/error/error-message.js +1 -1
- package/dist/augments/min-max.js +8 -2
- package/dist/augments/object/object-sort.js +7 -1
- package/dist/augments/promise/wait.js +3 -1
- package/package.json +4 -4
|
@@ -9,8 +9,13 @@ export const mockPrettyDiffTestCases = [
|
|
|
9
9
|
{
|
|
10
10
|
it: 'handles objects',
|
|
11
11
|
inputs: [
|
|
12
|
-
{
|
|
13
|
-
|
|
12
|
+
{
|
|
13
|
+
a: 'hello there',
|
|
14
|
+
b: 'goodbye now',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
a: 'hello there',
|
|
18
|
+
},
|
|
14
19
|
],
|
|
15
20
|
},
|
|
16
21
|
{
|
package/dist/augments/min-max.js
CHANGED
|
@@ -27,7 +27,13 @@ function recursivelySortObject(original, seen, comparison) {
|
|
|
27
27
|
Object.entries(original)
|
|
28
28
|
.sort((a, b) => {
|
|
29
29
|
if (comparison) {
|
|
30
|
-
return comparison({
|
|
30
|
+
return comparison({
|
|
31
|
+
key: a[0],
|
|
32
|
+
value: a[1],
|
|
33
|
+
}, {
|
|
34
|
+
key: b[0],
|
|
35
|
+
value: b[1],
|
|
36
|
+
});
|
|
31
37
|
}
|
|
32
38
|
else {
|
|
33
39
|
return a[0].localeCompare(b[0]);
|
|
@@ -14,7 +14,9 @@ export function wait(duration) {
|
|
|
14
14
|
const isInfinity = Object.values(duration).some((value) => value === Infinity || value === -Infinity);
|
|
15
15
|
const milliseconds = isInfinity
|
|
16
16
|
? Infinity
|
|
17
|
-
: convertDuration(duration, {
|
|
17
|
+
: convertDuration(duration, {
|
|
18
|
+
milliseconds: true,
|
|
19
|
+
}).milliseconds;
|
|
18
20
|
if (milliseconds !== Infinity && milliseconds !== -Infinity) {
|
|
19
21
|
setTimeout(() => {
|
|
20
22
|
deferredPromise.resolve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/core",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.68.0",
|
|
4
4
|
"description": "Core augment-vir augments. Use @augment-vir/common instead.",
|
|
5
5
|
"homepage": "https://github.com/electrovir/augment-vir",
|
|
6
6
|
"bugs": {
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"test:update": "npm test update"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@date-vir/duration": "^8.
|
|
31
|
+
"@date-vir/duration": "^8.2.0",
|
|
32
32
|
"browser-or-node": "^3.0.0",
|
|
33
33
|
"diff": "^8.0.3",
|
|
34
34
|
"json5": "^2.2.3",
|
|
35
35
|
"type-fest": "^5.4.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^25.3.
|
|
39
|
-
"c8": "^
|
|
38
|
+
"@types/node": "^25.3.5",
|
|
39
|
+
"c8": "^11.0.0",
|
|
40
40
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
41
41
|
"typescript": "^5.9.3"
|
|
42
42
|
},
|