@scaleway/configuration-loader 2.6.0 → 2.8.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.
- package/CHANGELOG.md +18 -0
- package/dist/path-resolver.js +1 -1
- package/dist/yml-loader.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 2.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fix(oxlint): enable 12 tiny unicorn rules as error (#3573)
|
|
8
|
+
|
|
9
|
+
- fix(oxlint): enable 12 fully-fixed rules as error (#3574) (#3575)
|
|
10
|
+
|
|
11
|
+
- fix(oxlint): enable unicorn/import-style as error (#3553)
|
|
12
|
+
|
|
13
|
+
- fix(oxlint): enable unicorn/text-encoding-identifier-case as error (#3571)
|
|
14
|
+
|
|
15
|
+
## 2.7.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- fix(oxlint): enable eslint/curly as error (#3511)
|
|
20
|
+
|
|
3
21
|
## 2.6.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/path-resolver.js
CHANGED
package/dist/yml-loader.js
CHANGED
|
@@ -30,7 +30,7 @@ var convertYamlToConfiguration = (input) => {
|
|
|
30
30
|
const item = DETECT_ITEM_REGEX.exec(line);
|
|
31
31
|
if (item) {
|
|
32
32
|
if (typeof map[currentSection] !== "object") map[currentSection] = {};
|
|
33
|
-
|
|
33
|
+
map[currentSection][item[1]] = item[2];
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -48,7 +48,7 @@ var convertYamlToConfiguration = (input) => {
|
|
|
48
48
|
* @internal
|
|
49
49
|
*/
|
|
50
50
|
var loadConfigurationFromFile = (filePath) => {
|
|
51
|
-
return convertYamlToConfiguration(readFileSync(filePath, "
|
|
51
|
+
return convertYamlToConfiguration(readFileSync(filePath, "utf8"));
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* Loads configuration from a file (asynchronous).
|
|
@@ -65,7 +65,7 @@ var loadConfigurationFromFile = (filePath) => {
|
|
|
65
65
|
* @public
|
|
66
66
|
*/
|
|
67
67
|
var loadConfigurationFromFileAsync = async (filePath) => {
|
|
68
|
-
return convertYamlToConfiguration(await readFileAsync(filePath, "
|
|
68
|
+
return convertYamlToConfiguration(await readFileAsync(filePath, "utf8"));
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Checks whether a configuration file has secure permissions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/configuration-loader",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Load configuration via file or environment for NodeJS.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@repo/configs": "^0.1.1",
|
|
23
|
-
"@types/node": "26.
|
|
23
|
+
"@types/node": "26.5.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"typecheck": "tsc --noEmit",
|