@ctx-core/env 17.4.15 → 17.4.20
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/CACHE_VERSION/index.d.ts +1 -1
- package/CACHE_VERSION/index.js +4 -2
- package/NODE_ENV/index.d.ts +2 -2
- package/NODE_ENV/index.js +5 -3
- package/VERSION/index.d.ts +2 -2
- package/VERSION/index.js +8 -8
- package/is_development/index.d.ts +2 -2
- package/is_development/index.js +3 -2
- package/is_production/index.js +3 -2
- package/is_staging/index.d.ts +7 -5
- package/is_staging/index.js +3 -2
- package/package.json +6 -6
package/CACHE_VERSION/index.d.ts
CHANGED
package/CACHE_VERSION/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { atom_, be_atom_triple_ } from '@ctx-core/nanostores'
|
|
2
2
|
import { import_meta_env_ } from '../import_meta_env/index.js'
|
|
3
|
+
/** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
|
|
3
4
|
export const [
|
|
4
5
|
CACHE_VERSION$_,
|
|
5
6
|
CACHE_VERSION_,
|
|
6
7
|
CACHE_VERSION__set,
|
|
7
|
-
] = be_atom_triple_(
|
|
8
|
-
|
|
8
|
+
] = /** @type {be_atom_triple_T<false|string>} */ be_atom_triple_(()=>
|
|
9
|
+
typeof process === 'object' && import_meta_env_().CACHE_VERSION)
|
|
10
|
+
.config({ id: 'CACHE_VERSION' })
|
|
9
11
|
export {
|
|
10
12
|
CACHE_VERSION$_ as CACHE_VERSION__,
|
|
11
13
|
CACHE_VERSION$_ as b__CACHE_VERSION,
|
package/NODE_ENV/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { be_atom_triple_T
|
|
1
|
+
import type { be_atom_triple_T } from '@ctx-core/nanostores'
|
|
2
2
|
export declare const [
|
|
3
3
|
NODE_ENV$_,
|
|
4
4
|
NODE_ENV_,
|
|
5
5
|
NODE_ENV__set,
|
|
6
|
-
]:be_atom_triple_T<
|
|
6
|
+
]:be_atom_triple_T<string>
|
|
7
7
|
export {
|
|
8
8
|
NODE_ENV$_ as NODE_ENV__,
|
|
9
9
|
NODE_ENV$_ as b__NODE_ENV,
|
package/NODE_ENV/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { be_atom_triple_ } from '@ctx-core/nanostores'
|
|
2
2
|
import { import_meta_env_ } from '../import_meta_env/index.js'
|
|
3
|
+
/** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
|
|
3
4
|
export const [
|
|
4
5
|
NODE_ENV$_,
|
|
5
6
|
NODE_ENV_,
|
|
6
7
|
NODE_ENV__set,
|
|
7
|
-
] = be_atom_triple_(
|
|
8
|
-
|
|
8
|
+
] = /** @type {be_atom_triple_T<string>} */be_atom_triple_(()=>
|
|
9
|
+
import_meta_env_().NODE_ENV)
|
|
10
|
+
.config({ id: 'NODE_ENV' })
|
|
9
11
|
export {
|
|
10
12
|
NODE_ENV$_ as NODE_ENV__,
|
|
11
13
|
NODE_ENV$_ as b__NODE_ENV,
|
package/VERSION/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { be_atom_triple_T
|
|
1
|
+
import type { be_atom_triple_T } from '@ctx-core/nanostores'
|
|
2
2
|
export declare const [
|
|
3
3
|
VERSION$_,
|
|
4
4
|
VERSION_,
|
|
5
5
|
VERSION__set,
|
|
6
|
-
]:be_atom_triple_T<
|
|
6
|
+
]:be_atom_triple_T<string>
|
|
7
7
|
export { VERSION$_ as VERSION__ }
|
package/VERSION/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { be_atom_triple_ } from '@ctx-core/nanostores'
|
|
2
2
|
import { import_meta_env_ } from '../import_meta_env/index.js'
|
|
3
|
+
/** @typedef {import('@ctx-core/nanostores').be_atom_triple_T} */
|
|
3
4
|
export const [
|
|
4
5
|
VERSION$_,
|
|
5
6
|
VERSION_,
|
|
6
7
|
VERSION__set,
|
|
7
|
-
] = be_atom_triple_(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
)
|
|
8
|
+
] = /** @type {be_atom_triple_T<string>} */be_atom_triple_(()=>
|
|
9
|
+
typeof process === 'object' && (
|
|
10
|
+
import_meta_env_().VERSION || import_meta_env_().HEROKU_SLUG_COMMIT
|
|
11
|
+
)
|
|
12
|
+
|| Math.random().toString())
|
|
13
|
+
.config({ id: 'VERSION' })
|
|
14
14
|
export { VERSION$_ as VERSION__ }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { be_computed_pair_T
|
|
1
|
+
import type { be_computed_pair_T } from '@ctx-core/nanostores'
|
|
2
2
|
export declare const [
|
|
3
3
|
is_development$_,
|
|
4
4
|
is_development_,
|
|
5
|
-
]:be_computed_pair_T<
|
|
5
|
+
]:be_computed_pair_T<boolean>
|
|
6
6
|
export { is_development$_ as is_development__ }
|
package/is_development/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { be_computed_pair_ } from '@ctx-core/nanostores'
|
|
2
2
|
import { NODE_ENV_ } from '../NODE_ENV/index.js'
|
|
3
3
|
export const [
|
|
4
4
|
is_development$_,
|
|
5
5
|
is_development_,
|
|
6
|
-
] =
|
|
6
|
+
] = be_computed_pair_(ctx=>
|
|
7
7
|
NODE_ENV_(ctx) === 'dev'
|
|
8
8
|
|| NODE_ENV_(ctx) === 'development')
|
|
9
|
+
.config({ id: 'is_development' })
|
|
9
10
|
export { is_development$_ as is_development__ }
|
package/is_production/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { be_computed_pair_ } from '@ctx-core/nanostores'
|
|
2
2
|
import { NODE_ENV_ } from '../NODE_ENV/index.js'
|
|
3
3
|
export const [
|
|
4
4
|
is_production$_,
|
|
5
5
|
is_production_,
|
|
6
|
-
] =
|
|
6
|
+
] = be_computed_pair_(ctx=>
|
|
7
7
|
NODE_ENV_(ctx) === 'prod'
|
|
8
8
|
|| NODE_ENV_(ctx) === 'production')
|
|
9
|
+
.config({ id: 'is_production' })
|
|
9
10
|
export {
|
|
10
11
|
is_production$_ as is_production__,
|
|
11
12
|
is_production$_ as b__is__production,
|
package/is_staging/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { be_computed_pair_T } from '@ctx-core/nanostores'
|
|
2
|
+
export const [
|
|
3
|
+
is_staging$_,
|
|
4
|
+
is_staging_,
|
|
5
|
+
]: be_computed_pair_T<boolean>
|
|
4
6
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
is_staging$_ as is_staging__,
|
|
8
|
+
is_staging$_ as b__is__staging,
|
|
7
9
|
}
|
package/is_staging/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { be_computed_pair_ } from '@ctx-core/nanostores'
|
|
2
2
|
import { NODE_ENV_ } from '../NODE_ENV/index.js'
|
|
3
3
|
export const [
|
|
4
4
|
is_staging$_,
|
|
5
5
|
is_staging_,
|
|
6
|
-
] =
|
|
6
|
+
] = be_computed_pair_(ctx=>
|
|
7
7
|
NODE_ENV_(ctx) === 'staging')
|
|
8
|
+
.config({ id: 'is_staging' })
|
|
8
9
|
export {
|
|
9
10
|
is_staging$_ as is_staging__,
|
|
10
11
|
is_staging$_ as b__is__staging,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/env",
|
|
3
|
-
"version": "17.4.
|
|
3
|
+
"version": "17.4.20",
|
|
4
4
|
"description": "ctx-core env",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"./package.json": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ctx-core/error": "^12.4.
|
|
40
|
-
"@ctx-core/function": "^21.22.
|
|
41
|
-
"@ctx-core/nanostores": "^
|
|
42
|
-
"@ctx-core/object": "^
|
|
39
|
+
"@ctx-core/error": "^12.4.17",
|
|
40
|
+
"@ctx-core/function": "^21.22.13",
|
|
41
|
+
"@ctx-core/nanostores": "^9.0.2",
|
|
42
|
+
"@ctx-core/object": "^31.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"c8": "^8.0.1",
|
|
46
46
|
"check-dts": "^0.7.2",
|
|
47
|
-
"tsx": "^4.1.
|
|
47
|
+
"tsx": "^4.1.4",
|
|
48
48
|
"typescript": "next",
|
|
49
49
|
"uvu": "^0.5.6"
|
|
50
50
|
},
|