pg-mvc-service 2.0.62 → 2.0.64

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.
@@ -283,7 +283,8 @@ class RequestType extends ReqResType_1.default {
283
283
  case 'map':
284
284
  case 'map?':
285
285
  const mapData = {};
286
- console.log('value', value[key]);
286
+ console.log('value', value);
287
+ console.log('value', key);
287
288
  for (const [mapKey, mapValue] of value[key]) {
288
289
  switch (this.properties[key].mapType) {
289
290
  case 'number':
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AxiosResponse } from "axios";
2
2
  import { Request, Response } from 'express';
3
3
  import { Pool, PoolClient } from 'pg';
4
4
  import { ErrorMessageType, IncomingHttpHeaders } from './src/reqestResponse/RequestType';
5
- import { ArrayType, EnumType, ObjectType, PrimitiveType } from './src/reqestResponse/ReqResType';
5
+ import { ArrayType, EnumType, MapType, ObjectType, PrimitiveType } from './src/reqestResponse/ReqResType';
6
6
 
7
7
  import { MethodType } from './src/Service';
8
8
  export { MethodType } from './src/Service';
@@ -90,7 +90,7 @@ declare module 'pg-mvc-service' {
90
90
  }
91
91
  export function createSwagger(services: Service[], name: string, url: string, params: Array<IParams>): string;
92
92
 
93
- export type PropertyType = PrimitiveType | ObjectType | ArrayType | EnumType;
93
+ export type PropertyType = PrimitiveType | ObjectType | ArrayType | EnumType | MapType;
94
94
 
95
95
  export class RequestType {
96
96
  constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.62",
3
+ "version": "2.0.64",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -292,7 +292,8 @@ export class RequestType extends ReqResType {
292
292
  case 'map':
293
293
  case 'map?':
294
294
  const mapData: {[key: string]: string | number} = {};
295
- console.log('value', value[key]);
295
+ console.log('value', value);
296
+ console.log('value', key);
296
297
  for (const [mapKey, mapValue] of value[key]) {
297
298
  switch (this.properties[key].mapType) {
298
299
  case 'number':