@push.rocks/qenv 6.1.1 → 6.1.2
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/dist_ts/00_commitinfo_data.js +1 -1
- package/package.json +1 -1
- package/readme.md +7 -10
- package/ts/00_commitinfo_data.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/qenv',
|
|
6
|
-
version: '6.1.
|
|
6
|
+
version: '6.1.2',
|
|
7
7
|
description: 'A module for easily handling environment variables in Node.js projects with support for .yml and .json configuration.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxrQkFBa0I7SUFDeEIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVIQUF1SDtDQUNySSxDQUFBIn0=
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -102,17 +102,14 @@ Qenv loads variables in this order (first found wins):
|
|
|
102
102
|
Store and retrieve complex configuration objects:
|
|
103
103
|
|
|
104
104
|
```typescript
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
database:
|
|
108
|
-
host:
|
|
109
|
-
port: 5432
|
|
110
|
-
options:
|
|
111
|
-
ssl: true
|
|
105
|
+
# In env.yml
|
|
106
|
+
DATABASE_CONFIG:
|
|
107
|
+
database:
|
|
108
|
+
host: localhost
|
|
109
|
+
port: 5432
|
|
110
|
+
options:
|
|
111
|
+
ssl: true
|
|
112
112
|
poolSize: 10
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
113
|
|
|
117
114
|
// Qenv automatically handles base64 encoding
|
|
118
115
|
const dbConfig = await qenv.getEnvVarOnDemandAsObject('DATABASE_CONFIG');
|
package/ts/00_commitinfo_data.ts
CHANGED