@logux/server
Advanced tools
Comparing version 0.12.5 to 0.12.6
import type { | ||
LoguxSubscribeAction, | ||
SyncMapChangeAction, | ||
SyncMapChangedAction, | ||
SyncMapCreateAction, | ||
SyncMapCreatedAction, | ||
SyncMapDeleteAction, | ||
SyncMapDeletedAction, | ||
SyncMapTypes, | ||
@@ -61,3 +64,6 @@ SyncMapValues | ||
ctx: Context, | ||
action: SyncMapCreateAction<Value> | SyncMapDeleteAction, | ||
action: | ||
| SyncMapChangedAction<Value> | ||
| SyncMapCreatedAction<Value> | ||
| SyncMapDeletedAction, | ||
meta: ServerMeta | ||
@@ -86,3 +92,3 @@ ): boolean | Promise<boolean> | ||
meta: ServerMeta | ||
): boolean | Promise<boolean | void> | void | ||
): boolean | Promise<boolean | void> | void | ||
@@ -89,0 +95,0 @@ create?( |
@@ -47,2 +47,10 @@ const WITH_TIME = Symbol('WITH_TIME') | ||
} | ||
if (action.type.endsWith('/changed')) { | ||
for (let key in filter) { | ||
if ( | ||
key in action.fields && | ||
action.fields[key] !== filter[key] | ||
) return false | ||
} | ||
} | ||
return true | ||
@@ -49,0 +57,0 @@ } |
{ | ||
"name": "@logux/server", | ||
"version": "0.12.5", | ||
"version": "0.12.6", | ||
"description": "Build own Logux server or make proxy between WebSocket and HTTP backend on any language", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"@logux/actions": "^0.3.1", | ||
"@logux/core": "^0.8.4", | ||
"@logux/core": "^0.8.5", | ||
"JSONStream": "^1.3.5", | ||
@@ -34,0 +34,0 @@ "cookie": "^0.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166067
5589
Updated@logux/core@^0.8.5