feat(core): removed internal exports from core package public API
MODIFY
packages/core/src/index.ts
packages/core/src/index.ts
@@ -7,7 +7,3 @@ export * from './router/router.interface';
export * from './http.interface';
export * from './http.listener';
export * from './operators';
-
-// internal stuff
-import * as internal from './+internal';
-export { internal };

MODIFY
packages/middleware-jwt/src/jwt.util.ts
packages/middleware-jwt/src/jwt.util.ts
-import { HttpRequest, internal as i } from '@marblejs/core';
+import { HttpRequest } from '@marblejs/core';
+import { Maybe } from '@marblejs/core/dist/+internal';
const splitHeader = (header: string) => header.split(' ');
const getLastElement = (array: string[]) => array[array.length - 1];
export const parseAuthorizationHeader = (req: HttpRequest) =>
- i.Maybe.of(req.headers.authorization)
+ Maybe.of(req.headers.authorization)
.map(splitHeader)
.map(getLastElement)
.valueOr('');

feat(core): removed internal exports from core package public API