Comparing version 1.6.0 to 1.6.1
@@ -39,3 +39,9 @@ 'use strict'; | ||
Object.defineProperty(this, 'collection', { value: message }); | ||
Error.captureStackTrace(this, ValidationError); | ||
// Fixes captureStackTrace missing on Safari | ||
if (typeof Error.captureStackTrace === 'function') { | ||
Error.captureStackTrace(this, ValidationError); | ||
} else { | ||
this.stack = new Error().stack; | ||
} | ||
} | ||
@@ -42,0 +48,0 @@ |
{ | ||
"name": "obey", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Data modelling and validation library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
36373
867