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