@e-mc/db 0.10.8 → 0.10.9

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.10.8/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.9/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { DbDataSource } from "./squared";
@@ -204,11 +204,11 @@ const [rows1, rows2] = await instance.executeBatchQuery([
204
204
 
205
205
  ## References
206
206
 
207
- - https://www.unpkg.com/@e-mc/types@0.10.8/lib/squared.d.ts
208
- - https://www.unpkg.com/@e-mc/types@0.10.8/lib/core.d.ts
209
- - https://www.unpkg.com/@e-mc/types@0.10.8/lib/db.d.ts
210
- - https://www.unpkg.com/@e-mc/types@0.10.8/lib/http.d.ts
211
- - https://www.unpkg.com/@e-mc/types@0.10.8/lib/settings.d.ts
207
+ - https://www.unpkg.com/@e-mc/types@0.10.9/lib/squared.d.ts
208
+ - https://www.unpkg.com/@e-mc/types@0.10.9/lib/core.d.ts
209
+ - https://www.unpkg.com/@e-mc/types@0.10.9/lib/db.d.ts
210
+ - https://www.unpkg.com/@e-mc/types@0.10.9/lib/http.d.ts
211
+ - https://www.unpkg.com/@e-mc/types@0.10.9/lib/settings.d.ts
212
212
 
213
213
  * https://www.npmjs.com/package/@types/node
214
214
 
package/index.js CHANGED
@@ -225,11 +225,11 @@ class Db extends core_1.ClientDb {
225
225
  }
226
226
  readTLSCert(value, cache) {
227
227
  if ((0, types_1.isString)(value)) {
228
- let pathname = value.trim();
229
- if (request_1.isCert(pathname)) {
230
- return pathname;
228
+ if (request_1.isCert(value)) {
229
+ return value.trim();
231
230
  }
232
- if (Db.isPath(pathname = path.resolve(pathname)) && this.canRead(pathname, { ownPermissionOnly: true })) {
231
+ const pathname = path.resolve(value);
232
+ if (Db.isPath(pathname) && this.canRead(pathname, { ownPermissionOnly: true })) {
233
233
  return request_1.readCACert(pathname, cache);
234
234
  }
235
235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/db",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
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.10.8",
24
- "@e-mc/request": "0.10.8",
25
- "@e-mc/types": "0.10.8"
23
+ "@e-mc/core": "0.10.9",
24
+ "@e-mc/request": "0.10.9",
25
+ "@e-mc/types": "0.10.9"
26
26
  }
27
27
  }