New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@live-change/db

Package Overview
Dependencies
Maintainers
1
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/db - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

22

lib/Table.js

@@ -73,7 +73,12 @@ const OpLogger = require('./OpLogger.js')

if(!opLogStart) return { count: 0, last: "\xFF\xFF\xFF\xFF" }
const logId = this.opLogWritter({
type: 'clearOpLog',
from: opLogStart.id,
to: nowStr
})
let logId
try {
logId = this.opLogWritter({
type: 'clearOpLog',
from: opLogStart.id,
to: nowStr
})
} catch(e) { // impossible to put anything - database full - first delete something
logId = null
}
const removedStats = await this.opLog.rangeDelete({

@@ -83,2 +88,9 @@ lt: nowStr,

})
if(!logId) { // Panic mode
logId = this.opLogWritter({
type: 'clearOpLog',
from: opLogStart.id,
to: nowStr
})
}
const opLogNewStart = (await this.opLog.rangeGet({ gt: '', limit: 1 }))[0]

@@ -85,0 +97,0 @@ if(opLogNewStart) {

{
"name": "@live-change/db",
"version": "0.3.7",
"version": "0.3.8",
"description": "Database with observable data for live queries",

@@ -5,0 +5,0 @@ "main": "index.js",

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