@e-mc/db 0.8.23 → 0.8.25

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 (3) hide show
  1. package/README.md +6 -6
  2. package/index.js +4 -4
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- - https://www.unpkg.com/@e-mc/types@0.8.23/lib/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.25/lib/index.d.ts
13
13
 
14
14
  ```typescript
15
15
  import type { DbDataSource } from "./squared";
@@ -94,11 +94,11 @@ interface DbPoolConstructor {
94
94
 
95
95
  ## References
96
96
 
97
- - https://www.unpkg.com/@e-mc/types@0.8.23/lib/squared.d.ts
98
- - https://www.unpkg.com/@e-mc/types@0.8.23/lib/core.d.ts
99
- - https://www.unpkg.com/@e-mc/types@0.8.23/lib/db.d.ts
100
- - https://www.unpkg.com/@e-mc/types@0.8.23/lib/object.d.ts
101
- - https://www.unpkg.com/@e-mc/types@0.8.23/lib/settings.d.ts
97
+ - https://www.unpkg.com/@e-mc/types@0.8.25/lib/squared.d.ts
98
+ - https://www.unpkg.com/@e-mc/types@0.8.25/lib/core.d.ts
99
+ - https://www.unpkg.com/@e-mc/types@0.8.25/lib/db.d.ts
100
+ - https://www.unpkg.com/@e-mc/types@0.8.25/lib/object.d.ts
101
+ - https://www.unpkg.com/@e-mc/types@0.8.25/lib/settings.d.ts
102
102
 
103
103
  ## LICENSE
104
104
 
package/index.js CHANGED
@@ -229,11 +229,11 @@ class Db extends core_1.ClientDb {
229
229
  }
230
230
  readTLSCert(value, cache) {
231
231
  if ((0, types_1.isString)(value)) {
232
- let pathname = value.trim();
233
- if (request_1.default.isCert(pathname)) {
234
- return pathname;
232
+ if (request_1.default.isCert(value)) {
233
+ return value.trim();
235
234
  }
236
- if (Db.isPath(pathname = path.resolve(pathname)) && this.canRead(pathname, { ownPermissionOnly: true })) {
235
+ const pathname = path.resolve(value);
236
+ if (Db.isPath(pathname) && this.canRead(pathname, { ownPermissionOnly: true })) {
237
237
  return request_1.default.readCACert(pathname, cache);
238
238
  }
239
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/db",
3
- "version": "0.8.23",
3
+ "version": "0.8.25",
4
4
  "description": "DB modules for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.8.23",
24
- "@e-mc/request": "0.8.23",
25
- "@e-mc/types": "0.8.23"
23
+ "@e-mc/core": "0.8.25",
24
+ "@e-mc/request": "0.8.25",
25
+ "@e-mc/types": "0.8.25"
26
26
  }
27
27
  }