@smithy/shared-ini-file-loader 2.0.13 → 2.1.0

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.
@@ -26,9 +26,10 @@ const parseIni = (iniData) => {
26
26
  if (value === "") {
27
27
  currentSubSection = name;
28
28
  }
29
- else if (currentSubSection === undefined) {
29
+ else {
30
30
  map[currentSection] = map[currentSection] || {};
31
- map[currentSection][name] = value;
31
+ const key = currentSubSection ? `${currentSubSection}.${name}` : name;
32
+ map[currentSection][key] = value;
32
33
  }
33
34
  }
34
35
  }
@@ -23,9 +23,10 @@ export const parseIni = (iniData) => {
23
23
  if (value === "") {
24
24
  currentSubSection = name;
25
25
  }
26
- else if (currentSubSection === undefined) {
26
+ else {
27
27
  map[currentSection] = map[currentSection] || {};
28
- map[currentSection][name] = value;
28
+ const key = currentSubSection ? `${currentSubSection}.${name}` : name;
29
+ map[currentSection][key] = value;
29
30
  }
30
31
  }
31
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "2.0.13",
3
+ "version": "2.1.0",
4
4
  "dependencies": {
5
5
  "@smithy/types": "^2.3.4",
6
6
  "tslib": "^2.5.0"