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

sqlite-replication

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite-replication - npm Package Compare versions

Comparing version 0.0.20-b to 0.0.21-b

2

dist/replicationHelpers.js

@@ -16,3 +16,3 @@ const EXPECTED_COLUMNS = ['id', '_forkParent', 'updatedAt', 'deletedAt'];

getDocumentOffset: async (updatedAt, id) => {
const results = await db.query(`SELECT count(*) FROM "${collectionName}" where "updatedAt"=${updatedAt} and id<='${id}';`);
const results = await db.query(`SELECT count(*) as count FROM "${collectionName}" where "updatedAt"=${updatedAt} and id<='${id}';`);
if (results && results.values && results.values.length && results.values[0]) {

@@ -19,0 +19,0 @@ return results?.values[0]?.count || 0;

{
"name": "sqlite-replication",
"version": "0.0.20b",
"version": "0.0.21b",
"description": "A Typescript module to replicate SQLite DB with server.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -25,3 +25,3 @@ import { SQLiteDBConnection } from '@capacitor-community/sqlite';

const results = await db.query(
`SELECT count(*) FROM "${collectionName}" where "updatedAt"=${updatedAt} and id<='${id}';`,
`SELECT count(*) as count FROM "${collectionName}" where "updatedAt"=${updatedAt} and id<='${id}';`,
);

@@ -28,0 +28,0 @@ if (results && results.values && results.values.length && results.values[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