@ctx-core/env 17.3.3 → 17.3.4

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ctx-core/env
2
2
 
3
+ ## 17.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - missing_env**throw: fix: ∋ error_o**throw
8
+
3
9
  ## 17.3.3
4
10
 
5
11
  ### Patch Changes
package/COMMIT_EDITMSG CHANGED
@@ -1,3 +1,8 @@
1
1
 
2
2
 
3
3
 
4
+
5
+
6
+
7
+
8
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/env",
3
- "version": "17.3.3",
3
+ "version": "17.3.4",
4
4
  "description": "ctx-core env",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -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
- /** @type {import('missing_env__throw').missing_env__throw} */
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
  }