Socket
Socket
Sign inDemoInstall

pg

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg - npm Package Compare versions

Comparing version 7.5.0 to 7.6.0

3

CHANGELOG.md

@@ -7,2 +7,5 @@ All major and minor releases are briefly explained below.

### 7.6.0
- Add support for ["bring your own promise"](https://github.com/brianc/node-postgres/pull/1518)
### 7.5.0

@@ -9,0 +12,0 @@

12

lib/client.js

@@ -34,2 +34,3 @@ 'use strict'

this._Promise = c.Promise || global.Promise
this._types = new TypeOverrides(c.types)

@@ -236,3 +237,3 @@ this._ending = false

return new Promise((resolve, reject) => {
return new this._Promise((resolve, reject) => {
this._connect((error) => {

@@ -414,8 +415,5 @@ if (error) {

if (!query.callback) {
let resolveOut, rejectOut
result = new Promise((resolve, reject) => {
resolveOut = resolve
rejectOut = reject
result = new this._Promise((resolve, reject) => {
query.callback = (err, res) => err ? reject(err) : resolve(res)
})
query.callback = (err, res) => err ? rejectOut(err) : resolveOut(res)
}

@@ -464,3 +462,3 @@ }

} else {
return new Promise((resolve) => {
return new this._Promise((resolve) => {
this.connection.once('end', resolve)

@@ -467,0 +465,0 @@ })

@@ -90,3 +90,3 @@ 'use strict'

var ssl = typeof this.ssl === 'object' ? this.ssl : {sslmode: this.ssl}
var ssl = typeof this.ssl === 'object' ? this.ssl : { sslmode: this.ssl }
add(params, ssl, 'sslmode')

@@ -93,0 +93,0 @@ add(params, ssl, 'sslca')

@@ -28,2 +28,3 @@ 'use strict'

this._Promise = config.Promise || global.Promise
this._types = new TypeOverrides(config.types)

@@ -125,3 +126,3 @@

return new Promise((resolve, reject) => {
return new this._Promise((resolve, reject) => {
this._connect((error) => {

@@ -161,3 +162,3 @@ if (error) {

let resolveOut, rejectOut
result = new Promise((resolve, reject) => {
result = new this._Promise((resolve, reject) => {
resolveOut = resolve

@@ -202,7 +203,4 @@ rejectOut = reject

if (!cb) {
var resolve, reject
cb = (err) => err ? reject(err) : resolve()
result = new global.Promise(function (res, rej) {
resolve = res
reject = rej
result = new this._Promise(function (resolve, reject) {
cb = (err) => err ? reject(err) : resolve()
})

@@ -209,0 +207,0 @@ }

{
"name": "pg",
"version": "7.5.0",
"version": "7.6.0",
"description": "PostgreSQL client - pure javascript & libpq with the same API",

@@ -32,9 +32,10 @@ "keywords": [

"async": "0.9.0",
"bluebird": "3.5.2",
"co": "4.6.0",
"eslint": "4.2.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-node": "5.1.0",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"eslint": "^4.19.1",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^3.1.0",
"pg-copy-streams": "0.3.0"

@@ -41,0 +42,0 @@ },

@@ -14,2 +14,7 @@ node-postgres is made possible by the helpful contributors from the community well as the following generous supporters on [Patreon](https://www.patreon.com/node_postgres).

- Matthew Weber
- Andrea De Simon
- Todd Kennedy
- Alexander Robson
- Benjie Gillam
- David Hanson
- Franklin Davenport

Sorry, the diff of this file is not supported yet

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