diff --git a/src/index.ts b/src/index.ts index db913be..cbd7742 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,4 +2,4 @@ export {NodeKit} from './nodekit'; export {AppContext} from './lib/context'; export {AppConfig, AppContextParams, AppDynamicConfig} from './types'; export {AppError} from './lib/app-error'; -export {REQUEST_ID_HEADER, REQUEST_ID_PARAM_NAME} from './lib/consts'; +export * from './lib/public-consts'; diff --git a/src/lib/consts.ts b/src/lib/consts.ts index eb0919c..8168bd1 100644 --- a/src/lib/consts.ts +++ b/src/lib/consts.ts @@ -1,6 +1,3 @@ -export const REQUEST_ID_HEADER = 'x-request-id'; -export const REQUEST_ID_PARAM_NAME = 'requestId'; -export const USER_ID_PARAM_NAME = 'userId'; -export const USER_LANGUAGE_PARAM_NAME = 'userLang'; +export * from './public-consts'; export const TRACE_KEY = 'uber-trace-id'; export const REDACTED_STRING = '[REDACTED]'; diff --git a/src/lib/public-consts.ts b/src/lib/public-consts.ts new file mode 100644 index 0000000..8fb3498 --- /dev/null +++ b/src/lib/public-consts.ts @@ -0,0 +1,4 @@ +export const REQUEST_ID_HEADER = 'x-request-id'; +export const REQUEST_ID_PARAM_NAME = 'requestId'; +export const USER_ID_PARAM_NAME = 'userId'; +export const USER_LANGUAGE_PARAM_NAME = 'userLang';