objection 3.1.0 → 3.1.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.
@@ -36,8 +36,11 @@ class AjvValidator extends Validator {
36
36
  self.cache = new Map();
37
37
 
38
38
  const setupAjv = (ajv) => {
39
- addFormats(ajv);
40
39
  conf.onCreateAjv(ajv);
40
+ // Only add AJV formats if they weren't added in user-space already
41
+ if (!ajv.formats['date-time']) {
42
+ addFormats(ajv);
43
+ }
41
44
  };
42
45
 
43
46
  setupAjv(self.ajv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "objection",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "An SQL-friendly ORM for Node.js",
5
5
  "main": "lib/objection.js",
6
6
  "license": "MIT",