@itentialopensource/adapter-aws_cloudformation 0.3.2 → 0.3.3
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.
- package/CHANGELOG.md +8 -0
- package/adapter.js +4 -4
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +1 -1
package/CHANGELOG.md
CHANGED
package/adapter.js
CHANGED
|
@@ -36,19 +36,19 @@ function processInArray(inArray, currentParams, key) {
|
|
|
36
36
|
for (let i = 0; i < inArray.length; i += 1) {
|
|
37
37
|
// are we dealing with just data
|
|
38
38
|
if (typeof inArray[i] === 'string' || typeof inArray[i] === 'number' || typeof inArray[i] === 'boolean') {
|
|
39
|
-
currentParams[`${key}.${i + 1}`] = inArray[i];
|
|
39
|
+
currentParams[`${key}.member.${i + 1}`] = inArray[i];
|
|
40
40
|
} else if (typeof inArray[i] === 'object') {
|
|
41
41
|
// got an object - need to add keys and values
|
|
42
42
|
const objKeys = Object.keys(inArray[i]);
|
|
43
43
|
|
|
44
44
|
for (let o = 0; o < objKeys.length; o += 1) {
|
|
45
|
-
const thisKey = objKeys[o]
|
|
45
|
+
const thisKey = objKeys[o]; // Assume we get from data with proper casing
|
|
46
46
|
const thisValue = inArray[i][objKeys[o]];
|
|
47
47
|
|
|
48
48
|
if (Array.isArray(thisValue)) {
|
|
49
|
-
processInArray(thisValue, currentParams, `${key}.${i + 1}.${thisKey}`);
|
|
49
|
+
processInArray(thisValue, currentParams, `${key}.member.${i + 1}.${thisKey}`);
|
|
50
50
|
} else {
|
|
51
|
-
currentParams[`${key}.${i + 1}.${thisKey}`] = thisValue;
|
|
51
|
+
currentParams[`${key}.member.${i + 1}.${thisKey}`] = thisValue;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
package/package.json
CHANGED
|
Binary file
|
package/report/adapterInfo.json
CHANGED