@e-mc/watch 0.6.15 → 0.6.16

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
@@ -746,11 +746,11 @@ class Watch extends core_1.Client {
746
746
  if (ca) {
747
747
  this.setCA(ca);
748
748
  }
749
- if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key = key.trim())) && this.canRead(key, { ownPermissionOnly: true })) {
750
- this[kTlsKey] = key.trim();
749
+ if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
750
+ this[kTlsKey] = key;
751
751
  }
752
- if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert = cert.trim())) && this.canRead(cert, { ownPermissionOnly: true })) {
753
- this[kTlsCert] = cert.trim();
752
+ if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
753
+ this[kTlsCert] = cert;
754
754
  }
755
755
  if ((0, types_1.isString)(passphrase)) {
756
756
  this[kTlsPassphrase] = passphrase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/watch",
3
- "version": "0.6.15",
3
+ "version": "0.6.16",
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.6.15",
24
- "@e-mc/request": "0.6.15",
25
- "@e-mc/types": "0.6.15",
23
+ "@e-mc/core": "0.6.16",
24
+ "@e-mc/request": "0.6.16",
25
+ "@e-mc/types": "0.6.16",
26
26
  "picomatch": "^2.3.1",
27
27
  "ws": "^8.18.0"
28
28
  }