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

pure-live-pg

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-live-pg - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

17

lib/pg-table.js

@@ -58,3 +58,3 @@ 'use strict';

// if we have a transactionHandle, we does'nt get a new connection
// istead we have to execute the statement on the given connection
// instead we have to execute the statement on the given connection
// from the transactionHandle

@@ -95,5 +95,10 @@ if (transactionHandle) {

(result, statementId, callback) => {
//console.log('EXECUTED');
// waiting till clientId was received for the notify-listner and all reactive queries are performed
if (clientId != PGTable.NO_CLIENT_ID_SUPPORTED && result.rowCount > 0) {
// waiting till clientId was received for the notify-listner and all
// reactive queries are performed for this client.
//
// If there was an active transaction we can't wait, because the pg_notify events
// are transactional. By using transactions there is no chance for optimistic UI
// As alternative all statements can issue within a storeProcedure that executes
// all statements an manages the transaction at start and end of the procedure itself.
if (!transactionHandle && clientId != PGTable.NO_CLIENT_ID_SUPPORTED && result.rowCount > 0) {
var interv = setInterval(()=>{

@@ -117,5 +122,5 @@ if (!this._database._runningStatements[statementId]) {

(error, results) => {
setTimeout(() => {
//setTimeout(() => {
return callback(error, results);
}, 0);
//}, 0);
});

@@ -122,0 +127,0 @@ }

{
"name": "pure-live-pg",
"version": "1.0.13",
"version": "1.0.14",
"description": "PostgreSQL package to support realtime applications",

@@ -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