@ctx-core/env
Advanced tools
Comparing version 6.0.80 to 7.0.1
@@ -25,3 +25,3 @@ import { _has__dom } from '@ctx-core/dom' | ||
${name__env} environment variable not set. | ||
development: make sure ${name__env} is set in your .env file | ||
dev: make sure ${name__env} is set in your .env file | ||
heroku: make sure ${name__env} is set using \`heroku config:set\` | ||
@@ -28,0 +28,0 @@ `.trim() |
{ | ||
"name": "@ctx-core/env", | ||
"version": "6.0.80", | ||
"version": "7.0.1", | ||
"description": "ctx-core env", | ||
@@ -28,9 +28,9 @@ "main": "env.js", | ||
"devDependencies": { | ||
"@ctx-core/error": "^5.1.7", | ||
"@ctx-core/logger": "^3.0.73", | ||
"@ctx-core/object": "^6.0.33", | ||
"@ctx-core/error": "^5.1.8", | ||
"@ctx-core/logger": "^3.0.74", | ||
"@ctx-core/object": "^6.0.34", | ||
"@ctx-core/package": "^3.0.26", | ||
"dotenv": "^8.1.0" | ||
}, | ||
"gitHead": "568b0e6fcc54273e6d28fbea9956c8e328b609be" | ||
"gitHead": "2a507f9805d0ee2084b2a33c26086f280bf6e451" | ||
} |
14
store.js
@@ -9,7 +9,13 @@ import { writable, derived } from 'svelte/store' | ||
|| Math.random()) | ||
export const __is__production = | ||
derived(__NODE_ENV, NODE_ENV => NODE_ENV === 'production') | ||
export const __is__prod = | ||
derived(__NODE_ENV, | ||
NODE_ENV => | ||
NODE_ENV === 'prod' | ||
|| NODE_ENV === 'production') | ||
export const __is__staging = | ||
derived(__NODE_ENV, NODE_ENV => NODE_ENV === 'staging') | ||
export const __is__development = | ||
derived(__NODE_ENV, NODE_ENV => NODE_ENV === 'development') | ||
export const __is__dev = | ||
derived(__NODE_ENV, | ||
NODE_ENV => | ||
NODE_ENV === 'dev' | ||
|| NODE_ENV === 'development') |
2303
49