@e-mc/watch 0.9.16 → 0.9.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.
Files changed (3) hide show
  1. package/README.md +7 -7
  2. package/index.js +4 -4
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.9.16/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.18/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IFileManager, ModuleConstructor } from "./index";
@@ -48,7 +48,7 @@ interface WatchConstructor extends ModuleConstructor {
48
48
  createServer(port: number, secure?: SecureOptions | null, active?: boolean): ws.Server | null;
49
49
  shutdown(): void;
50
50
  setTimeout(value: number | string): void;
51
- checkTimeout(client: ws): boolean;
51
+ checkTimeout(client: ws | ws.WebSocket): boolean;
52
52
  readonly prototype: IWatch;
53
53
  new(module?: WatchModule): IWatch;
54
54
  }
@@ -105,11 +105,11 @@ instance.start(assets, { disk_read: ["/path/workspace/output/**"] });
105
105
 
106
106
  ## References
107
107
 
108
- - https://www.unpkg.com/@e-mc/types@0.9.16/lib/asset.d.ts
109
- - https://www.unpkg.com/@e-mc/types@0.9.16/lib/core.d.ts
110
- - https://www.unpkg.com/@e-mc/types@0.9.16/lib/filemanager.d.ts
111
- - https://www.unpkg.com/@e-mc/types@0.9.16/lib/settings.d.ts
112
- - https://www.unpkg.com/@e-mc/types@0.9.16/lib/watch.d.ts
108
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/asset.d.ts
109
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/core.d.ts
110
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/filemanager.d.ts
111
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/settings.d.ts
112
+ - https://www.unpkg.com/@e-mc/types@0.9.18/lib/watch.d.ts
113
113
 
114
114
  * https://www.npmjs.com/package/@types/ws
115
115
 
package/index.js CHANGED
@@ -725,11 +725,11 @@ class Watch extends core_1.Client {
725
725
  if (ca) {
726
726
  this.setCA(ca);
727
727
  }
728
- if (request_1.isCert(key) || core_1.Client.isPath(key = path.resolve(key = key.trim())) && this.canRead(key, { ownPermissionOnly: true })) {
729
- this[kTlsKey] = key.trim();
728
+ if (request_1.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
729
+ this[kTlsKey] = key;
730
730
  }
731
- if (request_1.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert = cert.trim())) && this.canRead(cert, { ownPermissionOnly: true })) {
732
- this[kTlsCert] = cert.trim();
731
+ if (request_1.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
732
+ this[kTlsCert] = cert;
733
733
  }
734
734
  if ((0, types_1.isString)(passphrase)) {
735
735
  this[kTlsPassphrase] = passphrase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/watch",
3
- "version": "0.9.16",
3
+ "version": "0.9.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": "BSD-3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.9.16",
24
- "@e-mc/request": "0.9.16",
25
- "@e-mc/types": "0.9.16",
23
+ "@e-mc/core": "0.9.18",
24
+ "@e-mc/request": "0.9.18",
25
+ "@e-mc/types": "0.9.18",
26
26
  "picomatch": "^4.0.2",
27
27
  "ws": "^8.18.0"
28
28
  }