pg-mvc-service 2.0.75 → 2.0.76

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.
@@ -457,7 +457,6 @@ class RequestType extends ReqResType_1.default {
457
457
  case 'map':
458
458
  case 'map?':
459
459
  const mapData = {};
460
- console.log("amp-value", values[i]);
461
460
  for (const [mapKey, mapValue] of Object.entries(values[i])) {
462
461
  switch (property.item.mapType) {
463
462
  case 'number':
@@ -609,23 +608,23 @@ class RequestType extends ReqResType_1.default {
609
608
  }
610
609
  break;
611
610
  case 'bool':
612
- switch (typeof value) {
611
+ switch (typeof mapValue) {
613
612
  case 'boolean':
614
- mapData[mapKey] = value;
613
+ mapData[mapKey] = mapValue;
615
614
  case 'number':
616
- if (value !== 0 && value !== 1) {
617
- this.throwInputError("MAP_13", keys, value);
615
+ if (mapValue !== 0 && mapValue !== 1) {
616
+ this.throwInputError("MAP_13", keys, mapValue);
618
617
  }
619
- mapData[mapKey] = value === 1;
618
+ mapData[mapKey] = mapValue === 1;
620
619
  break;
621
620
  case 'string':
622
- if (value !== 'true' && value !== 'false') {
623
- this.throwInputError("MAP_14", keys, value);
621
+ if (mapValue !== 'true' && mapValue !== 'false') {
622
+ this.throwInputError("MAP_14", keys, mapValue);
624
623
  }
625
- mapData[mapKey] = value === 'true';
624
+ mapData[mapKey] = mapValue === 'true';
626
625
  break;
627
626
  default:
628
- this.throwInputError("MAP_15", keys, value);
627
+ this.throwInputError("MAP_15", keys, mapValue);
629
628
  }
630
629
  break;
631
630
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.75",
3
+ "version": "2.0.76",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -477,7 +477,6 @@ export class RequestType extends ReqResType {
477
477
  case 'map':
478
478
  case 'map?':
479
479
  const mapData: {[key: string]: string | number | boolean} = {};
480
- console.log("amp-value", values[i]);
481
480
  for (const [mapKey, mapValue] of Object.entries(values[i])) {
482
481
  switch (property.item.mapType) {
483
482
  case 'number':
@@ -633,23 +632,23 @@ export class RequestType extends ReqResType {
633
632
  }
634
633
  break;
635
634
  case 'bool':
636
- switch (typeof value) {
635
+ switch (typeof mapValue) {
637
636
  case 'boolean':
638
- mapData[mapKey] = value;
637
+ mapData[mapKey] = mapValue;
639
638
  case 'number':
640
- if (value !== 0 && value !== 1) {
641
- this.throwInputError("MAP_13", keys, value);
639
+ if (mapValue !== 0 && mapValue !== 1) {
640
+ this.throwInputError("MAP_13", keys, mapValue);
642
641
  }
643
- mapData[mapKey] = value === 1;
642
+ mapData[mapKey] = mapValue === 1;
644
643
  break;
645
644
  case 'string':
646
- if (value !== 'true' && value !== 'false') {
647
- this.throwInputError("MAP_14", keys, value);
645
+ if (mapValue !== 'true' && mapValue !== 'false') {
646
+ this.throwInputError("MAP_14", keys, mapValue);
648
647
  }
649
- mapData[mapKey] = value === 'true';
648
+ mapData[mapKey] = mapValue === 'true';
650
649
  break;
651
650
  default:
652
- this.throwInputError("MAP_15", keys, value);
651
+ this.throwInputError("MAP_15", keys, mapValue);
653
652
  }
654
653
  break;
655
654
  }