metro-file-map 0.83.5 → 0.83.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 (60) hide show
  1. package/package.json +1 -1
  2. package/src/Watcher.d.ts +13 -9
  3. package/src/Watcher.js +66 -39
  4. package/src/Watcher.js.flow +84 -51
  5. package/src/cache/DiskCacheManager.d.ts +8 -1
  6. package/src/constants.d.ts +8 -1
  7. package/src/crawlers/node/hasNativeFindSupport.d.ts +8 -1
  8. package/src/crawlers/node/index.d.ts +10 -5
  9. package/src/crawlers/node/index.js +4 -1
  10. package/src/crawlers/node/index.js.flow +8 -6
  11. package/src/crawlers/watchman/index.d.ts +12 -12
  12. package/src/crawlers/watchman/index.js.flow +2 -6
  13. package/src/flow-types.d.ts +88 -32
  14. package/src/flow-types.js.flow +89 -29
  15. package/src/index.d.ts +11 -4
  16. package/src/index.js +145 -120
  17. package/src/index.js.flow +199 -149
  18. package/src/lib/FileProcessor.d.ts +8 -1
  19. package/src/lib/FileSystemChangeAggregator.d.ts +40 -0
  20. package/src/lib/FileSystemChangeAggregator.js +89 -0
  21. package/src/lib/FileSystemChangeAggregator.js.flow +143 -0
  22. package/src/lib/RootPathUtils.d.ts +8 -1
  23. package/src/lib/TreeFS.d.ts +23 -8
  24. package/src/lib/TreeFS.js +67 -16
  25. package/src/lib/TreeFS.js.flow +89 -16
  26. package/src/lib/checkWatchmanCapabilities.d.ts +8 -1
  27. package/src/lib/normalizePathSeparatorsToPosix.d.ts +8 -1
  28. package/src/lib/normalizePathSeparatorsToSystem.d.ts +8 -1
  29. package/src/lib/rootRelativeCacheKeys.d.ts +8 -1
  30. package/src/lib/sorting.d.ts +8 -1
  31. package/src/plugins/DependencyPlugin.d.ts +12 -36
  32. package/src/plugins/DependencyPlugin.js +26 -48
  33. package/src/plugins/DependencyPlugin.js.flow +22 -100
  34. package/src/plugins/FileDataPlugin.d.ts +55 -0
  35. package/src/plugins/FileDataPlugin.js +41 -0
  36. package/src/plugins/FileDataPlugin.js.flow +76 -0
  37. package/src/plugins/HastePlugin.d.ts +10 -11
  38. package/src/plugins/HastePlugin.js +11 -11
  39. package/src/plugins/HastePlugin.js.flow +12 -12
  40. package/src/plugins/MockPlugin.d.ts +10 -5
  41. package/src/plugins/MockPlugin.js +17 -20
  42. package/src/plugins/MockPlugin.js.flow +18 -22
  43. package/src/plugins/dependencies/dependencyExtractor.d.ts +1 -1
  44. package/src/plugins/haste/DuplicateHasteCandidatesError.d.ts +8 -1
  45. package/src/plugins/haste/HasteConflictsError.d.ts +8 -1
  46. package/src/plugins/haste/computeConflicts.d.ts +8 -1
  47. package/src/plugins/haste/getPlatformExtension.d.ts +8 -1
  48. package/src/plugins/mocks/getMockName.d.ts +8 -1
  49. package/src/watchers/AbstractWatcher.d.ts +8 -1
  50. package/src/watchers/FallbackWatcher.d.ts +8 -1
  51. package/src/watchers/FallbackWatcher.js +19 -3
  52. package/src/watchers/FallbackWatcher.js.flow +28 -5
  53. package/src/watchers/NativeWatcher.d.ts +9 -2
  54. package/src/watchers/NativeWatcher.js +27 -5
  55. package/src/watchers/NativeWatcher.js.flow +33 -6
  56. package/src/watchers/RecrawlWarning.d.ts +8 -1
  57. package/src/watchers/WatchmanWatcher.d.ts +8 -1
  58. package/src/watchers/common.d.ts +10 -1
  59. package/src/watchers/common.js +6 -1
  60. package/src/watchers/common.js.flow +1 -0
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<b8358b8822835bcef505207f90b02c66>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro-file-map/src/watchers/WatchmanWatcher.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  import type {WatcherOptions} from './common';
@@ -4,8 +4,15 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
7
+ * @noformat
8
8
  * @oncall react_native
9
+ * @generated SignedSource<<ebebfbca9d43e034fde8489e1d9f2dbb>>
10
+ *
11
+ * This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
12
+ * Original file: packages/metro-file-map/src/watchers/common.js
13
+ * To regenerate, run:
14
+ * js1 build metro-ts-defs (internal) OR
15
+ * yarn run build-ts-defs (OSS)
9
16
  */
10
17
 
11
18
  /**
@@ -22,6 +29,8 @@ export declare const DELETE_EVENT: 'delete';
22
29
  export declare type DELETE_EVENT = typeof DELETE_EVENT;
23
30
  export declare const TOUCH_EVENT: 'touch';
24
31
  export declare type TOUCH_EVENT = typeof TOUCH_EVENT;
32
+ export declare const RECRAWL_EVENT: 'recrawl';
33
+ export declare type RECRAWL_EVENT = typeof RECRAWL_EVENT;
25
34
  export declare const ALL_EVENT: 'all';
26
35
  export declare type ALL_EVENT = typeof ALL_EVENT;
27
36
  export type WatcherOptions = Readonly<{
@@ -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<{