@itentialopensource/adapter-aws_cloudformation 0.3.2 → 0.3.4

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,20 @@
1
1
 
2
+ ## 0.3.4 [08-14-2024]
3
+
4
+ * Changes made at 2024.08.14_19:25PM
5
+
6
+ See merge request itentialopensource/adapters/adapter-aws_cloudformation!19
7
+
8
+ ---
9
+
10
+ ## 0.3.3 [08-07-2024]
11
+
12
+ * changes for adding member
13
+
14
+ See merge request itentialopensource/adapters/adapter-aws_cloudformation!18
15
+
16
+ ---
17
+
2
18
  ## 0.3.2 [08-07-2024]
3
19
 
4
20
  * 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/metadata.json CHANGED
@@ -72,7 +72,9 @@
72
72
  "link": "https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/Welcome.html",
73
73
  "public": true
74
74
  }
75
- ]
75
+ ],
76
+ "workshopLinks": [],
77
+ "workshopHomePage": "https://www.itential.com/get-started/"
76
78
  },
77
79
  "relatedItems": {
78
80
  "adapters": [],
@@ -84,5 +86,6 @@
84
86
  },
85
87
  "supportLevel": [
86
88
  "community"
87
- ]
89
+ ],
90
+ "techAlliance": false
88
91
  }
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.4",
4
4
  "description": "This adapter integrates with system described as: Aws_cloudformation.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
@@ -58,12 +58,12 @@
58
58
  "acorn": "^8.12.1",
59
59
  "ajv": "^8.17.1",
60
60
  "aws4": "^1.9.0",
61
- "axios": "^1.7.2",
61
+ "axios": "^1.7.4",
62
62
  "commander": "^11.0.0",
63
63
  "dns-lookup-promise": "^1.0.4",
64
64
  "fs-extra": "^11.2.0",
65
65
  "json-query": "^2.2.2",
66
- "mocha": "^10.7.0",
66
+ "mocha": "^10.7.3",
67
67
  "mocha-param": "^2.0.1",
68
68
  "mongodb": "^4.16.0",
69
69
  "ping": "^0.4.4",
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,
@@ -315,10 +315,10 @@ describe('[unit] AwsCloudFormation Adapter Test', () => {
315
315
  assert.notEqual(null, packageDotJson.dependencies);
316
316
  assert.notEqual('', packageDotJson.dependencies);
317
317
  assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
318
- assert.equal('^1.7.2', packageDotJson.dependencies.axios);
318
+ assert.equal('^1.7.4', packageDotJson.dependencies.axios);
319
319
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
320
320
  assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
321
- assert.equal('^10.7.0', packageDotJson.dependencies.mocha);
321
+ assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
322
322
  assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
323
323
  assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
324
  assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);