Skip to content

Commit e519e17

Browse files
committed
version bump
1 parent 67f38e4 commit e519e17

File tree

3 files changed

+32
-36
lines changed

3 files changed

+32
-36
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* More detail regarding the MySQL module can be found here:
66
* https://github.com/mysqljs/mysql
77
* @author Jeremy Daly <jeremy@jeremydaly.com>
8-
* @version 1.5.3
8+
* @version 1.5.4
99
* @license MIT
1010
*/
1111

@@ -191,7 +191,11 @@ module.exports = (params) => {
191191
client.destroy() // destroy connection on timeout
192192
resetClient() // reset the client
193193
reject(err) // reject the promise with the error
194-
} else if (err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code) || err.code === 'PROTOCOL_CONNECTION_LOST' || err.code === 'EPIPE')) {
194+
} else if (
195+
err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code)
196+
|| err.code === 'PROTOCOL_CONNECTION_LOST'
197+
|| err.code === 'EPIPE')
198+
) {
195199
resetClient() // reset the client
196200
return resolve(query(...args)) // attempt the query again
197201
} else if (err) {

package-lock.json

Lines changed: 24 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-mysql",
3-
"version": "1.5.3",
3+
"version": "1.5.4",
44
"description": "A module for managing MySQL connections at serverless scale.",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -34,7 +34,7 @@
3434
},
3535
"devDependencies": {
3636
"chai": "^4.2.0",
37-
"coveralls": "^3.0.9",
37+
"coveralls": "^3.0.11",
3838
"eslint": "^5.16.0",
3939
"mocha": "^5.2.0",
4040
"mocha-lcov-reporter": "^1.3.0",

0 commit comments

Comments
 (0)