@e-mc/watch 0.9.17 → 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.
- 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.9.
|
|
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.
|
|
109
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
110
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
111
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
112
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
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
|
|
729
|
-
this[kTlsKey] = key
|
|
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
|
|
732
|
-
this[kTlsCert] = cert
|
|
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.
|
|
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.
|
|
24
|
-
"@e-mc/request": "0.9.
|
|
25
|
-
"@e-mc/types": "0.9.
|
|
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
|
}
|