@depup/mysql2 3.24.4-depup.0 → 3.24.6-depup.0
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.
- package/README.md +4 -3
- package/changes.json +6 -2
- package/lib/commands/query.js +5 -4
- package/lib/connection_config.js +4 -1
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -13,16 +13,17 @@ npm install @depup/mysql2
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [mysql2](https://www.npmjs.com/package/mysql2) @ 3.24.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [mysql2](https://www.npmjs.com/package/mysql2) @ 3.24.6 |
|
|
17
|
+
| Processed | 2026-10-13 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 2 |
|
|
20
20
|
|
|
21
21
|
## Dependency Changes
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
25
|
| lru.min | ^1.1.4 | ^1.1.5 |
|
|
26
|
+
| sql-escaper | ^1.5.1 | ^1.5.2 |
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
package/changes.json
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
"lru.min": {
|
|
4
4
|
"from": "^1.1.4",
|
|
5
5
|
"to": "^1.1.5"
|
|
6
|
+
},
|
|
7
|
+
"sql-escaper": {
|
|
8
|
+
"from": "^1.5.1",
|
|
9
|
+
"to": "^1.5.2"
|
|
6
10
|
}
|
|
7
11
|
},
|
|
8
|
-
"timestamp": "2026-
|
|
9
|
-
"totalUpdated":
|
|
12
|
+
"timestamp": "2026-10-13T16:11:06.545Z",
|
|
13
|
+
"totalUpdated": 2
|
|
10
14
|
}
|
package/lib/commands/query.js
CHANGED
|
@@ -12,7 +12,8 @@ const staticParser = require('../parsers/static_text_parser.js');
|
|
|
12
12
|
const ServerStatus = require('../constants/server_status.js');
|
|
13
13
|
const ConnectionConfig = require('../connection_config.js');
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const createEmptyPacket = () =>
|
|
16
|
+
new Packets.Packet(0, Buffer.allocUnsafe(4), 0, 4);
|
|
16
17
|
|
|
17
18
|
// http://dev.mysql.com/doc/internals/en/com-query.html
|
|
18
19
|
class Query extends Command {
|
|
@@ -157,7 +158,7 @@ class Query extends Command {
|
|
|
157
158
|
this._localStreamError = new Error(
|
|
158
159
|
`As a result of LOCAL INFILE command server wants to read ${path} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
|
|
159
160
|
);
|
|
160
|
-
connection.writePacket(
|
|
161
|
+
connection.writePacket(createEmptyPacket());
|
|
161
162
|
return this.infileOk;
|
|
162
163
|
}
|
|
163
164
|
|
|
@@ -179,12 +180,12 @@ class Query extends Command {
|
|
|
179
180
|
};
|
|
180
181
|
const onEnd = () => {
|
|
181
182
|
connection.removeListener('error', onConnectionError);
|
|
182
|
-
connection.writePacket(
|
|
183
|
+
connection.writePacket(createEmptyPacket());
|
|
183
184
|
};
|
|
184
185
|
const onError = (err) => {
|
|
185
186
|
this._localStreamError = err;
|
|
186
187
|
connection.removeListener('error', onConnectionError);
|
|
187
|
-
connection.writePacket(
|
|
188
|
+
connection.writePacket(createEmptyPacket());
|
|
188
189
|
};
|
|
189
190
|
this._unpipeStream = () => {
|
|
190
191
|
connection.stream.removeListener('pause', onPause);
|
package/lib/connection_config.js
CHANGED
|
@@ -333,8 +333,11 @@ class ConnectionConfig {
|
|
|
333
333
|
|
|
334
334
|
static parseUrl(url) {
|
|
335
335
|
const parsedUrl = new URL(url);
|
|
336
|
+
const { hostname } = parsedUrl;
|
|
336
337
|
const options = {
|
|
337
|
-
host: decodeURIComponent(
|
|
338
|
+
host: decodeURIComponent(
|
|
339
|
+
hostname.startsWith('[') ? hostname.slice(1, -1) : hostname
|
|
340
|
+
),
|
|
338
341
|
port: parseInt(parsedUrl.port, 10),
|
|
339
342
|
database: decodeURIComponent(parsedUrl.pathname.slice(1)),
|
|
340
343
|
user: decodeURIComponent(parsedUrl.username),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/mysql2",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.6-depup.0",
|
|
4
4
|
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS (with updated dependencies)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "typings/mysql/index",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"long": "^5.3.2",
|
|
73
73
|
"lru.min": "^1.1.5",
|
|
74
74
|
"named-placeholders": "^1.1.6",
|
|
75
|
-
"sql-escaper": "^1.5.
|
|
75
|
+
"sql-escaper": "^1.5.2"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@types/node": ">= 8"
|
|
@@ -101,12 +101,16 @@
|
|
|
101
101
|
"lru.min": {
|
|
102
102
|
"from": "^1.1.4",
|
|
103
103
|
"to": "^1.1.5"
|
|
104
|
+
},
|
|
105
|
+
"sql-escaper": {
|
|
106
|
+
"from": "^1.5.1",
|
|
107
|
+
"to": "^1.5.2"
|
|
104
108
|
}
|
|
105
109
|
},
|
|
106
|
-
"depsUpdated":
|
|
110
|
+
"depsUpdated": 2,
|
|
107
111
|
"originalPackage": "mysql2",
|
|
108
|
-
"originalVersion": "3.24.
|
|
109
|
-
"processedAt": "2026-
|
|
112
|
+
"originalVersion": "3.24.6",
|
|
113
|
+
"processedAt": "2026-10-13T16:11:12.542Z",
|
|
110
114
|
"smokeTest": "passed"
|
|
111
115
|
}
|
|
112
116
|
}
|