@e-mc/watch 0.11.3 → 0.11.4

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.11.3/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.11.4/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IFileManager, ModuleConstructor } from "./index";
@@ -50,7 +50,7 @@ interface WatchConstructor extends ModuleConstructor {
50
50
  createServer(port: number, secure?: SecureOptions | null, active?: boolean): ws.Server | null;
51
51
  shutdown(): void;
52
52
  setTimeout(value: number | string): void;
53
- checkTimeout(client: ws): boolean;
53
+ checkTimeout(client: ws | ws.WebSocket): boolean;
54
54
  isConnectionError(err: unknown): boolean;
55
55
  readonly prototype: IWatch;
56
56
  new(module?: WatchModule): IWatch;
@@ -109,11 +109,11 @@ instance.start(assets, { disk_read: ["/path/workspace/output/**"] });
109
109
 
110
110
  ## References
111
111
 
112
- - https://www.unpkg.com/@e-mc/types@0.11.3/lib/asset.d.ts
113
- - https://www.unpkg.com/@e-mc/types@0.11.3/lib/core.d.ts
114
- - https://www.unpkg.com/@e-mc/types@0.11.3/lib/filemanager.d.ts
115
- - https://www.unpkg.com/@e-mc/types@0.11.3/lib/settings.d.ts
116
- - https://www.unpkg.com/@e-mc/types@0.11.3/lib/watch.d.ts
112
+ - https://www.unpkg.com/@e-mc/types@0.11.4/lib/asset.d.ts
113
+ - https://www.unpkg.com/@e-mc/types@0.11.4/lib/core.d.ts
114
+ - https://www.unpkg.com/@e-mc/types@0.11.4/lib/filemanager.d.ts
115
+ - https://www.unpkg.com/@e-mc/types@0.11.4/lib/settings.d.ts
116
+ - https://www.unpkg.com/@e-mc/types@0.11.4/lib/watch.d.ts
117
117
 
118
118
  * https://www.npmjs.com/package/@types/ws
119
119
 
package/index.js CHANGED
@@ -733,11 +733,11 @@ class Watch extends core_1.Client {
733
733
  if (ca) {
734
734
  this.setCA(ca);
735
735
  }
736
- if (request_1.isCert(key) || core_1.Client.isPath(key = path.resolve(key = key.trim())) && this.canRead(key, { ownPermissionOnly: true })) {
737
- this[kTlsKey] = key.trim();
736
+ if (request_1.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
737
+ this[kTlsKey] = key;
738
738
  }
739
- if (request_1.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert = cert.trim())) && this.canRead(cert, { ownPermissionOnly: true })) {
740
- this[kTlsCert] = cert.trim();
739
+ if (request_1.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
740
+ this[kTlsCert] = cert;
741
741
  }
742
742
  if ((0, types_1.isString)(passphrase)) {
743
743
  this[kTlsPassphrase] = passphrase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/watch",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
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.11.3",
24
- "@e-mc/request": "0.11.3",
25
- "@e-mc/types": "0.11.3",
23
+ "@e-mc/core": "0.11.4",
24
+ "@e-mc/request": "0.11.4",
25
+ "@e-mc/types": "0.11.4",
26
26
  "picomatch": "^4.0.2",
27
27
  "ws": "^8.18.0"
28
28
  }