z-schema 5.0.1 → 5.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.
package/index.d.ts CHANGED
@@ -87,6 +87,8 @@ declare namespace Validator {
87
87
  }
88
88
 
89
89
  declare class Validator {
90
+ public lastReport: Report | undefined;
91
+
90
92
  /**
91
93
  * Register a custom format.
92
94
  *
@@ -152,6 +154,13 @@ declare class Validator {
152
154
  * Basic representation of the Report class -- just enough to support customValidator
153
155
  */
154
156
  declare class Report {
157
+ errors: Validator.SchemaErrorDetail[];
158
+
159
+ /**
160
+ * Returns whether the validation did pass
161
+ */
162
+ isValid(): boolean;
163
+
155
164
  /**
156
165
  * @param errorCode - a string representing the code for the custom error, e.g. INVALID_VALUE_SET
157
166
  * @param errorMessage - string with the message to be returned in the error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-schema",
3
- "version": "5.0.1",
3
+ "version": "5.0.4",
4
4
  "engines": {
5
5
  "node": ">=8.0.0"
6
6
  },
@@ -68,24 +68,24 @@
68
68
  "dependencies": {
69
69
  "lodash.get": "^4.4.2",
70
70
  "lodash.isequal": "^4.5.0",
71
- "validator": "^13.6.0"
71
+ "validator": "^13.7.0"
72
72
  },
73
73
  "optionalDependencies": {
74
- "commander": "^2.7.1"
74
+ "commander": "^2.20.3"
75
75
  },
76
76
  "devDependencies": {
77
- "coveralls": "^3.0.0",
78
- "grunt": "^1.0.1",
79
- "grunt-browserify": "^5.2.0",
80
- "grunt-cli": "^1.2.0",
77
+ "coveralls": "^3.1.1",
78
+ "grunt": "^1.4.1",
79
+ "grunt-browserify": "^5.3.0",
80
+ "grunt-cli": "^1.4.3",
81
81
  "grunt-contrib-copy": "^1.0.0",
82
- "grunt-contrib-jasmine": "^1.1.0",
83
- "grunt-contrib-jshint": "^2.0.0",
84
- "grunt-contrib-uglify": "^3.1.0",
82
+ "grunt-contrib-jasmine": "^1.2.0",
83
+ "grunt-contrib-jshint": "^2.1.0",
84
+ "grunt-contrib-uglify": "^3.4.0",
85
85
  "grunt-jscs": "^3.0.1",
86
86
  "grunt-lineending": "^1.0.0",
87
87
  "jasmine-node": "^1.14.5",
88
- "jasmine-reporters": "^2.2.1",
89
- "remapify": "^2.1.0"
88
+ "jasmine-reporters": "^2.5.0",
89
+ "remapify": "^2.2.0"
90
90
  }
91
91
  }