@cloudcommerce/config
Advanced tools
Comparing version 0.0.67 to 0.0.68
@@ -6,3 +6,6 @@ import Deepmerge from '@fastify/deepmerge'; | ||
const _env = (typeof process === 'object' && process?.env) || globalThis; | ||
// @ts-ignore | ||
const _env = import.meta.env | ||
|| (typeof process === 'object' && process?.env) | ||
|| globalThis; | ||
const deepmerge = Deepmerge(); | ||
@@ -9,0 +12,0 @@ const self = globalThis.__cloudCommerce || { |
@@ -1,2 +0,5 @@ | ||
const _env = (typeof process === 'object' && process?.env) || globalThis; | ||
// @ts-ignore | ||
const _env = import.meta.env | ||
|| (typeof process === 'object' && process?.env) | ||
|| globalThis; | ||
@@ -3,0 +6,0 @@ export default () => { |
{ | ||
"name": "@cloudcommerce/config", | ||
"type": "module", | ||
"version": "0.0.67", | ||
"version": "0.0.68", | ||
"description": "E-Com Plus Cloud Commerce base config", | ||
@@ -24,7 +24,7 @@ "main": "lib/config.js", | ||
"dependencies": { | ||
"@cloudcommerce/api": "0.0.67", | ||
"@cloudcommerce/api": "0.0.68", | ||
"@fastify/deepmerge": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@cloudcommerce/types": "0.0.67" | ||
"@cloudcommerce/types": "0.0.68" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
@@ -9,5 +9,2 @@ import Deepmerge from '@fastify/deepmerge'; | ||
const _env: Record<string, any> = (typeof process === 'object' && process?.env) || globalThis; | ||
const deepmerge = Deepmerge(); | ||
type BaseConfig = { | ||
@@ -21,2 +18,9 @@ lang: string, | ||
// @ts-ignore | ||
const _env: Record<string, any> = import.meta.env | ||
|| (typeof process === 'object' && process?.env) | ||
|| globalThis; | ||
const deepmerge = Deepmerge(); | ||
const self: { config: BaseConfig } = globalThis.__cloudCommerce || { | ||
@@ -23,0 +27,0 @@ config: { |
@@ -10,3 +10,6 @@ type Env = { | ||
const _env: Record<string, any> = (typeof process === 'object' && process?.env) || globalThis; | ||
// @ts-ignore | ||
const _env: Record<string, any> = import.meta.env | ||
|| (typeof process === 'object' && process?.env) | ||
|| globalThis; | ||
@@ -13,0 +16,0 @@ export default () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21034
190
+ Added@cloudcommerce/api@0.0.68(transitive)
- Removed@cloudcommerce/api@0.0.67(transitive)
Updated@cloudcommerce/api@0.0.68