diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 853902b..aa39a51 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedsocket', - version: '2.0.21', + version: '2.0.22', description: 'a typedrequest extension supporting websockets' } diff --git a/ts/index.ts b/ts/index.ts index aa2b1bb..a233797 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,7 +1 @@ -import * as plugins from './typedsocket.plugins.js'; -export * from './typedsocket.classes.typedsocket.js'; - -export const useWindowLocationOriginUrl = () => { - const windowLocationResult = plugins.smarturl.Smarturl.createFromUrl(globalThis.location.origin).toString(); - return windowLocationResult; -} \ No newline at end of file +export * from './typedsocket.classes.typedsocket.js'; \ No newline at end of file diff --git a/ts/typedsocket.classes.typedsocket.ts b/ts/typedsocket.classes.typedsocket.ts index e60b1f8..7703360 100644 --- a/ts/typedsocket.classes.typedsocket.ts +++ b/ts/typedsocket.classes.typedsocket.ts @@ -105,6 +105,11 @@ export class TypedSocket { return typedsocket; } + public static useWindowLocationOriginUrl = () => { + const windowLocationResult = plugins.smarturl.Smarturl.createFromUrl(globalThis.location.origin).toString(); + return windowLocationResult; + } + // INSTANCE public side: TTypedSocketSide; public typedrouter: plugins.typedrequest.TypedRouter;