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

websql

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websql - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

4

lib/websql/WebSQLDatabase.js

@@ -47,3 +47,5 @@ 'use strict';

if (err) {
if (self._currentTask.readOnly) {
done(); // read-only doesn't require a transaction
} else if (err) {
self._db.exec(ROLLBACK, false, done);

@@ -50,0 +52,0 @@ } else {

@@ -117,3 +117,7 @@ 'use strict';

this._sqlQueue = new Queue();
this._sqlQueue.push(new SQLTask('BEGIN;', [], noop, noop));
if (!websqlDatabase._currentTask.readOnly) {
// Since we serialize all access to the database, there is no need to
// run read-only tasks in a transaction. This is a perf boost.
this._sqlQueue.push(new SQLTask('BEGIN;', [], noop, noop));
}
}

@@ -120,0 +124,0 @@

{
"name": "websql",
"version": "0.4.3",
"version": "0.4.4",
"description": "WebSQL Database API, implemented for Node using sqlite3",

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

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