parent
18acd43188
commit
55403f0d5f
|
@ -10,8 +10,7 @@
|
||||||
"pretest": "node pretest.js",
|
"pretest": "node pretest.js",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test": "mocha test/*.test.js",
|
"test": "mocha test/*.test.js",
|
||||||
"posttest": "npm run lint",
|
"posttest": "npm run lint"
|
||||||
"postinstall": "patch-package"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"intl",
|
"intl",
|
||||||
|
@ -26,7 +25,6 @@
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"loopback-connector": "^6.2.3",
|
"loopback-connector": "^6.2.3",
|
||||||
"mysql2": "^3.6.3",
|
"mysql2": "^3.6.3",
|
||||||
"patch-package": "^8.0.0",
|
|
||||||
"strong-globalize": "^6.0.6"
|
"strong-globalize": "^6.0.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
diff --git a/node_modules/mysql2/lib/connection_config.js b/node_modules/mysql2/lib/connection_config.js
|
|
||||||
index ec52051..52ddc36 100644
|
|
||||||
--- a/node_modules/mysql2/lib/connection_config.js
|
|
||||||
+++ b/node_modules/mysql2/lib/connection_config.js
|
|
||||||
@@ -260,11 +260,11 @@ class ConnectionConfig {
|
|
||||||
static parseUrl(url) {
|
|
||||||
const parsedUrl = new URL(url);
|
|
||||||
const options = {
|
|
||||||
- host: parsedUrl.hostname,
|
|
||||||
+ host: decodeURIComponent(parsedUrl.hostname),
|
|
||||||
port: parseInt(parsedUrl.port, 10),
|
|
||||||
- database: parsedUrl.pathname.slice(1),
|
|
||||||
- user: parsedUrl.username,
|
|
||||||
- password: parsedUrl.password
|
|
||||||
+ database: decodeURIComponent(parsedUrl.pathname.slice(1)),
|
|
||||||
+ user: decodeURIComponent(parsedUrl.username),
|
|
||||||
+ password: decodeURIComponent(parsedUrl.password)
|
|
||||||
};
|
|
||||||
parsedUrl.searchParams.forEach((value, key) => {
|
|
||||||
try {
|
|
Loading…
Reference in New Issue