wenay-common 1.0.166 → 1.0.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -89,6 +89,7 @@ export declare function CreatAPIFacadeClient<T extends object>({ socketKey, sock
|
|
|
89
89
|
space: tMethodToPromise2<typeNoVoid2<T>>;
|
|
90
90
|
all: tMethodToPromise2<T>;
|
|
91
91
|
strictly: tMethodToPromise4<T>;
|
|
92
|
+
infoStrictly(): any;
|
|
92
93
|
strictlyInit(obj?: object): Promise<unknown>;
|
|
93
94
|
};
|
|
94
95
|
export declare function CreatAPIFacadeServer<T extends object>({ object, socket, socketKey }: {
|
|
@@ -295,7 +295,8 @@ function CreatAPIFacadeClient({ socketKey, socket, limit }) {
|
|
|
295
295
|
api: (data) => {
|
|
296
296
|
socket.on(socketKey, (d) => {
|
|
297
297
|
if (typeof d == "object" && d?.STRICTLY) {
|
|
298
|
-
strictlyObj
|
|
298
|
+
Object.keys(strictlyObj).forEach(k => { delete strictlyObj[k]; });
|
|
299
|
+
Object.assign(strictlyObj, d.STRICTLY);
|
|
299
300
|
funcPromise?.(undefined);
|
|
300
301
|
}
|
|
301
302
|
else
|
|
@@ -313,6 +314,7 @@ function CreatAPIFacadeClient({ socketKey, socket, limit }) {
|
|
|
313
314
|
space,
|
|
314
315
|
all: func,
|
|
315
316
|
strictly,
|
|
317
|
+
infoStrictly() { return strictlyObj; },
|
|
316
318
|
async strictlyInit(obj) {
|
|
317
319
|
if (obj)
|
|
318
320
|
strictlyObj = obj;
|