@pi-r/mysql 0.8.1 → 0.8.2

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.
Files changed (2) hide show
  1. package/client/pool.js +1 -1
  2. package/package.json +28 -28
package/client/pool.js CHANGED
@@ -4,7 +4,6 @@ const types_1 = require("@e-mc/types");
4
4
  const DbPool = require('@e-mc/db/pool');
5
5
  const POOL_ACTIVE = new WeakSet();
6
6
  class MySQLPool extends DbPool {
7
- static CACHE_UNUSED = ['connectTimeout', 'queueLimit', 'waitForConnections', 'connectionLimit', 'maxIdle', 'idleTimeout', 'enableKeepAlive', 'keepAliveInitialDelay', 'Promise'];
8
7
  static asString(credential) {
9
8
  if ((credential.host || credential.socketPath) && credential.user) {
10
9
  return JSON.stringify(this.removeUUIDKey(credential));
@@ -54,4 +53,5 @@ class MySQLPool extends DbPool {
54
53
  return !!this.client.pool._closed;
55
54
  }
56
55
  }
56
+ MySQLPool.CACHE_UNUSED = ['connectTimeout', 'queueLimit', 'waitForConnections', 'connectionLimit', 'maxIdle', 'idleTimeout', 'enableKeepAlive', 'keepAliveInitialDelay', 'Promise'];
57
57
  module.exports = MySQLPool;
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "@pi-r/mysql",
3
- "version": "0.8.1",
4
- "description": "MySQL client driver for E-mc.",
5
- "main": "client/index.js",
6
- "types": "client/index.d.ts",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/anpham6/pi-r.git",
13
- "directory": "src/db/mysql"
14
- },
15
- "keywords": [
16
- "squared",
17
- "e-mc",
18
- "squared-functions"
19
- ],
20
- "author": "An Pham <anpham6@gmail.com>",
21
- "license": "MIT",
22
- "homepage": "https://github.com/anpham6/pi-r#readme",
23
- "dependencies": {
24
- "@e-mc/db": "^0.10.0",
25
- "@e-mc/types": "^0.10.0",
26
- "mysql2": "^3.11.0"
27
- }
28
- }
1
+ {
2
+ "name": "@pi-r/mysql",
3
+ "version": "0.8.2",
4
+ "description": "MySQL client driver for E-mc.",
5
+ "main": "client/index.js",
6
+ "types": "client/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/anpham6/pi-r.git",
13
+ "directory": "src/db/mysql"
14
+ },
15
+ "keywords": [
16
+ "squared",
17
+ "e-mc",
18
+ "squared-functions"
19
+ ],
20
+ "author": "An Pham <anpham6@gmail.com>",
21
+ "license": "MIT",
22
+ "homepage": "https://github.com/anpham6/pi-r#readme",
23
+ "dependencies": {
24
+ "@e-mc/db": "^0.10.2",
25
+ "@e-mc/types": "^0.10.2",
26
+ "mysql2": "^3.11.3"
27
+ }
28
+ }