@augment-vir/core 31.67.0 → 31.67.1

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.
@@ -9,8 +9,13 @@ export const mockPrettyDiffTestCases = [
9
9
  {
10
10
  it: 'handles objects',
11
11
  inputs: [
12
- { a: 'hello there', b: 'goodbye now' },
13
- { a: 'hello there' },
12
+ {
13
+ a: 'hello there',
14
+ b: 'goodbye now',
15
+ },
16
+ {
17
+ a: 'hello there',
18
+ },
14
19
  ],
15
20
  },
16
21
  {
@@ -31,7 +31,9 @@ export function ensureErrorAndPrependMessage(maybeError, prependMessage) {
31
31
  return error;
32
32
  }
33
33
  catch {
34
- return new Error(combinedMessage, { cause: maybeError });
34
+ return new Error(combinedMessage, {
35
+ cause: maybeError,
36
+ });
35
37
  }
36
38
  }
37
39
  /**
@@ -8,9 +8,15 @@
8
8
  */
9
9
  export function ensureMinMax({ min, max }) {
10
10
  if (min > max) {
11
- return { min: max, max: min };
11
+ return {
12
+ min: max,
13
+ max: min,
14
+ };
12
15
  }
13
16
  else {
14
- return { min, max };
17
+ return {
18
+ min,
19
+ max,
20
+ };
15
21
  }
16
22
  }
@@ -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({ key: a[0], value: a[1] }, { key: b[0], value: b[1] });
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, { milliseconds: true }).milliseconds;
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.67.0",
3
+ "version": "31.67.1",
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.1.1",
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.0",
39
- "c8": "^10.1.3",
38
+ "@types/node": "^25.3.3",
39
+ "c8": "^11.0.0",
40
40
  "istanbul-smart-text-reporter": "^1.1.5",
41
41
  "typescript": "^5.9.3"
42
42
  },