sqlite-replication
Advanced tools
Comparing version 0.0.20-b to 0.0.21-b
@@ -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]) { |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
92287