@ctx-core/env 16.3.1 → 17.0.0

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.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - ImportMetaEnv: [key:string]:string
8
+
9
+ ## 16.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - - import*meta_env*: ∋ import_meta_env\_\_ensure
14
+
3
15
  ## 16.3.1
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/env",
3
- "version": "16.3.1",
3
+ "version": "17.0.0",
4
4
  "description": "ctx-core env",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -1,3 +1,4 @@
1
+ export function import_meta_env_():ImportMetaEnv
1
2
  export function import_meta_env__ensure():ImportMetaEnv
2
3
  declare global {
3
4
  interface ImportMeta {
@@ -5,5 +6,5 @@ declare global {
5
6
  }
6
7
  }
7
8
  interface ImportMetaEnv {
8
- [key:string]:any;
9
+ [key:string]:string
9
10
  }
@@ -1,3 +1,6 @@
1
+ export function import_meta_env_() {
2
+ return import_meta_env__ensure()
3
+ }
1
4
  export function import_meta_env__ensure() {
2
5
  if (!import.meta.env) {
3
6
  Object.assign(import.meta, {
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './CACHE_VERSION__'
2
- export * from './import_meta_env__ensure'
2
+ export * from './import_meta_env'
3
3
  export * from './is_development__'
4
4
  export * from './is_production__'
5
5
  export * from './is_staging__'
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './CACHE_VERSION__/index.js'
2
- export * from './import_meta_env__ensure/index.js'
2
+ 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'