@e-mc/db 0.6.14 → 0.6.16
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/index.js +4 -4
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -197,11 +197,11 @@ class Db extends core_1.ClientDb {
|
|
|
197
197
|
}
|
|
198
198
|
readTLSCert(value, cache) {
|
|
199
199
|
if ((0, types_1.isString)(value)) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return pathname;
|
|
200
|
+
if (request_1.default.isCert(value)) {
|
|
201
|
+
return value.trim();
|
|
203
202
|
}
|
|
204
|
-
|
|
203
|
+
const pathname = path.resolve(value);
|
|
204
|
+
if (Db.isPath(pathname) && this.canRead(pathname, { ownPermissionOnly: true })) {
|
|
205
205
|
return request_1.default.readCACert(pathname, cache);
|
|
206
206
|
}
|
|
207
207
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/db",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
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.6.
|
|
24
|
-
"@e-mc/request": "0.6.
|
|
25
|
-
"@e-mc/types": "0.6.
|
|
23
|
+
"@e-mc/core": "0.6.16",
|
|
24
|
+
"@e-mc/request": "0.6.16",
|
|
25
|
+
"@e-mc/types": "0.6.16"
|
|
26
26
|
}
|
|
27
27
|
}
|