@e-mc/watch 0.10.10 → 0.10.12
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 +3 -1
- package/package.json +5 -5
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.12/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.12/lib/asset.d.ts
|
|
110
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/core.d.ts
|
|
111
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/filemanager.d.ts
|
|
112
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/settings.d.ts
|
|
113
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/watch.d.ts
|
|
114
114
|
|
|
115
115
|
* https://www.npmjs.com/package/@types/ws
|
|
116
116
|
|
package/index.js
CHANGED
|
@@ -299,8 +299,10 @@ class Watch extends core_1.Client {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
if (!watch && localUri && !(watch = settings[localUri])) {
|
|
302
|
+
const pathname = core_1.Client.PLATFORM_WIN32 ? core_1.Client.toPosix(localUri) : localUri;
|
|
303
|
+
const options = core_1.Client.PLATFORM_WIN32 ? { nocase: true, windows: true, posixSlashes: true } : {};
|
|
302
304
|
for (const pattern in settings) {
|
|
303
|
-
if ((0, types_1.hasGlob)(pattern) && pm.isMatch(
|
|
305
|
+
if ((0, types_1.hasGlob)(pattern) && pm.isMatch(pathname, pattern, options) && (watch = settings[pattern])) {
|
|
304
306
|
break;
|
|
305
307
|
}
|
|
306
308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12",
|
|
4
4
|
"description": "Watch constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,10 +20,10 @@
|
|
|
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.12",
|
|
24
|
+
"@e-mc/request": "0.10.12",
|
|
25
|
+
"@e-mc/types": "0.10.12",
|
|
26
26
|
"picomatch": "^4.0.2",
|
|
27
|
-
"ws": "^8.18.
|
|
27
|
+
"ws": "^8.18.1"
|
|
28
28
|
}
|
|
29
29
|
}
|