@e-mc/db 0.11.3 → 0.11.5
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/README.md +6 -6
- package/index.js +4 -4
- 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.11.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.5/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.11.
|
|
208
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
209
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
210
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
211
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
207
|
+
- https://www.unpkg.com/@e-mc/types@0.11.5/lib/squared.d.ts
|
|
208
|
+
- https://www.unpkg.com/@e-mc/types@0.11.5/lib/core.d.ts
|
|
209
|
+
- https://www.unpkg.com/@e-mc/types@0.11.5/lib/db.d.ts
|
|
210
|
+
- https://www.unpkg.com/@e-mc/types@0.11.5/lib/http.d.ts
|
|
211
|
+
- https://www.unpkg.com/@e-mc/types@0.11.5/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
|
-
|
|
229
|
-
|
|
230
|
-
return pathname;
|
|
228
|
+
if (request_1.isCert(value)) {
|
|
229
|
+
return value.trim();
|
|
231
230
|
}
|
|
232
|
-
|
|
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.11.
|
|
3
|
+
"version": "0.11.5",
|
|
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.11.
|
|
24
|
-
"@e-mc/request": "0.11.
|
|
25
|
-
"@e-mc/types": "0.11.
|
|
23
|
+
"@e-mc/core": "0.11.5",
|
|
24
|
+
"@e-mc/request": "0.11.5",
|
|
25
|
+
"@e-mc/types": "0.11.5"
|
|
26
26
|
}
|
|
27
27
|
}
|