mysql2 3.6.4 → 3.6.5

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.
@@ -260,11 +260,11 @@ class ConnectionConfig {
260
260
  static parseUrl(url) {
261
261
  const parsedUrl = new URL(url);
262
262
  const options = {
263
- host: parsedUrl.hostname,
263
+ host: decodeURIComponent(parsedUrl.hostname),
264
264
  port: parseInt(parsedUrl.port, 10),
265
- database: parsedUrl.pathname.slice(1),
266
- user: parsedUrl.username,
267
- password: parsedUrl.password
265
+ database: decodeURIComponent(parsedUrl.pathname.slice(1)),
266
+ user: decodeURIComponent(parsedUrl.username),
267
+ password: decodeURIComponent(parsedUrl.password),
268
268
  };
269
269
  parsedUrl.searchParams.forEach((value, key) => {
270
270
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.6.4",
3
+ "version": "3.6.5",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "directories": {