z-schema 5.0.0 → 5.0.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.
- package/dist/ZSchema-browser-min.js +1 -1
- package/dist/ZSchema-browser-min.js.map +1 -1
- package/dist/ZSchema-browser-test.js +3648 -641
- package/dist/ZSchema-browser.js +3380 -414
- package/package.json +2 -2
- package/src/ZSchema.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "z-schema",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=8.0.0"
|
|
6
6
|
},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"lodash.get": "^4.4.2",
|
|
70
70
|
"lodash.isequal": "^4.5.0",
|
|
71
|
-
"validator": "^
|
|
71
|
+
"validator": "^13.6.0"
|
|
72
72
|
},
|
|
73
73
|
"optionalDependencies": {
|
|
74
74
|
"commander": "^2.7.1"
|
package/src/ZSchema.js
CHANGED
|
@@ -188,7 +188,7 @@ ZSchema.prototype.validate = function (json, schema, options, callback) {
|
|
|
188
188
|
|
|
189
189
|
var whatIs = Utils.whatIs(schema);
|
|
190
190
|
if (whatIs !== "string" && whatIs !== "object") {
|
|
191
|
-
var e = new Error("Invalid .validate call - schema must be
|
|
191
|
+
var e = new Error("Invalid .validate call - schema must be a string or object but " + whatIs + " was passed!");
|
|
192
192
|
if (callback) {
|
|
193
193
|
process.nextTick(function () {
|
|
194
194
|
callback(e, false);
|