fix(core): update

This commit is contained in:
Philipp Kunz 2023-03-29 13:47:03 +02:00
parent 5748bd8280
commit eb596e5dd8
3 changed files with 7 additions and 8 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedsocket',
version: '2.0.21',
version: '2.0.22',
description: 'a typedrequest extension supporting websockets'
}

View File

@ -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;
}
export * from './typedsocket.classes.typedsocket.js';

View File

@ -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;