Skip to content

Commit

Permalink
feat: add re-export public consts (#55)
Browse files Browse the repository at this point in the history
* feat: add re-export public consts
* fix: typo
  • Loading branch information
melikhov-dev authored Oct 10, 2024
1 parent 341d27c commit acc8dde
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
5 changes: 1 addition & 4 deletions src/lib/consts.ts
Original file line number Diff line number Diff line change
@@ -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]';
4 changes: 4 additions & 0 deletions src/lib/public-consts.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit acc8dde

Please sign in to comment.