@ctx-core/env 16.0.31 → 16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @ctx-core/env
2
2
 
3
+ ## 16.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - svelte: ^3.48.0 -> ^3.49.0
8
+
9
+ ## 16.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - update dependencies
14
+
15
+ ## 16.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - \__ suffix aliased by \$_
20
+
3
21
  ## 16.0.31
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/env",
3
- "version": "16.0.31",
3
+ "version": "16.1.2",
4
4
  "description": "ctx-core env",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -23,18 +23,18 @@
23
23
  "./package.json": "./package.json"
24
24
  },
25
25
  "dependencies": {
26
- "@ctx-core/error": "^11.4.8",
27
- "@ctx-core/function": "^20.8.0",
28
- "@ctx-core/nanostores": "^1.4.0",
29
- "@ctx-core/object": "^22.2.0",
30
- "svelte": "^3.48.0"
26
+ "@ctx-core/error": "^11.5.0",
27
+ "@ctx-core/function": "^20.8.1",
28
+ "@ctx-core/nanostores": "^1.4.1",
29
+ "@ctx-core/object": "^22.2.1",
30
+ "svelte": "^3.49.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "c8": "^7.11.3",
34
34
  "check-dts": "^0.6.7",
35
35
  "tsm": "^2.2.1",
36
36
  "typescript": "next",
37
- "uvu": "^0.5.3"
37
+ "uvu": "^0.5.6"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",
@@ -0,0 +1,7 @@
1
+ import { type WritableAtom_ } from '@ctx-core/nanostores'
2
+ import { type B } from '@ctx-core/object'
3
+ export declare const CACHE_VERSION__:B<WritableAtom_<false|string>>
4
+ export {
5
+ CACHE_VERSION__ as CACHE_VERSION$_,
6
+ CACHE_VERSION__ as b__CACHE_VERSION,
7
+ }
@@ -0,0 +1,10 @@
1
+ import { atom_ } from '@ctx-core/nanostores'
2
+ import { be_ } from '@ctx-core/object'
3
+ /** @type {import('./CACHE_VERSION__').CACHE_VERSION__} */
4
+ export const CACHE_VERSION__ = be_('CACHE_VERSION__', ()=>
5
+ atom_(typeof process === 'object' && process.env.CACHE_VERSION)
6
+ )
7
+ export {
8
+ CACHE_VERSION__ as CACHE_VERSION$_,
9
+ CACHE_VERSION__ as b__CACHE_VERSION,
10
+ }
@@ -0,0 +1,7 @@
1
+ import { type WritableAtom_ } from '@ctx-core/nanostores'
2
+ import { type B } from '@ctx-core/object'
3
+ export declare const NODE_ENV__:B<WritableAtom_<string>>
4
+ export {
5
+ NODE_ENV__ as NODE_ENV$_,
6
+ NODE_ENV__ as b__NODE_ENV,
7
+ }
@@ -0,0 +1,8 @@
1
+ import { atom_ } from '@ctx-core/nanostores'
2
+ import { be_ } from '@ctx-core/object'
3
+ /** @type {import('NODE_ENV__').NODE_ENV__} */
4
+ export const NODE_ENV__ = be_('NODE_ENV__', ()=>atom_(process.env.NODE_ENV))
5
+ export {
6
+ NODE_ENV__ as NODE_ENV$_,
7
+ NODE_ENV__ as b__NODE_ENV,
8
+ }
@@ -0,0 +1,4 @@
1
+ import { type WritableAtom_ } from '@ctx-core/nanostores'
2
+ import { type B } from '@ctx-core/object'
3
+ export declare const VERSION__:B<WritableAtom_<string>>
4
+ export { VERSION__ as VERSION$_ }
@@ -1,10 +1,11 @@
1
1
  import { atom_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
- /** @type {import('VERSION$_').VERSION$_} */
4
- export const VERSION$_ = be_('VERSION$', ()=>
3
+ /** @type {import('VERSION__').VERSION__} */
4
+ export const VERSION__ = be_('VERSION__', ()=>
5
5
  atom_(
6
6
  typeof process === 'object' && (
7
7
  process.env.VERSION || process.env.HEROKU_SLUG_COMMIT
8
8
  )
9
9
  || Math.random().toString())
10
10
  )
11
+ export { VERSION__ as VERSION$_ }
package/src/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from './CACHE_VERSION$_'
2
- export * from './is_development$_'
3
- export * from './is_production$_'
4
- export * from './is_staging$_'
5
- export * from './NODE_ENV$_'
1
+ export * from './CACHE_VERSION__'
2
+ export * from './is_development__'
3
+ export * from './is_production__'
4
+ export * from './is_staging__'
5
+ export * from './NODE_ENV__'
6
6
  export * from './throw_missing_env'
7
- export * from './VERSION$_'
7
+ export * from './VERSION__'
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from './CACHE_VERSION$_.js'
2
- export * from './is_development$_.js'
3
- export * from './is_production$_.js'
4
- export * from './is_staging$_.js'
5
- export * from './NODE_ENV$_.js'
1
+ export * from './CACHE_VERSION__.js'
2
+ export * from './is_development__.js'
3
+ export * from './is_production__.js'
4
+ export * from './is_staging__.js'
5
+ export * from './NODE_ENV__.js'
6
6
  export * from './throw_missing_env.js'
7
- export * from './VERSION$_.js'
7
+ export * from './VERSION__.js'
@@ -0,0 +1,4 @@
1
+ import { type ReadableAtom_ } from '@ctx-core/nanostores'
2
+ import { type B } from '@ctx-core/object'
3
+ export declare const is_development__:B<ReadableAtom_<boolean>>
4
+ export { is_development__ as is_development$_ }
@@ -0,0 +1,11 @@
1
+ import { computed_ } from '@ctx-core/nanostores'
2
+ import { be_ } from '@ctx-core/object'
3
+ import { NODE_ENV__ } from './NODE_ENV__.js'
4
+ /** @type {import('is_development__').is_development__} */
5
+ export const is_development__ = be_('is_development__', ctx=>
6
+ computed_(NODE_ENV__(ctx),
7
+ (NODE_ENV)=>
8
+ NODE_ENV === 'dev' || NODE_ENV === 'development'
9
+ )
10
+ )
11
+ export { is_development__ as is_development$_ }
@@ -0,0 +1,8 @@
1
+ import { type ReadableAtom_ } from '@ctx-core/nanostores'
2
+ import { type B } from '@ctx-core/object'
3
+ export declare const is_production__:B<is_production__T>
4
+ export declare type is_production__T = ReadableAtom_<boolean>;
5
+ export {
6
+ is_production__ as is_production$_,
7
+ is_production__ as b__is__production,
8
+ }
@@ -0,0 +1,14 @@
1
+ import { computed_ } from '@ctx-core/nanostores'
2
+ import { be_ } from '@ctx-core/object'
3
+ import { NODE_ENV__ } from './NODE_ENV__.js'
4
+ /** @type {import('is_production__').is_production__} */
5
+ export const is_production__ = be_('is_production__', ctx=>
6
+ computed_(NODE_ENV__(ctx),
7
+ (NODE_ENV)=>
8
+ NODE_ENV === 'prod' || NODE_ENV === 'production'
9
+ )
10
+ )
11
+ export {
12
+ is_production__ as is_production$_,
13
+ is_production__ as b__is__production,
14
+ }
@@ -0,0 +1,7 @@
1
+ import { type ReadableAtom_ } from '@ctx-core/nanostores'
2
+ import { type B } from '@ctx-core/object'
3
+ export declare const is_staging__:B<ReadableAtom_<boolean>>
4
+ export {
5
+ is_staging__ as is_staging$_,
6
+ is_staging__ as b__is__staging,
7
+ }
@@ -0,0 +1,15 @@
1
+ import { eql_ } from '@ctx-core/function'
2
+ import { computed_ } from '@ctx-core/nanostores'
3
+ import { be_ } from '@ctx-core/object'
4
+ import { NODE_ENV__ } from './NODE_ENV__.js'
5
+ /** @type {import('is_staging__').is_staging__} */
6
+ export const is_staging__ = be_('is_staging__', ctx=>
7
+ computed_(NODE_ENV__(ctx),
8
+ eql_([
9
+ 'staging'
10
+ ]))
11
+ )
12
+ export {
13
+ is_staging__ as is_staging$_,
14
+ is_staging__ as b__is__staging,
15
+ }
@@ -1,5 +0,0 @@
1
- import { WritableAtom_ } from '@ctx-core/nanostores'
2
- import { B } from '@ctx-core/object'
3
- export declare const CACHE_VERSION$_:B<CACHE_VERSION$_T>
4
- export declare type CACHE_VERSION$_T = WritableAtom_<false|string>;
5
- export { CACHE_VERSION$_ as b__CACHE_VERSION, }
@@ -1,7 +0,0 @@
1
- import { atom_ } from '@ctx-core/nanostores'
2
- import { be_ } from '@ctx-core/object'
3
- /** @type {import('./CACHE_VERSION$_').CACHE_VERSION$_} */
4
- export const CACHE_VERSION$_ = be_('CACHE_VERSION$', ()=>
5
- atom_(typeof process === 'object' && process.env.CACHE_VERSION)
6
- )
7
- export { CACHE_VERSION$_ as b__CACHE_VERSION, }
@@ -1,5 +0,0 @@
1
- import { WritableAtom_ } from '@ctx-core/nanostores'
2
- import { B } from '@ctx-core/object'
3
- export declare const NODE_ENV$_:B<NODE_ENV$_T>
4
- export declare type NODE_ENV$_T = WritableAtom_<string>;
5
- export { NODE_ENV$_ as b__NODE_ENV }
package/src/NODE_ENV$_.js DELETED
@@ -1,6 +0,0 @@
1
- import { atom_ } from '@ctx-core/nanostores'
2
- import { be_ } from '@ctx-core/object'
3
- /** @type {import('NODE_ENV$_').NODE_ENV$_} */
4
- export const NODE_ENV$_ = be_('NODE_ENV$', ()=>atom_(process.env.NODE_ENV)
5
- )
6
- export { NODE_ENV$_ as b__NODE_ENV }
@@ -1,4 +0,0 @@
1
- import type { B } from '@ctx-core/object'
2
- import type { WritableAtom_ } from '@ctx-core/nanostores'
3
- export declare const VERSION$_:B<VERSION$_T>
4
- export declare type VERSION$_T = WritableAtom_<string>;
@@ -1,4 +0,0 @@
1
- import { ReadableAtom_ } from '@ctx-core/nanostores'
2
- import { B } from '@ctx-core/object'
3
- export declare const is_development$_:B<is_development$_T>
4
- export declare type is_development$_T = ReadableAtom_<boolean>;
@@ -1,10 +0,0 @@
1
- import { computed_ } from '@ctx-core/nanostores'
2
- import { be_ } from '@ctx-core/object'
3
- import { NODE_ENV$_ } from './NODE_ENV$_.js'
4
- /** @type {import('is_development$_').is_development$_} */
5
- export const is_development$_ = be_('is_development$', ctx=>
6
- computed_(NODE_ENV$_(ctx),
7
- (NODE_ENV)=>
8
- NODE_ENV === 'dev' || NODE_ENV === 'development.js'
9
- )
10
- )
@@ -1,5 +0,0 @@
1
- import { ReadableAtom_ } from '@ctx-core/nanostores'
2
- import { B } from '@ctx-core/object'
3
- export declare const is_production$_:B<is_production$_T>
4
- export declare type is_production$_T = ReadableAtom_<boolean>;
5
- export { is_production$_ as b__is__production }
@@ -1,11 +0,0 @@
1
- import { computed_ } from '@ctx-core/nanostores'
2
- import { be_ } from '@ctx-core/object'
3
- import { NODE_ENV$_ } from './NODE_ENV$_.js'
4
- /** @type {import('is_production$_').is_production$_} */
5
- export const is_production$_ = be_('is_production$', ctx=>
6
- computed_(NODE_ENV$_(ctx),
7
- (NODE_ENV)=>
8
- NODE_ENV === 'prod' || NODE_ENV === 'production.js'
9
- )
10
- )
11
- export { is_production$_ as b__is__production }
@@ -1,5 +0,0 @@
1
- import { ReadableAtom_ } from '@ctx-core/nanostores'
2
- import { B } from '@ctx-core/object'
3
- export declare const is_staging$_:B<is_staging$_T>
4
- export declare type is_staging$_T = ReadableAtom_<boolean>;
5
- export { is_staging$_ as b__is__staging }
@@ -1,12 +0,0 @@
1
- import { eql_ } from '@ctx-core/function'
2
- import { computed_ } from '@ctx-core/nanostores'
3
- import { be_ } from '@ctx-core/object'
4
- import { NODE_ENV$_ } from './NODE_ENV$_.js'
5
- /** @type {import('is_staging$_').is_staging$_} */
6
- export const is_staging$_ = be_('is_staging$', ctx=>
7
- computed_(NODE_ENV$_(ctx),
8
- eql_([
9
- 'staging'
10
- ]))
11
- )
12
- export { is_staging$_ as b__is__staging }