@e-mc/watch 0.7.19 → 0.7.20

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 (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +4 -4
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 = key.trim())) && this.canRead(key, { ownPermissionOnly: true })) {
747
- this[kTlsKey] = key.trim();
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 = cert.trim())) && this.canRead(cert, { ownPermissionOnly: true })) {
750
- this[kTlsCert] = cert.trim();
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.19",
3
+ "version": "0.7.20",
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.7.19",
24
- "@e-mc/request": "0.7.19",
25
- "@e-mc/types": "0.7.19",
23
+ "@e-mc/core": "0.7.20",
24
+ "@e-mc/request": "0.7.20",
25
+ "@e-mc/types": "0.7.20",
26
26
  "picomatch": "^3.0.1",
27
27
  "ws": "^8.18.0"
28
28
  }