@e-mc/watch 0.11.7 → 0.11.9
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.11.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.9/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IFileManager, ModuleConstructor } from "./index";
|
|
@@ -109,11 +109,11 @@ instance.start(assets, { disk_read: ["/path/workspace/output/**"] });
|
|
|
109
109
|
|
|
110
110
|
## References
|
|
111
111
|
|
|
112
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
113
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
114
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
115
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
116
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
112
|
+
- https://www.unpkg.com/@e-mc/types@0.11.9/lib/asset.d.ts
|
|
113
|
+
- https://www.unpkg.com/@e-mc/types@0.11.9/lib/core.d.ts
|
|
114
|
+
- https://www.unpkg.com/@e-mc/types@0.11.9/lib/filemanager.d.ts
|
|
115
|
+
- https://www.unpkg.com/@e-mc/types@0.11.9/lib/settings.d.ts
|
|
116
|
+
- https://www.unpkg.com/@e-mc/types@0.11.9/lib/watch.d.ts
|
|
117
117
|
|
|
118
118
|
* https://www.npmjs.com/package/@types/ws
|
|
119
119
|
|
package/index.js
CHANGED
|
@@ -292,8 +292,10 @@ class Watch extends core_1.Client {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
if (!watch && localUri && !(watch = settings[localUri])) {
|
|
295
|
+
const pathname = core_1.Client.PLATFORM_WIN32 ? core_1.Client.toPosix(localUri) : localUri;
|
|
296
|
+
const options = core_1.Client.PLATFORM_WIN32 ? { nocase: true, windows: true, posixSlashes: true } : {};
|
|
295
297
|
for (const pattern in settings) {
|
|
296
|
-
if ((0, types_1.hasGlob)(pattern) && pm.isMatch(
|
|
298
|
+
if ((0, types_1.hasGlob)(pattern) && pm.isMatch(pathname, pattern, options) && (watch = settings[pattern])) {
|
|
297
299
|
break;
|
|
298
300
|
}
|
|
299
301
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/watch",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.9",
|
|
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.11.
|
|
24
|
-
"@e-mc/request": "0.11.
|
|
25
|
-
"@e-mc/types": "0.11.
|
|
23
|
+
"@e-mc/core": "0.11.9",
|
|
24
|
+
"@e-mc/request": "0.11.9",
|
|
25
|
+
"@e-mc/types": "0.11.9",
|
|
26
26
|
"picomatch": "^4.0.2",
|
|
27
|
-
"ws": "^8.18.
|
|
27
|
+
"ws": "^8.18.3"
|
|
28
28
|
}
|
|
29
29
|
}
|