fix(core): update

This commit is contained in:
2022-10-26 10:54:18 +02:00
parent 899a46f9de
commit 5e5f493dfa
6 changed files with 4106 additions and 14339 deletions

View File

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

View File

@ -188,7 +188,9 @@ export class TypedSocket {
if (!payloadArg) {
result = !!(await socketConnectionArg.getTagById(keyArg));
} else {
result = !!((await socketConnectionArg.getTagById(keyArg))?.payload === payloadArg);
result = !!(
plugins.smartjson.stringify((await socketConnectionArg.getTagById(keyArg))?.payload) === plugins.smartjson.stringify(payloadArg)
);
}
return result;
})

View File

@ -9,11 +9,13 @@ export {
// @pushrocks scope
import * as isohash from '@pushrocks/isohash';
import * as smartjson from '@pushrocks/smartjson';
import * as smartsocket from '@pushrocks/smartsocket';
import * as smartstring from '@pushrocks/smartstring';
export {
isohash,
smartjson,
smartsocket,
smartstring
}