@e-mc/watch 0.8.22 → 0.8.24
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
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
12
|
+
- https://www.unpkg.com/@e-mc/types@0.8.24/lib/index.d.ts
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IFileManager, ModuleConstructor } from "./index";
|
|
@@ -47,7 +47,7 @@ interface WatchConstructor extends ModuleConstructor {
|
|
|
47
47
|
createServer(port: number, secure?: SecureOptions | null, active?: boolean): ws.Server | null;
|
|
48
48
|
shutdown(): void;
|
|
49
49
|
setTimeout(value: number | string): void;
|
|
50
|
-
checkTimeout(client: ws): boolean;
|
|
50
|
+
checkTimeout(client: ws | ws.WebSocket): boolean;
|
|
51
51
|
readonly prototype: IWatch;
|
|
52
52
|
new(module?: WatchModule): IWatch;
|
|
53
53
|
/* @deprecated */
|
|
@@ -57,11 +57,11 @@ interface WatchConstructor extends ModuleConstructor {
|
|
|
57
57
|
|
|
58
58
|
## References
|
|
59
59
|
|
|
60
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
61
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
62
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
63
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
64
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
60
|
+
- https://www.unpkg.com/@e-mc/types@0.8.24/lib/asset.d.ts
|
|
61
|
+
- https://www.unpkg.com/@e-mc/types@0.8.24/lib/core.d.ts
|
|
62
|
+
- https://www.unpkg.com/@e-mc/types@0.8.24/lib/filemanager.d.ts
|
|
63
|
+
- https://www.unpkg.com/@e-mc/types@0.8.24/lib/settings.d.ts
|
|
64
|
+
- https://www.unpkg.com/@e-mc/types@0.8.24/lib/watch.d.ts
|
|
65
65
|
|
|
66
66
|
## LICENSE
|
|
67
67
|
|
package/index.js
CHANGED
|
@@ -734,11 +734,11 @@ class Watch extends core_1.Client {
|
|
|
734
734
|
if (ca) {
|
|
735
735
|
this.setCA(ca);
|
|
736
736
|
}
|
|
737
|
-
if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key
|
|
738
|
-
this[kTlsKey] = key
|
|
737
|
+
if (request_1.default.isCert(key) || core_1.Client.isPath(key = path.resolve(key)) && this.canRead(key, { ownPermissionOnly: true })) {
|
|
738
|
+
this[kTlsKey] = key;
|
|
739
739
|
}
|
|
740
|
-
if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert
|
|
741
|
-
this[kTlsCert] = cert
|
|
740
|
+
if (request_1.default.isCert(cert) || core_1.Client.isPath(cert = path.resolve(cert)) && this.canRead(cert, { ownPermissionOnly: true })) {
|
|
741
|
+
this[kTlsCert] = cert;
|
|
742
742
|
}
|
|
743
743
|
if ((0, types_1.isString)(passphrase)) {
|
|
744
744
|
this[kTlsPassphrase] = passphrase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.24",
|
|
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": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.8.
|
|
24
|
-
"@e-mc/request": "0.8.
|
|
25
|
-
"@e-mc/types": "0.8.
|
|
23
|
+
"@e-mc/core": "0.8.24",
|
|
24
|
+
"@e-mc/request": "0.8.24",
|
|
25
|
+
"@e-mc/types": "0.8.24",
|
|
26
26
|
"picomatch": "^3.0.1",
|
|
27
27
|
"ws": "^8.18.0"
|
|
28
28
|
}
|