@ctx-core/env 13.0.45 → 13.0.50
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/.swcrc +1 -1
- package/CHANGELOG.md +61 -0
- package/dist/CACHE_VERSION$_b.js.map +1 -1
- package/dist/NODE_ENV$_b.js.map +1 -1
- package/dist/VERSION$_b.js.map +1 -1
- package/dist/is_development$_b.js.map +1 -1
- package/dist/is_production$_b.js.map +1 -1
- package/dist/is_staging$_b.js +1 -1
- package/dist/is_staging$_b.js.map +1 -1
- package/package.json +10 -10
- package/src/CACHE_VERSION$_b.ts +1 -1
- package/src/NODE_ENV$_b.ts +1 -1
- package/src/VERSION$_b.ts +1 -1
- package/src/is_development$_b.ts +1 -1
- package/src/is_production$_b.ts +1 -1
- package/src/is_staging$_b.ts +2 -2
package/.swcrc
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# @ctx-core/env
|
|
2
2
|
|
|
3
|
+
## 13.0.50
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @swc/core: ^1.2.113 -> ^1.2.116
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @ctx-core/error@11.1.4
|
|
10
|
+
- @ctx-core/function@20.2.8
|
|
11
|
+
- @ctx-core/object@21.0.27
|
|
12
|
+
- @ctx-core/store@27.0.41
|
|
13
|
+
|
|
14
|
+
## 13.0.49
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- @swc/cli: ^0.1.51 -> ^0.1.52
|
|
19
|
+
- @swc/core: ^1.2.111 -> ^1.2.113
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @ctx-core/error@11.1.3
|
|
23
|
+
- @ctx-core/function@20.2.7
|
|
24
|
+
- @ctx-core/object@21.0.26
|
|
25
|
+
- @ctx-core/store@27.0.40
|
|
26
|
+
|
|
27
|
+
## 13.0.48
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- svelte: 3.44.1 -> 3.44.2
|
|
32
|
+
- @swc/core: ^1.2.110 -> ^1.2.111
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
- @ctx-core/store@27.0.39
|
|
36
|
+
- @ctx-core/error@11.1.2
|
|
37
|
+
- @ctx-core/function@20.2.6
|
|
38
|
+
- @ctx-core/object@21.0.25
|
|
39
|
+
|
|
40
|
+
## 13.0.47
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- typescript: ^4.4.4 -> ^4.5.2
|
|
45
|
+
- @swc/core: ^1.2.108 -> ^1.2.110
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- Updated dependencies
|
|
48
|
+
- @ctx-core/error@11.0.20
|
|
49
|
+
- @ctx-core/function@20.2.5
|
|
50
|
+
- @ctx-core/object@21.0.24
|
|
51
|
+
- @ctx-core/store@27.0.38
|
|
52
|
+
|
|
53
|
+
## 13.0.46
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- @swc/core: ^1.2.107 -> ^1.2.108
|
|
58
|
+
- Updated dependencies
|
|
59
|
+
- @ctx-core/error@11.0.19
|
|
60
|
+
- @ctx-core/function@20.2.4
|
|
61
|
+
- @ctx-core/object@21.0.23
|
|
62
|
+
- @ctx-core/store@27.0.37
|
|
63
|
+
|
|
3
64
|
## 13.0.45
|
|
4
65
|
|
|
5
66
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/CACHE_VERSION$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { Writable$, writable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx'\nconst key = 'CACHE_VERSION$'\nexport const CACHE_VERSION$_b:B<env_Ctx, typeof key> = be_(key, ()=>\n\twritable$(\n\t\ttypeof process === 'object' && process.env.CACHE_VERSION\n\t) as CACHE_VERSION$_T\n)\nexport type CACHE_VERSION_T = false|string\nexport interface CACHE_VERSION$_T extends Writable$<CACHE_VERSION_T> {}\nexport {\n\tCACHE_VERSION$_b as b__CACHE_VERSION,\n}\n"],"names":["be_","writable$","key","CACHE_VERSION$_b","process","env","CACHE_VERSION","b__CACHE_VERSION"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAcC,SAAS,QAAQ,CAAiB;AAEtD,KAAK,CAACC,GAAG,GAAG,CAAgB;AAC5B,MAAM,CAAC,KAAK,CAACC,gBAAgB,GAA0BH,GAAG,CAACE,GAAG,MAC7DD,SAAS,CACR,MAAM,CAACG,OAAO,KAAK,CAAQ,WAAIA,OAAO,CAACC,GAAG,CAACC,aAAa;;AAK1D,MAAM,GACLH,gBAAgB,IAAII,gBAAgB"}
|
|
1
|
+
{"version":3,"sources":["../src/CACHE_VERSION$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { Writable$, writable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx.js'\nconst key = 'CACHE_VERSION$'\nexport const CACHE_VERSION$_b:B<env_Ctx, typeof key> = be_(key, ()=>\n\twritable$(\n\t\ttypeof process === 'object' && process.env.CACHE_VERSION\n\t) as CACHE_VERSION$_T\n)\nexport type CACHE_VERSION_T = false|string\nexport interface CACHE_VERSION$_T extends Writable$<CACHE_VERSION_T> {}\nexport {\n\tCACHE_VERSION$_b as b__CACHE_VERSION,\n}\n"],"names":["be_","writable$","key","CACHE_VERSION$_b","process","env","CACHE_VERSION","b__CACHE_VERSION"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAcC,SAAS,QAAQ,CAAiB;AAEtD,KAAK,CAACC,GAAG,GAAG,CAAgB;AAC5B,MAAM,CAAC,KAAK,CAACC,gBAAgB,GAA0BH,GAAG,CAACE,GAAG,MAC7DD,SAAS,CACR,MAAM,CAACG,OAAO,KAAK,CAAQ,WAAIA,OAAO,CAACC,GAAG,CAACC,aAAa;;AAK1D,MAAM,GACLH,gBAAgB,IAAII,gBAAgB"}
|
package/dist/NODE_ENV$_b.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/NODE_ENV$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { writable$, Writable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx'\nconst key = 'NODE_ENV$'\nexport const NODE_ENV$_b:B<env_Ctx, typeof key> = be_(key, ()=>\n\twritable$(process.env.NODE_ENV) as NODE_ENV$_T\n)\nexport type NODE_ENV_T = string\nexport interface NODE_ENV$_T extends Writable$<NODE_ENV_T> {}\nexport { NODE_ENV$_b as b__NODE_ENV }\n"],"names":["be_","writable$","key","NODE_ENV$_b","process","env","NODE_ENV","b__NODE_ENV"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAGC,SAAS,QAAmB,CAAiB;AAEtD,KAAK,CAACC,GAAG,GAAG,CAAW;AACvB,MAAM,CAAC,KAAK,CAACC,WAAW,GAA0BH,GAAG,CAACE,GAAG,MACxDD,SAAS,CAACG,OAAO,CAACC,GAAG,CAACC,QAAQ;;AAI/B,MAAM,GAAGH,WAAW,IAAII,WAAW"}
|
|
1
|
+
{"version":3,"sources":["../src/NODE_ENV$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { writable$, Writable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx.js'\nconst key = 'NODE_ENV$'\nexport const NODE_ENV$_b:B<env_Ctx, typeof key> = be_(key, ()=>\n\twritable$(process.env.NODE_ENV) as NODE_ENV$_T\n)\nexport type NODE_ENV_T = string\nexport interface NODE_ENV$_T extends Writable$<NODE_ENV_T> {}\nexport { NODE_ENV$_b as b__NODE_ENV }\n"],"names":["be_","writable$","key","NODE_ENV$_b","process","env","NODE_ENV","b__NODE_ENV"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAGC,SAAS,QAAmB,CAAiB;AAEtD,KAAK,CAACC,GAAG,GAAG,CAAW;AACvB,MAAM,CAAC,KAAK,CAACC,WAAW,GAA0BH,GAAG,CAACE,GAAG,MACxDD,SAAS,CAACG,OAAO,CAACC,GAAG,CAACC,QAAQ;;AAI/B,MAAM,GAAGH,WAAW,IAAII,WAAW"}
|
package/dist/VERSION$_b.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/VERSION$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { Writable$, writable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx'\nconst key = 'VERSION$'\nexport const VERSION$_b:B<env_Ctx, typeof key> = be_(key, ()=>\n\twritable$(\n\t\t(typeof process === 'object' && (\n\t\t\tprocess.env.VERSION\n\t\t\t|| process.env.HEROKU_SLUG_COMMIT\n\t\t))\n\t\t|| Math.random().toString()\n\t) as VERSION$_T\n)\nexport type VERSION_T = string\nexport interface VERSION$_T extends Writable$<VERSION_T> {}\nexport {\n\tVERSION$_b as b__VERSION,\n}\n"],"names":["be_","writable$","key","VERSION$_b","process","env","VERSION","HEROKU_SLUG_COMMIT","Math","random","toString","b__VERSION"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAcC,SAAS,QAAQ,CAAiB;AAEtD,KAAK,CAACC,GAAG,GAAG,CAAU;AACtB,MAAM,CAAC,KAAK,CAACC,UAAU,GAA0BH,GAAG,CAACE,GAAG,MACvDD,SAAS,CACP,MAAM,CAACG,OAAO,KAAK,CAAQ,YAC3BA,OAAO,CAACC,GAAG,CAACC,OAAO,IAChBF,OAAO,CAACC,GAAG,CAACE,kBAAkB,KAE/BC,IAAI,CAACC,MAAM,GAAGC,QAAQ;;AAK3B,MAAM,GACLP,UAAU,IAAIQ,UAAU"}
|
|
1
|
+
{"version":3,"sources":["../src/VERSION$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { Writable$, writable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx.js'\nconst key = 'VERSION$'\nexport const VERSION$_b:B<env_Ctx, typeof key> = be_(key, ()=>\n\twritable$(\n\t\t(typeof process === 'object' && (\n\t\t\tprocess.env.VERSION\n\t\t\t|| process.env.HEROKU_SLUG_COMMIT\n\t\t))\n\t\t|| Math.random().toString()\n\t) as VERSION$_T\n)\nexport type VERSION_T = string\nexport interface VERSION$_T extends Writable$<VERSION_T> {}\nexport {\n\tVERSION$_b as b__VERSION,\n}\n"],"names":["be_","writable$","key","VERSION$_b","process","env","VERSION","HEROKU_SLUG_COMMIT","Math","random","toString","b__VERSION"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAcC,SAAS,QAAQ,CAAiB;AAEtD,KAAK,CAACC,GAAG,GAAG,CAAU;AACtB,MAAM,CAAC,KAAK,CAACC,UAAU,GAA0BH,GAAG,CAACE,GAAG,MACvDD,SAAS,CACP,MAAM,CAACG,OAAO,KAAK,CAAQ,YAC3BA,OAAO,CAACC,GAAG,CAACC,OAAO,IAChBF,OAAO,CAACC,GAAG,CAACE,kBAAkB,KAE/BC,IAAI,CAACC,MAAM,GAAGC,QAAQ;;AAK3B,MAAM,GACLP,UAAU,IAAIQ,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/is_development$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { derived$, Readable$ } from '@ctx-core/store'\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/is_development$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { derived$, Readable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx.js'\nimport { NODE_ENV$_b } from './NODE_ENV$_b.js'\nconst key = 'is_development$'\nexport const is_development$_b:B<env_Ctx, typeof key> = be_(key, ctx=>\n\tderived$(NODE_ENV$_b(ctx),\n\t\tNODE_ENV=>\n\t\t\tNODE_ENV === 'dev' || NODE_ENV === 'development.js'\n\t) as is_development$_T\n)\nexport type is_development_T = boolean\nexport interface is_development$_T extends Readable$<is_development_T> {}\nexport { is_development$_b as b__is__development }\n"],"names":["be_","derived$","NODE_ENV$_b","key","is_development$_b","ctx","NODE_ENV","b__is__development"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAGC,QAAQ,QAAmB,CAAiB;AAErD,MAAM,GAAGC,WAAW,QAAQ,CAAkB;AAC9C,KAAK,CAACC,GAAG,GAAG,CAAiB;AAC7B,MAAM,CAAC,KAAK,CAACC,iBAAiB,GAA0BJ,GAAG,CAACG,GAAG,GAAEE,GAAG,GACnEJ,QAAQ,CAACC,WAAW,CAACG,GAAG,IACvBC,QAAQ,GACPA,QAAQ,KAAK,CAAK,QAAIA,QAAQ,KAAK,CAAgB;;;AAKtD,MAAM,GAAGF,iBAAiB,IAAIG,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/is_production$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { derived$, Readable$ } from '@ctx-core/store'\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/is_production$_b.ts"],"sourcesContent":["import { B, be_ } from '@ctx-core/object'\nimport { derived$, Readable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx.js'\nimport { NODE_ENV$_b } from './NODE_ENV$_b.js'\nconst key = 'is_production$'\nexport const is_production$_b:B<env_Ctx, typeof key> = be_(key, ctx=>\n\tderived$(NODE_ENV$_b(ctx), NODE_ENV=>\n\t\tNODE_ENV === 'prod' || NODE_ENV === 'production.js'\n\t) as is_production$_T\n)\nexport type is_production_T = boolean\nexport interface is_production$_T extends Readable$<is_production_T> {}\nexport { is_production$_b as b__is__production }\n"],"names":["be_","derived$","NODE_ENV$_b","key","is_production$_b","ctx","NODE_ENV","b__is__production"],"mappings":"AAAA,MAAM,GAAMA,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAGC,QAAQ,QAAmB,CAAiB;AAErD,MAAM,GAAGC,WAAW,QAAQ,CAAkB;AAC9C,KAAK,CAACC,GAAG,GAAG,CAAgB;AAC5B,MAAM,CAAC,KAAK,CAACC,gBAAgB,GAA0BJ,GAAG,CAACG,GAAG,GAAEE,GAAG,GAClEJ,QAAQ,CAACC,WAAW,CAACG,GAAG,IAAGC,QAAQ,GAClCA,QAAQ,KAAK,CAAM,SAAIA,QAAQ,KAAK,CAAe;;;AAKrD,MAAM,GAAGF,gBAAgB,IAAIG,iBAAiB"}
|
package/dist/is_staging$_b.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/is_staging$_b.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../src/is_staging$_b.ts"],"sourcesContent":["import { eql_ } from '@ctx-core/function'\nimport { B, be_ } from '@ctx-core/object'\nimport { derived$, Readable$ } from '@ctx-core/store'\nimport type { env_Ctx } from './env_Ctx.js'\nimport { NODE_ENV$_b } from './NODE_ENV$_b.js'\nconst key = 'is_staging$'\nexport const is_staging$_b:B<env_Ctx, typeof key> = be_(key, ctx=>\n\tderived$(\n\t\tNODE_ENV$_b(ctx),\n\t\teql_(['staging'])\n\t) as is_staging$_T\n)\nexport type is_staging_T = boolean\nexport interface is_staging$_T extends Readable$<is_staging_T> {}\nexport { is_staging$_b as b__is__staging }\n"],"names":["eql_","be_","derived$","NODE_ENV$_b","key","is_staging$_b","ctx","b__is__staging"],"mappings":"AAAA,MAAM,GAAGA,IAAI,QAAQ,CAAoB;AACzC,MAAM,GAAMC,GAAG,QAAQ,CAAkB;AACzC,MAAM,GAAGC,QAAQ,QAAmB,CAAiB;AAErD,MAAM,GAAGC,WAAW,QAAQ,CAAkB;AAC9C,KAAK,CAACC,GAAG,GAAG,CAAa;AACzB,MAAM,CAAC,KAAK,CAACC,aAAa,GAA0BJ,GAAG,CAACG,GAAG,GAAEE,GAAG,GAC/DJ,QAAQ,CACPC,WAAW,CAACG,GAAG,GACfN,IAAI,CAAC,CAAC;QAAA,CAAS;IAAA,CAAC;;AAKlB,MAAM,GAAGK,aAAa,IAAIE,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/env",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.50",
|
|
4
4
|
"description": "ctx-core env",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ctx-core/error": "^11.
|
|
32
|
-
"@ctx-core/function": "^20.2.
|
|
33
|
-
"@ctx-core/object": "^21.0.
|
|
34
|
-
"@ctx-core/store": "^27.0.
|
|
35
|
-
"svelte": "3.44.
|
|
31
|
+
"@ctx-core/error": "^11.1.4",
|
|
32
|
+
"@ctx-core/function": "^20.2.8",
|
|
33
|
+
"@ctx-core/object": "^21.0.27",
|
|
34
|
+
"@ctx-core/store": "^27.0.41",
|
|
35
|
+
"svelte": "3.44.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@ctx-core/dev-tools": "^7.2.
|
|
39
|
-
"@swc/cli": "^0.1.
|
|
40
|
-
"@swc/core": "^1.2.
|
|
41
|
-
"typescript": "
|
|
38
|
+
"@ctx-core/dev-tools": "^7.2.5",
|
|
39
|
+
"@swc/cli": "^0.1.52",
|
|
40
|
+
"@swc/core": "^1.2.116",
|
|
41
|
+
"typescript": "next"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public",
|
package/src/CACHE_VERSION$_b.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B, be_ } from '@ctx-core/object'
|
|
2
2
|
import { Writable$, writable$ } from '@ctx-core/store'
|
|
3
|
-
import type { env_Ctx } from './env_Ctx'
|
|
3
|
+
import type { env_Ctx } from './env_Ctx.js'
|
|
4
4
|
const key = 'CACHE_VERSION$'
|
|
5
5
|
export const CACHE_VERSION$_b:B<env_Ctx, typeof key> = be_(key, ()=>
|
|
6
6
|
writable$(
|
package/src/NODE_ENV$_b.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B, be_ } from '@ctx-core/object'
|
|
2
2
|
import { writable$, Writable$ } from '@ctx-core/store'
|
|
3
|
-
import type { env_Ctx } from './env_Ctx'
|
|
3
|
+
import type { env_Ctx } from './env_Ctx.js'
|
|
4
4
|
const key = 'NODE_ENV$'
|
|
5
5
|
export const NODE_ENV$_b:B<env_Ctx, typeof key> = be_(key, ()=>
|
|
6
6
|
writable$(process.env.NODE_ENV) as NODE_ENV$_T
|
package/src/VERSION$_b.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B, be_ } from '@ctx-core/object'
|
|
2
2
|
import { Writable$, writable$ } from '@ctx-core/store'
|
|
3
|
-
import type { env_Ctx } from './env_Ctx'
|
|
3
|
+
import type { env_Ctx } from './env_Ctx.js'
|
|
4
4
|
const key = 'VERSION$'
|
|
5
5
|
export const VERSION$_b:B<env_Ctx, typeof key> = be_(key, ()=>
|
|
6
6
|
writable$(
|
package/src/is_development$_b.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B, be_ } from '@ctx-core/object'
|
|
2
2
|
import { derived$, Readable$ } from '@ctx-core/store'
|
|
3
|
+
import type { env_Ctx } from './env_Ctx.js'
|
|
3
4
|
import { NODE_ENV$_b } from './NODE_ENV$_b.js'
|
|
4
|
-
import type { env_Ctx } from './env_Ctx'
|
|
5
5
|
const key = 'is_development$'
|
|
6
6
|
export const is_development$_b:B<env_Ctx, typeof key> = be_(key, ctx=>
|
|
7
7
|
derived$(NODE_ENV$_b(ctx),
|
package/src/is_production$_b.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B, be_ } from '@ctx-core/object'
|
|
2
2
|
import { derived$, Readable$ } from '@ctx-core/store'
|
|
3
|
+
import type { env_Ctx } from './env_Ctx.js'
|
|
3
4
|
import { NODE_ENV$_b } from './NODE_ENV$_b.js'
|
|
4
|
-
import type { env_Ctx } from './env_Ctx'
|
|
5
5
|
const key = 'is_production$'
|
|
6
6
|
export const is_production$_b:B<env_Ctx, typeof key> = be_(key, ctx=>
|
|
7
7
|
derived$(NODE_ENV$_b(ctx), NODE_ENV=>
|
package/src/is_staging$_b.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B, be_ } from '@ctx-core/object'
|
|
2
1
|
import { eql_ } from '@ctx-core/function'
|
|
2
|
+
import { B, be_ } from '@ctx-core/object'
|
|
3
3
|
import { derived$, Readable$ } from '@ctx-core/store'
|
|
4
|
+
import type { env_Ctx } from './env_Ctx.js'
|
|
4
5
|
import { NODE_ENV$_b } from './NODE_ENV$_b.js'
|
|
5
|
-
import type { env_Ctx } from './env_Ctx'
|
|
6
6
|
const key = 'is_staging$'
|
|
7
7
|
export const is_staging$_b:B<env_Ctx, typeof key> = be_(key, ctx=>
|
|
8
8
|
derived$(
|