preconditions 4.0.3 → 4.0.4

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.
@@ -44,7 +44,7 @@ class Preconditions {
44
44
  * @Warning This functionality only works with the 'instance' function which has very poor performance.
45
45
  * @returns Error Validation constructor.
46
46
  */
47
- static constructor() {
47
+ static getConstructor() {
48
48
  return InstanceValidator;
49
49
  }
50
50
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "default": "./lib/preconditions.js"
11
11
  }
12
12
  },
13
- "version": "4.0.3",
13
+ "version": "4.0.4",
14
14
  "description": "Support for Precondition error checking in Node.js.",
15
15
  "homepage": "https://github.com/corybill/preconditions",
16
16
  "bugs": {
@@ -47,7 +47,7 @@
47
47
  "eslint": "^9.39.1",
48
48
  "globals": "^16.5.0",
49
49
  "jsdoc-to-markdown": "^9.1.3",
50
- "maddox": "^4.0.4",
50
+ "maddox": "^5.0.0",
51
51
  "mocha": "^11.7.5"
52
52
  },
53
53
  "overrides": {
package/test.js ADDED
@@ -0,0 +1 @@
1
+ class A { static constructor() {} }