@e-mc/watch 0.12.5 → 0.12.7

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 +2 -2
  3. 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.12.5/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.12.7/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IFileManager, ModuleConstructor } from "./index";
@@ -110,11 +110,11 @@ instance.start(assets, { disk_read: ["/path/workspace/output/**"] });
110
110
 
111
111
  ## References
112
112
 
113
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/asset.d.ts
114
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/core.d.ts
115
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/filemanager.d.ts
116
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/settings.d.ts
117
- - https://www.unpkg.com/@e-mc/types@0.12.5/lib/watch.d.ts
113
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/asset.d.ts
114
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/core.d.ts
115
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/filemanager.d.ts
116
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/settings.d.ts
117
+ - https://www.unpkg.com/@e-mc/types@0.12.7/lib/watch.d.ts
118
118
 
119
119
  * https://www.npmjs.com/package/@types/ws
120
120
 
package/index.js CHANGED
@@ -586,8 +586,8 @@ class Watch extends core_1.Client {
586
586
  const mtime = Math.floor(fs.statSync(uri).mtimeMs);
587
587
  if (mtime > ptime) {
588
588
  ptime = mtime + types_1.THRESHOLD.WATCH_CHANGE;
589
- if (filename && options.recursive && !group.matchRecursive(path.join(src, filename))) {
590
- this.formatMessage(16, 'WATCH', ['File modification ignored', 'recursive'], path.join(src, filename), { titleColor: 'yellow' });
589
+ if (filename && options.recursive && !group.matchRecursive(path.join(src, filename.toString()))) {
590
+ this.formatMessage(16, 'WATCH', ['File modification ignored', 'recursive'], path.join(src, filename.toString()), { titleColor: 'yellow' });
591
591
  return;
592
592
  }
593
593
  for (const [key, input] of map) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/watch",
3
- "version": "0.12.5",
3
+ "version": "0.12.7",
4
4
  "description": "Watch constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "license": "BSD-3-Clause",
20
20
  "homepage": "https://github.com/anpham6/e-mc#readme",
21
21
  "dependencies": {
22
- "@e-mc/core": "0.12.5",
23
- "@e-mc/request": "0.12.5",
24
- "@e-mc/types": "0.12.5",
22
+ "@e-mc/core": "0.12.7",
23
+ "@e-mc/request": "0.12.7",
24
+ "@e-mc/types": "0.12.7",
25
25
  "picomatch": "^4.0.3",
26
26
  "ws": "^8.18.3"
27
27
  }