@e-mc/watch 0.5.17 → 0.5.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.
- package/index.js +4 -4
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -717,11 +717,11 @@ class Watch extends core_1.Client {
|
|
|
717
717
|
if (ca) {
|
|
718
718
|
this.setCA(ca);
|
|
719
719
|
}
|
|
720
|
-
if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key
|
|
721
|
-
this[kTlsKey] = key
|
|
720
|
+
if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
|
|
721
|
+
this[kTlsKey] = key;
|
|
722
722
|
}
|
|
723
|
-
if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert
|
|
724
|
-
this[kTlsCert] = cert
|
|
723
|
+
if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
|
|
724
|
+
this[kTlsCert] = cert;
|
|
725
725
|
}
|
|
726
726
|
if ((0, types_1.isString)(passphrase)) {
|
|
727
727
|
this[kTlsPassphrase] = passphrase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "Watch constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.5.
|
|
24
|
-
"@e-mc/request": "0.5.
|
|
25
|
-
"@e-mc/types": "0.5.
|
|
23
|
+
"@e-mc/core": "0.5.18",
|
|
24
|
+
"@e-mc/request": "0.5.18",
|
|
25
|
+
"@e-mc/types": "0.5.18",
|
|
26
26
|
"picomatch": "^2.3.1",
|
|
27
27
|
"ws": "^8.18.0"
|
|
28
28
|
}
|