pg-mvc-service 2.0.96 → 2.0.97

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.
@@ -219,7 +219,7 @@ class RequestType extends ReqResType_1.default {
219
219
  };
220
220
  let errorMessage = list[code];
221
221
  const property = this.getProperty(keys);
222
- switch (property.type) {
222
+ switch (property === null || property === void 0 ? void 0 : property.type) {
223
223
  case 'enum':
224
224
  case 'enum?':
225
225
  errorMessage = errorMessage.replace('{enums}', Object.keys((_a = property.enums) !== null && _a !== void 0 ? _a : '').join(','));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.96",
3
+ "version": "2.0.97",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -235,7 +235,7 @@ export class RequestType extends ReqResType {
235
235
 
236
236
  let errorMessage = list[code];
237
237
  const property = this.getProperty(keys);
238
- switch (property.type) {
238
+ switch (property?.type) {
239
239
  case 'enum':
240
240
  case 'enum?':
241
241
  errorMessage = errorMessage.replace('{enums}', Object.keys(property.enums ?? '').join(','));