diff --git a/src/index.ts b/src/index.ts index 75f4393..d688d56 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,16 @@ +import legacyCodes from './legacy'; + +import { + getStatusCode, + getStatusText, +} from './utils-functions'; + +export { + getStatusCode, + getReasonPhrase, + getStatusText, +} from './utils-functions'; + export { StatusCodes, } from './status-codes'; @@ -6,10 +19,10 @@ export { ReasonPhrases, } from './reason-phrases'; -export { +export * from './legacy'; + +export default { + ...legacyCodes, getStatusCode, getStatusText, - getReasonPhrase, -} from './utils-functions'; - -export * from './legacy'; +};