@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 CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.3.3 [08-07-2024]
3
+
4
+ * changes for adding member
5
+
6
+ See merge request itentialopensource/adapters/adapter-aws_cloudformation!18
7
+
8
+ ---
9
+
2
10
  ## 0.3.2 [08-07-2024]
3
11
 
4
12
  * Changes made at 2024.08.06_21:08PM
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].substring(0, 1).toUpperCase() + objKeys[o].substring(1).toLowerCase();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-aws_cloudformation",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "This adapter integrates with system described as: Aws_cloudformation.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
Binary file
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.10",
2
+ "version": "0.3.2",
3
3
  "configLines": 13223,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 11578,