@electric-sql/next
Advanced tools
Comparing version 0.0.8 to 0.1.0
{ | ||
"name": "@electric-sql/next", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"description": "Postgres everywhere - your data, in sync, wherever you need it.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -495,14 +495,18 @@ import { ArgumentsType } from 'vitest' | ||
if (`key` in message) { | ||
switch (message.headers?.[`action`]) { | ||
dataMayHaveChanged = [`insert`, `update`, `delete`].includes( | ||
message.headers.action | ||
) | ||
switch (message.headers.action) { | ||
case `insert`: | ||
case `update`: | ||
this.data.set(message.key, message.value) | ||
dataMayHaveChanged = true | ||
break | ||
case `update`: | ||
this.data.set(message.key, { | ||
...this.data.get(message.key)!, | ||
...message.value, | ||
}) | ||
break | ||
case `delete`: | ||
this.data.delete(message.key) | ||
dataMayHaveChanged = true | ||
break | ||
@@ -509,0 +513,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30515
496
0