@ctx-core/env 17.1.0 → 17.2.1

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,17 @@
1
1
  # @ctx-core/env
2
2
 
3
+ ## 17.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @ctx-core/nanostores: ^2.2.22 -> ^2.2.23
8
+
9
+ ## 17.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - - missing_env\_\_throw: aliased by throw_missing_env
14
+
3
15
  ## 17.1.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/env",
3
- "version": "17.1.0",
3
+ "version": "17.2.1",
4
4
  "description": "ctx-core env",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "@ctx-core/error": "^11.6.0",
27
27
  "@ctx-core/function": "^21.6.1",
28
- "@ctx-core/nanostores": "^2.2.22",
28
+ "@ctx-core/nanostores": "^2.2.23",
29
29
  "@ctx-core/object": "^24.1.4",
30
30
  "svelte": "^3.55.1"
31
31
  },
32
32
  "devDependencies": {
33
- "c8": "^7.12.0",
33
+ "c8": "^7.13.0",
34
34
  "check-dts": "^0.7.0",
35
35
  "tsx": "^3.12.3",
36
36
  "typescript": "next",
package/src/index.d.ts CHANGED
@@ -3,6 +3,6 @@ export * from './import_meta_env'
3
3
  export * from './is_development__'
4
4
  export * from './is_production__'
5
5
  export * from './is_staging__'
6
+ export * from './missing_env__throw'
6
7
  export * from './NODE_ENV__'
7
- export * from './throw_missing_env'
8
8
  export * from './VERSION__'
package/src/index.js CHANGED
@@ -3,6 +3,6 @@ export * from './import_meta_env/index.js'
3
3
  export * from './is_development__/index.js'
4
4
  export * from './is_production__/index.js'
5
5
  export * from './is_staging__/index.js'
6
+ export * from './missing_env__throw/index.js'
6
7
  export * from './NODE_ENV__/index.js'
7
- export * from './throw_missing_env/index.js'
8
8
  export * from './VERSION__/index.js'
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Throws an error for a missing env variable
3
+ */
4
+ export declare function missing_env__throw(env_name:string):void
5
+ export { missing_env__throw as throw__missing__env }
@@ -2,8 +2,8 @@ import { error__throw } from '@ctx-core/error'
2
2
  /**
3
3
  * Throws an error for a missing env variable
4
4
  */
5
- /** @type {import('throw_missing_env').throw_missing_env} */
6
- export const throw_missing_env = (env_name)=>{
5
+ /** @type {import('missing_env__throw').missing_env__throw} */
6
+ export const 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
@@ -14,4 +14,7 @@ heroku: make sure ${env_name} is set using \`heroku config:set\`
14
14
  type: 'missing_env',
15
15
  })
16
16
  }
17
- export { throw_missing_env as throw__missing__env }
17
+ export {
18
+ missing_env__throw as throw_missing_env,
19
+ missing_env__throw as throw__missing__env,
20
+ }
@@ -1,5 +0,0 @@
1
- /**
2
- * Throws an error for a missing env variable
3
- */
4
- export declare function throw_missing_env(env_name:string):void
5
- export { throw_missing_env as throw__missing__env }