pg-mvc-service 2.0.70 → 2.0.72
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.
|
@@ -141,15 +141,19 @@ class ResponseType extends ReqResType_1.default {
|
|
|
141
141
|
*/
|
|
142
142
|
getMap(keys) {
|
|
143
143
|
const data = this.getData(keys);
|
|
144
|
-
|
|
144
|
+
console.log("getMap: data : ", data);
|
|
145
|
+
if (data === undefined) {
|
|
145
146
|
return undefined;
|
|
146
147
|
}
|
|
147
148
|
const mapProperty = this.getProperty(keys);
|
|
148
149
|
if (mapProperty.type !== 'map' && mapProperty.type !== 'map?') {
|
|
149
150
|
throw new Error(`getMapメソッドでMap型以外が入力された場合はエラー\n keys: ${keys.join(',')}`);
|
|
150
151
|
}
|
|
152
|
+
console.log("getMap: keys : ", keys);
|
|
151
153
|
const mapData = {};
|
|
152
154
|
for (const [key, value] of data) {
|
|
155
|
+
console.log("getMap: key : ", key);
|
|
156
|
+
console.log("getMap: value : ", value);
|
|
153
157
|
switch (mapProperty.mapType) {
|
|
154
158
|
case 'number':
|
|
155
159
|
case 'number?':
|
package/package.json
CHANGED
|
@@ -153,7 +153,8 @@ export class ResponseType extends ReqResType {
|
|
|
153
153
|
private getMap(keys: Array<string | number>) {
|
|
154
154
|
|
|
155
155
|
const data = this.getData(keys);
|
|
156
|
-
|
|
156
|
+
console.log("getMap: data : ", data);
|
|
157
|
+
if (data === undefined) {
|
|
157
158
|
return undefined;
|
|
158
159
|
}
|
|
159
160
|
|
|
@@ -162,8 +163,11 @@ export class ResponseType extends ReqResType {
|
|
|
162
163
|
throw new Error(`getMapメソッドでMap型以外が入力された場合はエラー\n keys: ${keys.join(',')}`);
|
|
163
164
|
}
|
|
164
165
|
|
|
166
|
+
console.log("getMap: keys : ", keys);
|
|
165
167
|
const mapData: {[key: string]: string | number} = {};
|
|
166
168
|
for (const [key, value] of data) {
|
|
169
|
+
console.log("getMap: key : ", key);
|
|
170
|
+
console.log("getMap: value : ", value);
|
|
167
171
|
switch (mapProperty.mapType) {
|
|
168
172
|
case 'number':
|
|
169
173
|
case 'number?':
|