mysql2 3.22.0 → 3.22.1-canary.cb5adccb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -290,6 +290,9 @@ class Packet {
290
290
  return new Date(y, m - 1, d, H, M, S, ms);
291
291
  }
292
292
  let str = this.readDateTimeString(6, 'T', null);
293
+ if (!str) {
294
+ return INVALID_DATE;
295
+ }
293
296
  if (str.length === 10) {
294
297
  str += 'T00:00:00';
295
298
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.22.0",
3
+ "version": "3.22.1-canary.cb5adccb",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",