cosa
Advanced tools
Comparing version 7.1.2 to 7.1.3
@@ -148,3 +148,3 @@ const joi = require('joi'); | ||
if ((error.code === 11000 || error.message.startsWith('E11000 duplicate key')) && context.transformDuplicateKeyError) { | ||
error = context.transformDuplicateKeyError(error); | ||
error = context.transformDuplicateKeyError.apply(obj, [error]); | ||
} | ||
@@ -169,3 +169,3 @@ throw error; | ||
if ((error.code === 11000 || error.message.startsWith('E11000 duplicate key')) && context.transformDuplicateKeyError) { | ||
error = context.transformDuplicateKeyError(error); | ||
error = context.transformDuplicateKeyError.apply(obj, [error]); | ||
} | ||
@@ -172,0 +172,0 @@ throw error; |
{ | ||
"name": "cosa", | ||
"version": "7.1.2", | ||
"version": "7.1.3", | ||
"description": "Cosa Models for MongoDB", | ||
@@ -51,4 +51,4 @@ "main": "lib/index.js", | ||
"husky": "^8.0.3", | ||
"lint-staged": "~13.2.3", | ||
"chai": "^4.3.7", | ||
"lint-staged": "~15.0.2", | ||
"chai": "^4.3.10", | ||
"chai-as-promised": "^7.1.1", | ||
@@ -55,0 +55,0 @@ "chai-datetime": "^1.8.0", |
67004