@e-mc/watch 0.10.18 → 0.10.19
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 +6 -6
- package/index.js +1 -1
- 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.19/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IFileManager, ModuleConstructor } from "./index";
|
|
@@ -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.19/lib/asset.d.ts
|
|
110
|
+
- https://www.unpkg.com/@e-mc/types@0.10.19/lib/core.d.ts
|
|
111
|
+
- https://www.unpkg.com/@e-mc/types@0.10.19/lib/filemanager.d.ts
|
|
112
|
+
- https://www.unpkg.com/@e-mc/types@0.10.19/lib/settings.d.ts
|
|
113
|
+
- https://www.unpkg.com/@e-mc/types@0.10.19/lib/watch.d.ts
|
|
114
114
|
|
|
115
115
|
* https://www.npmjs.com/package/@types/ws
|
|
116
116
|
|
package/index.js
CHANGED
|
@@ -778,7 +778,7 @@ class Watch extends core_1.Client {
|
|
|
778
778
|
return this.hasSecureProtocol();
|
|
779
779
|
}
|
|
780
780
|
setCA(value) {
|
|
781
|
-
if ((0, types_1.isString)(value) && core_1.Client.isPath(value = path.resolve(value
|
|
781
|
+
if ((0, types_1.isString)(value) && core_1.Client.isPath(value = path.resolve(value)) && this.canRead(value, { ownPermissionOnly: true })) {
|
|
782
782
|
this[kCa] = value;
|
|
783
783
|
return true;
|
|
784
784
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.19",
|
|
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.10.
|
|
24
|
-
"@e-mc/request": "0.10.
|
|
25
|
-
"@e-mc/types": "0.10.
|
|
23
|
+
"@e-mc/core": "0.10.19",
|
|
24
|
+
"@e-mc/request": "0.10.19",
|
|
25
|
+
"@e-mc/types": "0.10.19",
|
|
26
26
|
"picomatch": "^4.0.3",
|
|
27
27
|
"ws": "^8.18.3"
|
|
28
28
|
}
|