@e-mc/watch 0.9.27 → 0.9.28
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.9.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.28/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IFileManager, ModuleConstructor } from "./index";
|
|
@@ -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.28/lib/asset.d.ts
|
|
109
|
+
- https://www.unpkg.com/@e-mc/types@0.9.28/lib/core.d.ts
|
|
110
|
+
- https://www.unpkg.com/@e-mc/types@0.9.28/lib/filemanager.d.ts
|
|
111
|
+
- https://www.unpkg.com/@e-mc/types@0.9.28/lib/settings.d.ts
|
|
112
|
+
- https://www.unpkg.com/@e-mc/types@0.9.28/lib/watch.d.ts
|
|
113
113
|
|
|
114
114
|
* https://www.npmjs.com/package/@types/ws
|
|
115
115
|
|
package/index.js
CHANGED
|
@@ -756,7 +756,7 @@ class Watch extends core_1.Client {
|
|
|
756
756
|
return this.hasSecureProtocol();
|
|
757
757
|
}
|
|
758
758
|
setCA(value) {
|
|
759
|
-
if ((0, types_1.isString)(value) && core_1.Client.isPath(value = path.resolve(value
|
|
759
|
+
if ((0, types_1.isString)(value) && core_1.Client.isPath(value = path.resolve(value)) && this.canRead(value, { ownPermissionOnly: true })) {
|
|
760
760
|
this[kCa] = value;
|
|
761
761
|
return true;
|
|
762
762
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.28",
|
|
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.9.
|
|
24
|
-
"@e-mc/request": "0.9.
|
|
25
|
-
"@e-mc/types": "0.9.
|
|
23
|
+
"@e-mc/core": "0.9.28",
|
|
24
|
+
"@e-mc/request": "0.9.28",
|
|
25
|
+
"@e-mc/types": "0.9.28",
|
|
26
26
|
"picomatch": "^4.0.3",
|
|
27
27
|
"ws": "^8.18.3"
|
|
28
28
|
}
|