@ctx-core/env 17.3.3 → 17.3.5
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 +17 -0
- package/package.json +5 -5
- package/src/missing_env__throw/index.js +3 -4
- package/COMMIT_EDITMSG +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ctx-core/env
|
|
2
2
|
|
|
3
|
+
## 17.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- version bump
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @ctx-core/error@12.3.42
|
|
10
|
+
- @ctx-core/function@21.20.1
|
|
11
|
+
- @ctx-core/nanostores@6.0.8
|
|
12
|
+
- @ctx-core/object@28.0.7
|
|
13
|
+
|
|
14
|
+
## 17.3.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- missing_env**throw: fix: ∋ error_o**throw
|
|
19
|
+
|
|
3
20
|
## 17.3.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/env",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.5",
|
|
4
4
|
"description": "ctx-core env",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"./package.json": "./package.json"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ctx-core/error": "^12.3.
|
|
27
|
-
"@ctx-core/function": "^21.20.
|
|
28
|
-
"@ctx-core/nanostores": "^6.0.
|
|
29
|
-
"@ctx-core/object": "^28.0.
|
|
26
|
+
"@ctx-core/error": "^12.3.42",
|
|
27
|
+
"@ctx-core/function": "^21.20.1",
|
|
28
|
+
"@ctx-core/nanostores": "^6.0.8",
|
|
29
|
+
"@ctx-core/object": "^28.0.7"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"c8": "^8.0.1",
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { error_o__throw } from '@ctx-core/error'
|
|
2
2
|
/**
|
|
3
3
|
* Throws an error for a missing env variable
|
|
4
|
+
* @param {string}env_name
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
export const missing_env__throw = env_name=>{
|
|
6
|
+
export function missing_env__throw(env_name) {
|
|
7
7
|
const error_message = `
|
|
8
8
|
${env_name} environment variable not set.
|
|
9
9
|
dev: make sure ${env_name} is set in your .env file
|
|
10
10
|
heroku: make sure ${env_name} is set using \`heroku config:set\`
|
|
11
11
|
`.trim()
|
|
12
|
-
error_o__throw({
|
|
13
|
-
error_message,
|
|
12
|
+
error_o__throw(error_message, {
|
|
14
13
|
type: 'missing_env',
|
|
15
14
|
})
|
|
16
15
|
}
|
package/COMMIT_EDITMSG
DELETED