@e-mc/watch 0.7.19 → 0.7.21
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 +5 -5
package/index.js
CHANGED
|
@@ -743,11 +743,11 @@ class Watch extends core_1.Client {
|
|
|
743
743
|
if (ca) {
|
|
744
744
|
this.setCA(ca);
|
|
745
745
|
}
|
|
746
|
-
if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key
|
|
747
|
-
this[kTlsKey] = key
|
|
746
|
+
if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
|
|
747
|
+
this[kTlsKey] = key;
|
|
748
748
|
}
|
|
749
|
-
if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert
|
|
750
|
-
this[kTlsCert] = cert
|
|
749
|
+
if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
|
|
750
|
+
this[kTlsCert] = cert;
|
|
751
751
|
}
|
|
752
752
|
if ((0, types_1.isString)(passphrase)) {
|
|
753
753
|
this[kTlsPassphrase] = passphrase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.21",
|
|
4
4
|
"description": "Watch constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.7.
|
|
24
|
-
"@e-mc/request": "0.7.
|
|
25
|
-
"@e-mc/types": "0.7.
|
|
23
|
+
"@e-mc/core": "0.7.21",
|
|
24
|
+
"@e-mc/request": "0.7.21",
|
|
25
|
+
"@e-mc/types": "0.7.21",
|
|
26
26
|
"picomatch": "^3.0.1",
|
|
27
|
-
"ws": "^8.18.
|
|
27
|
+
"ws": "^8.18.1"
|
|
28
28
|
}
|
|
29
29
|
}
|