Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Mar 30, 2020
1 parent 67f38e4 commit e519e17
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* More detail regarding the MySQL module can be found here:
* https://github.com/mysqljs/mysql
* @author Jeremy Daly <[email protected]>
* @version 1.5.3
* @version 1.5.4
* @license MIT
*/

Expand Down Expand Up @@ -191,7 +191,11 @@ module.exports = (params) => {
client.destroy() // destroy connection on timeout
resetClient() // reset the client
reject(err) // reject the promise with the error
} else if (err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code) || err.code === 'PROTOCOL_CONNECTION_LOST' || err.code === 'EPIPE')) {
} else if (
err && (/^PROTOCOL_ENQUEUE_AFTER_/.test(err.code)
|| err.code === 'PROTOCOL_CONNECTION_LOST'
|| err.code === 'EPIPE')
) {
resetClient() // reset the client
return resolve(query(...args)) // attempt the query again
} else if (err) {
Expand Down
56 changes: 24 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-mysql",
"version": "1.5.3",
"version": "1.5.4",
"description": "A module for managing MySQL connections at serverless scale.",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.0.9",
"coveralls": "^3.0.11",
"eslint": "^5.16.0",
"mocha": "^5.2.0",
"mocha-lcov-reporter": "^1.3.0",
Expand Down

0 comments on commit e519e17

Please sign in to comment.