@scaleway/configuration-loader 1.0.5 → 1.0.6
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 +4 -0
- package/README.md +5 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.0.6 (2025-03-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @scaleway/configuration-loader
|
|
9
|
+
|
|
6
10
|
## [1.0.5](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/configuration-loader@1.0.4...@scaleway/configuration-loader@1.0.5) (2024-05-15)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
This package enables you to load a profile from a configuration file or environment variables.
|
|
4
4
|
|
|
5
5
|
**🔗 Important links:**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
- [Scaleway SDK](./sdk)
|
|
8
|
+
- [Developers website](https://developers.scaleway.com) (API documentation)
|
|
8
9
|
|
|
9
10
|
## Getting Started
|
|
10
11
|
|
|
@@ -27,9 +28,7 @@ However, you might prefer to store these variables in either a configuration fil
|
|
|
27
28
|
**In case of configuration file**:
|
|
28
29
|
|
|
29
30
|
```ts
|
|
30
|
-
import {
|
|
31
|
-
loadProfileFromConfigurationFile,
|
|
32
|
-
} from '@scaleway/configuration-loader'
|
|
31
|
+
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
|
|
33
32
|
|
|
34
33
|
const profile = loadProfileFromConfigurationFile()
|
|
35
34
|
```
|
|
@@ -43,9 +42,7 @@ const profile = loadProfileFromEnvironmentValues({ profileName: 'debug' })
|
|
|
43
42
|
**In case of environment variables**:
|
|
44
43
|
|
|
45
44
|
```ts
|
|
46
|
-
import {
|
|
47
|
-
loadProfileFromEnvironmentValues,
|
|
48
|
-
} from '@scaleway/configuration-loader'
|
|
45
|
+
import { loadProfileFromEnvironmentValues } from '@scaleway/configuration-loader'
|
|
49
46
|
|
|
50
47
|
const profile = loadProfileFromEnvironmentValues()
|
|
51
48
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/configuration-loader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Load configuration via file or environment for NodeJS.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "18.11.18"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "3436da6ff6b394f1000688c996f96c2471b2598a"
|
|
31
31
|
}
|