Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@electric-sql/next

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electric-sql/next - npm Package Compare versions

Comparing version 0.0.8 to 0.1.0

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc