@augment-vir/assert 31.30.1 → 31.31.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.
@@ -188,7 +188,7 @@ export const promiseGuards = {
188
188
  * - {@link check.isPromise} : the more precise check.
189
189
  */
190
190
  isPromiseLike(actual) {
191
- return !!(actual instanceof Promise ||
191
+ return (actual instanceof Promise ||
192
192
  (actual &&
193
193
  typeof actual === 'object' &&
194
194
  'then' in actual &&
@@ -70,7 +70,7 @@ export const regexpGuards = {
70
70
  * - {@link check.mismatches} : the opposite check.
71
71
  */
72
72
  matches(actual, expected) {
73
- return !!expected.test(actual);
73
+ return expected.test(actual);
74
74
  },
75
75
  /**
76
76
  * Checks that a string (first input, `actual`) does _not_ match a RegExp (second input,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/assert",
3
- "version": "31.30.1",
3
+ "version": "31.31.0",
4
4
  "description": "A collection of assertions for test and production code alike.",
5
5
  "keywords": [
6
6
  "augment",
@@ -42,8 +42,8 @@
42
42
  "test:update": "npm test"
43
43
  },
44
44
  "dependencies": {
45
- "@augment-vir/core": "^31.30.1",
46
- "@date-vir/duration": "^7.3.2",
45
+ "@augment-vir/core": "^31.31.0",
46
+ "@date-vir/duration": "^7.4.0",
47
47
  "deep-eql": "^5.0.2",
48
48
  "expect-type": "^1.2.2",
49
49
  "type-fest": "^4.41.0"
@@ -57,7 +57,7 @@
57
57
  "@web/test-runner-visual-regression": "^0.10.0",
58
58
  "c8": "^10.1.3",
59
59
  "istanbul-smart-text-reporter": "^1.1.5",
60
- "typescript": "^5.8.3"
60
+ "typescript": "^5.9.2"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=22"