@e-mc/watch 0.10.8 → 0.10.9
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 +7 -7
- package/index.js +4 -4
- 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.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.9/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
|
}
|
|
@@ -106,11 +106,11 @@ instance.start(assets, { disk_read: ["/path/workspace/output/**"] });
|
|
|
106
106
|
|
|
107
107
|
## References
|
|
108
108
|
|
|
109
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
110
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
111
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
112
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
113
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
109
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/asset.d.ts
|
|
110
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/core.d.ts
|
|
111
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/filemanager.d.ts
|
|
112
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/settings.d.ts
|
|
113
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/watch.d.ts
|
|
114
114
|
|
|
115
115
|
* https://www.npmjs.com/package/@types/ws
|
|
116
116
|
|
package/index.js
CHANGED
|
@@ -742,11 +742,11 @@ class Watch extends core_1.Client {
|
|
|
742
742
|
if (ca) {
|
|
743
743
|
this.setCA(ca);
|
|
744
744
|
}
|
|
745
|
-
if (request_1.isCert(key) || core_1.Client.isPath(key = path.resolve(key
|
|
746
|
-
this[kTlsKey] = key
|
|
745
|
+
if (request_1.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
|
|
746
|
+
this[kTlsKey] = key;
|
|
747
747
|
}
|
|
748
|
-
if (request_1.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert
|
|
749
|
-
this[kTlsCert] = cert
|
|
748
|
+
if (request_1.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
|
|
749
|
+
this[kTlsCert] = cert;
|
|
750
750
|
}
|
|
751
751
|
if ((0, types_1.isString)(passphrase)) {
|
|
752
752
|
this[kTlsPassphrase] = passphrase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
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.10.
|
|
24
|
-
"@e-mc/request": "0.10.
|
|
25
|
-
"@e-mc/types": "0.10.
|
|
23
|
+
"@e-mc/core": "0.10.9",
|
|
24
|
+
"@e-mc/request": "0.10.9",
|
|
25
|
+
"@e-mc/types": "0.10.9",
|
|
26
26
|
"picomatch": "^4.0.2",
|
|
27
27
|
"ws": "^8.18.0"
|
|
28
28
|
}
|