Comparing version 7.4.0 to 7.4.1
@@ -65,3 +65,3 @@ 'use strict' | ||
this.stream.on('error', function (error) { | ||
const reportStreamError = function (error) { | ||
// don't raise ECONNRESET errors - they can & should be ignored | ||
@@ -73,3 +73,4 @@ // during disconnect | ||
self.emit('error', error) | ||
}) | ||
} | ||
this.stream.on('error', reportStreamError) | ||
@@ -102,7 +103,5 @@ this.stream.on('close', function () { | ||
self.attachListeners(self.stream) | ||
self.stream.on('error', reportStreamError) | ||
self.emit('sslconnect') | ||
self.stream.on('error', function (error) { | ||
self.emit('error', error) | ||
}) | ||
}) | ||
@@ -109,0 +108,0 @@ } |
{ | ||
"name": "pg", | ||
"version": "7.4.0", | ||
"version": "7.4.1", | ||
"description": "PostgreSQL client - pure javascript & libpq with the same API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -70,3 +70,3 @@ # node-postgres | ||
Copyright (c) 2010-2017 Brian Carlson (brian.m.carlson@gmail.com) | ||
Copyright (c) 2010-2018 Brian Carlson (brian.m.carlson@gmail.com) | ||
@@ -73,0 +73,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -13,1 +13,3 @@ 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 Welke | ||
- Matthew Weber | ||
- Benjie Gillam |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84888
20
1948