mysql2 3.17.4 → 3.17.5-canary.0e06e02e
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/lib/packets/packet.js
CHANGED
|
@@ -831,11 +831,10 @@ class Packet {
|
|
|
831
831
|
if (n === null) {
|
|
832
832
|
return this.writeInt8(0xfb);
|
|
833
833
|
}
|
|
834
|
-
// TODO: check that n is out of int precision
|
|
835
834
|
this.writeInt8(0xfe);
|
|
836
|
-
this.buffer.writeUInt32LE(n, this.offset);
|
|
835
|
+
this.buffer.writeUInt32LE(n >>> 0, this.offset);
|
|
837
836
|
this.offset += 4;
|
|
838
|
-
this.buffer.writeUInt32LE(n
|
|
837
|
+
this.buffer.writeUInt32LE(Math.floor(n / 0x100000000), this.offset);
|
|
839
838
|
this.offset += 4;
|
|
840
839
|
return this.offset;
|
|
841
840
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysql2",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.5-canary.0e06e02e",
|
|
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",
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"test": "npm run test:parallel && npm run test:global",
|
|
12
12
|
"test:parallel": "poku -c=\"poku.config.mjs\" test",
|
|
13
13
|
"test:global": "cross-env SUITE=global poku -c=\"poku.config.mjs\" test/global",
|
|
14
|
-
"test:bun": "npm run test:bun:parallel",
|
|
14
|
+
"test:bun": "npm run test:bun:parallel && npm run test:bun:global",
|
|
15
15
|
"test:bun:parallel": "bun poku -c=\"poku.config.mjs\" test",
|
|
16
|
+
"test:bun:global": "cross-env SUITE=global bun poku -c=\"poku.config.mjs\" test/global",
|
|
16
17
|
"test:deno": "npm run test:deno:parallel && npm run test:deno:global",
|
|
17
18
|
"test:deno:parallel": "deno run --allow-read --allow-env --allow-run npm:poku@canary -c=\"poku.config.mjs\" test",
|
|
18
19
|
"test:deno:global": "cross-env SUITE=global deno run --allow-read --allow-env --allow-run npm:poku@canary -c=\"poku.config.mjs\" test/global",
|
|
@@ -66,6 +67,9 @@
|
|
|
66
67
|
"named-placeholders": "^1.1.6",
|
|
67
68
|
"sql-escaper": "^1.3.3"
|
|
68
69
|
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@types/node": ">= 8"
|
|
72
|
+
},
|
|
69
73
|
"devDependencies": {
|
|
70
74
|
"@eslint/eslintrc": "^3.3.3",
|
|
71
75
|
"@eslint/js": "^9.39.2",
|