@e-mc/watch 0.13.6 → 0.13.7

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.
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.13.6/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.13.7/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IFileManager, ModuleConstructor } from "./index";
@@ -110,11 +110,11 @@ instance.start(assets, { disk_read: ["/path/workspace/output/**"] });
110
110
 
111
111
  ## References
112
112
 
113
- - https://www.unpkg.com/@e-mc/types@0.13.6/lib/asset.d.ts
114
- - https://www.unpkg.com/@e-mc/types@0.13.6/lib/core.d.ts
115
- - https://www.unpkg.com/@e-mc/types@0.13.6/lib/filemanager.d.ts
116
- - https://www.unpkg.com/@e-mc/types@0.13.6/lib/settings.d.ts
117
- - https://www.unpkg.com/@e-mc/types@0.13.6/lib/watch.d.ts
113
+ - https://www.unpkg.com/@e-mc/types@0.13.7/lib/asset.d.ts
114
+ - https://www.unpkg.com/@e-mc/types@0.13.7/lib/core.d.ts
115
+ - https://www.unpkg.com/@e-mc/types@0.13.7/lib/filemanager.d.ts
116
+ - https://www.unpkg.com/@e-mc/types@0.13.7/lib/settings.d.ts
117
+ - https://www.unpkg.com/@e-mc/types@0.13.7/lib/watch.d.ts
118
118
 
119
119
  * https://www.npmjs.com/package/@types/ws
120
120
 
@@ -117,12 +117,12 @@ class FileGroup extends core_1.AbortComponent {
117
117
  }
118
118
  }
119
119
  const outgoing = JSON.stringify(data);
120
- server.clients.forEach(client => {
120
+ for (const client of server.clients) {
121
121
  if (FileGroup.checkTimeout(client)) {
122
122
  client.send(outgoing);
123
123
  result = true;
124
124
  }
125
- });
125
+ }
126
126
  }
127
127
  return result;
128
128
  }
package/index.js CHANGED
@@ -801,7 +801,7 @@ class Watch extends core_1.Client {
801
801
  return this.hasSecureProtocol();
802
802
  }
803
803
  setCA(value) {
804
- if ((0, types_1.isString)(value) && core_1.Client.isPath(value = path.resolve(value = value.trim())) && this.canRead(value, { ownPermissionOnly: true })) {
804
+ if ((0, types_1.isString)(value) && core_1.Client.isPath(value = path.resolve(value)) && this.canRead(value, { ownPermissionOnly: true })) {
805
805
  this.#ca = value;
806
806
  return true;
807
807
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/watch",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
4
4
  "description": "Watch constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "license": "BSD-3-Clause",
20
20
  "homepage": "https://github.com/anpham6/e-mc#readme",
21
21
  "dependencies": {
22
- "@e-mc/core": "0.13.6",
23
- "@e-mc/request": "0.13.6",
24
- "@e-mc/types": "0.13.6",
22
+ "@e-mc/core": "0.13.7",
23
+ "@e-mc/request": "0.13.7",
24
+ "@e-mc/types": "0.13.7",
25
25
  "picomatch": "^4.0.3",
26
26
  "ws": "^8.18.3"
27
27
  }