@unstoppabledomains/config
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -0,2 +1,4 @@ | ||
import type { AppEnv, ImmutableConfig } from './types'; | ||
export declare function getConfig(env?: AppEnv): ImmutableConfig; | ||
declare const _default: import("./types").ImmutableObject<import("./types").Config>; | ||
export default _default; |
@@ -25,4 +25,4 @@ import merge from 'lodash/merge'; | ||
} | ||
function getEnvConfigOverrides() { | ||
const appEnv = getAppEnv(); | ||
function getEnvConfigOverrides(env) { | ||
const appEnv = env || getAppEnv(); | ||
switch (appEnv) { | ||
@@ -44,5 +44,5 @@ case 'development': | ||
} | ||
function getConfig() { | ||
return merge(getDefaultConfig(), getEnvConfigOverrides()); | ||
export function getConfig(env) { | ||
return merge(getDefaultConfig(), getEnvConfigOverrides(env)); | ||
} | ||
export default getConfig(); |
import env from './env'; | ||
export * from './launchdarkly'; | ||
export * from './bugsnag'; | ||
export type { DeepPartial } from './env/types'; | ||
export * from './env'; | ||
export type { DeepPartial, AppEnv } from './env/types'; | ||
export default env; |
import env from './env'; | ||
export * from './launchdarkly'; | ||
export * from './bugsnag'; | ||
export * from './env'; | ||
export default env; |
{ | ||
"name": "@unstoppabledomains/config", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Configuration variables for Unstoppable Domains environments", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31162
670