@e-mc/watch 0.11.5 → 0.11.8

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.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/index.js +3 -1
  3. 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.5/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.11.8/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.5/lib/asset.d.ts
113
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/core.d.ts
114
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/filemanager.d.ts
115
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/settings.d.ts
116
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/watch.d.ts
112
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/asset.d.ts
113
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/core.d.ts
114
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/filemanager.d.ts
115
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/settings.d.ts
116
+ - https://www.unpkg.com/@e-mc/types@0.11.8/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(localUri, pattern, { nocase: core_1.Client.PLATFORM_WIN32 }) && (watch = settings[pattern])) {
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.5",
3
+ "version": "0.11.8",
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.5",
24
- "@e-mc/request": "0.11.5",
25
- "@e-mc/types": "0.11.5",
23
+ "@e-mc/core": "0.11.8",
24
+ "@e-mc/request": "0.11.8",
25
+ "@e-mc/types": "0.11.8",
26
26
  "picomatch": "^4.0.2",
27
- "ws": "^8.18.0"
27
+ "ws": "^8.18.1"
28
28
  }
29
29
  }