@e-mc/watch 0.5.17 → 0.5.19

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 +5 -5
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 = key.trim())) && this.canRead(key, { ownPermissionOnly: true })) {
721
- this[kTlsKey] = key.trim();
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 = cert.trim())) && this.canRead(cert, { ownPermissionOnly: true })) {
724
- this[kTlsCert] = cert.trim();
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.17",
3
+ "version": "0.5.19",
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.5.17",
24
- "@e-mc/request": "0.5.17",
25
- "@e-mc/types": "0.5.17",
23
+ "@e-mc/core": "0.5.19",
24
+ "@e-mc/request": "0.5.19",
25
+ "@e-mc/types": "0.5.19",
26
26
  "picomatch": "^2.3.1",
27
- "ws": "^8.18.0"
27
+ "ws": "^8.18.1"
28
28
  }
29
29
  }