pg-mvc-service 2.0.66 → 2.0.67

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.
@@ -287,19 +287,19 @@ class RequestType extends ReqResType_1.default {
287
287
  switch (this.properties[key].mapType) {
288
288
  case 'number':
289
289
  case 'number?':
290
- if (this.isNumber(this.properties) === false) {
290
+ if (this.isNumber(mapValue) === false) {
291
291
  this.throwInputError("MAP_011", [key], value);
292
292
  }
293
293
  mapData[mapKey] = Number(mapValue);
294
294
  break;
295
295
  case 'string':
296
296
  case 'string?':
297
- switch (typeof value) {
297
+ switch (typeof mapValue) {
298
298
  case 'number':
299
- mapData[mapKey] = value.toString();
299
+ mapData[mapKey] = mapValue.toString();
300
300
  break;
301
301
  case 'string':
302
- mapData[mapKey] = value;
302
+ mapData[mapKey] = mapValue;
303
303
  break;
304
304
  default:
305
305
  this.throwInputError("MAP_012", [key], value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.66",
3
+ "version": "2.0.67",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -296,19 +296,19 @@ export class RequestType extends ReqResType {
296
296
  switch (this.properties[key].mapType) {
297
297
  case 'number':
298
298
  case 'number?':
299
- if (this.isNumber(this.properties) === false) {
299
+ if (this.isNumber(mapValue) === false) {
300
300
  this.throwInputError("MAP_011", [key], value);
301
301
  }
302
302
  mapData[mapKey] = Number(mapValue);
303
303
  break;
304
304
  case 'string':
305
305
  case 'string?':
306
- switch (typeof value) {
306
+ switch (typeof mapValue) {
307
307
  case 'number':
308
- mapData[mapKey] = value.toString();
308
+ mapData[mapKey] = mapValue.toString();
309
309
  break;
310
310
  case 'string':
311
- mapData[mapKey] = value;
311
+ mapData[mapKey] = mapValue;
312
312
  break;
313
313
  default:
314
314
  this.throwInputError("MAP_012", [key], value);