@e-mc/db 0.9.17 → 0.9.18

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
- * [View Source](https://www.unpkg.com/@e-mc/types@0.9.17/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.18/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { DbDataSource } from "./squared";
@@ -200,11 +200,11 @@ const [rows1, rows2] = await instance.executeBatchQuery([
200
200
 
201
201
  ## References
202
202
 
203
- - https://www.unpkg.com/@e-mc/types@0.9.17/lib/squared.d.ts
204
- - https://www.unpkg.com/@e-mc/types@0.9.17/lib/core.d.ts
205
- - https://www.unpkg.com/@e-mc/types@0.9.17/lib/db.d.ts
206
- - https://www.unpkg.com/@e-mc/types@0.9.17/lib/http.d.ts
207
- - https://www.unpkg.com/@e-mc/types@0.9.17/lib/settings.d.ts
203
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/squared.d.ts
204
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/core.d.ts
205
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/db.d.ts
206
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/http.d.ts
207
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/settings.d.ts
208
208
 
209
209
  * https://www.npmjs.com/package/@types/node
210
210
 
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.isCert(pathname)) {
234
- return pathname;
232
+ if (request_1.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.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.9.17",
3
+ "version": "0.9.18",
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": "BSD-3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.9.17",
24
- "@e-mc/request": "0.9.17",
25
- "@e-mc/types": "0.9.17"
23
+ "@e-mc/core": "0.9.18",
24
+ "@e-mc/request": "0.9.18",
25
+ "@e-mc/types": "0.9.18"
26
26
  }
27
27
  }