metro-file-map 0.84.2 → 0.84.3

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/Watcher.d.ts +6 -9
  3. package/src/Watcher.js +66 -39
  4. package/src/Watcher.js.flow +84 -51
  5. package/src/crawlers/node/index.d.ts +3 -5
  6. package/src/crawlers/node/index.js +4 -1
  7. package/src/crawlers/node/index.js.flow +8 -6
  8. package/src/crawlers/watchman/index.d.ts +5 -12
  9. package/src/crawlers/watchman/index.js.flow +2 -6
  10. package/src/flow-types.d.ts +81 -32
  11. package/src/flow-types.js.flow +89 -29
  12. package/src/index.d.ts +4 -4
  13. package/src/index.js +145 -120
  14. package/src/index.js.flow +199 -149
  15. package/src/lib/FileSystemChangeAggregator.d.ts +40 -0
  16. package/src/lib/FileSystemChangeAggregator.js +89 -0
  17. package/src/lib/FileSystemChangeAggregator.js.flow +143 -0
  18. package/src/lib/TreeFS.d.ts +16 -8
  19. package/src/lib/TreeFS.js +67 -16
  20. package/src/lib/TreeFS.js.flow +89 -16
  21. package/src/plugins/DependencyPlugin.d.ts +2 -13
  22. package/src/plugins/DependencyPlugin.js +1 -3
  23. package/src/plugins/DependencyPlugin.js.flow +1 -16
  24. package/src/plugins/HastePlugin.d.ts +3 -11
  25. package/src/plugins/HastePlugin.js +11 -11
  26. package/src/plugins/HastePlugin.js.flow +12 -12
  27. package/src/plugins/MockPlugin.d.ts +3 -5
  28. package/src/plugins/MockPlugin.js +17 -20
  29. package/src/plugins/MockPlugin.js.flow +18 -22
  30. package/src/watchers/FallbackWatcher.js +19 -3
  31. package/src/watchers/FallbackWatcher.js.flow +28 -5
  32. package/src/watchers/NativeWatcher.d.ts +2 -2
  33. package/src/watchers/NativeWatcher.js +27 -5
  34. package/src/watchers/NativeWatcher.js.flow +33 -6
  35. package/src/watchers/common.d.ts +3 -1
  36. package/src/watchers/common.js +6 -1
  37. package/src/watchers/common.js.flow +1 -0
@@ -3,7 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true,
5
5
  });
6
- exports.TOUCH_EVENT = exports.DELETE_EVENT = exports.ALL_EVENT = void 0;
6
+ exports.TOUCH_EVENT =
7
+ exports.RECRAWL_EVENT =
8
+ exports.DELETE_EVENT =
9
+ exports.ALL_EVENT =
10
+ void 0;
7
11
  exports.includedByGlob = includedByGlob;
8
12
  exports.posixPathMatchesPattern = void 0;
9
13
  exports.typeFromStat = typeFromStat;
@@ -14,6 +18,7 @@ function _interopRequireDefault(e) {
14
18
  }
15
19
  const DELETE_EVENT = (exports.DELETE_EVENT = "delete");
16
20
  const TOUCH_EVENT = (exports.TOUCH_EVENT = "touch");
21
+ const RECRAWL_EVENT = (exports.RECRAWL_EVENT = "recrawl");
17
22
  const ALL_EVENT = (exports.ALL_EVENT = "all");
18
23
  function includedByGlob(type, globs, dot, relativePath) {
19
24
  if (globs.length === 0 || type !== "f") {
@@ -26,6 +26,7 @@ import path from 'path';
26
26
  */
27
27
  export const DELETE_EVENT = 'delete';
28
28
  export const TOUCH_EVENT = 'touch';
29
+ export const RECRAWL_EVENT = 'recrawl';
29
30
  export const ALL_EVENT = 'all';
30
31
 
31
32
  export type WatcherOptions = Readonly<{