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.
- package/package.json +1 -1
- package/src/Watcher.d.ts +6 -9
- package/src/Watcher.js +66 -39
- package/src/Watcher.js.flow +84 -51
- package/src/crawlers/node/index.d.ts +3 -5
- package/src/crawlers/node/index.js +4 -1
- package/src/crawlers/node/index.js.flow +8 -6
- package/src/crawlers/watchman/index.d.ts +5 -12
- package/src/crawlers/watchman/index.js.flow +2 -6
- package/src/flow-types.d.ts +81 -32
- package/src/flow-types.js.flow +89 -29
- package/src/index.d.ts +4 -4
- package/src/index.js +145 -120
- package/src/index.js.flow +199 -149
- package/src/lib/FileSystemChangeAggregator.d.ts +40 -0
- package/src/lib/FileSystemChangeAggregator.js +89 -0
- package/src/lib/FileSystemChangeAggregator.js.flow +143 -0
- package/src/lib/TreeFS.d.ts +16 -8
- package/src/lib/TreeFS.js +67 -16
- package/src/lib/TreeFS.js.flow +89 -16
- package/src/plugins/DependencyPlugin.d.ts +2 -13
- package/src/plugins/DependencyPlugin.js +1 -3
- package/src/plugins/DependencyPlugin.js.flow +1 -16
- package/src/plugins/HastePlugin.d.ts +3 -11
- package/src/plugins/HastePlugin.js +11 -11
- package/src/plugins/HastePlugin.js.flow +12 -12
- package/src/plugins/MockPlugin.d.ts +3 -5
- package/src/plugins/MockPlugin.js +17 -20
- package/src/plugins/MockPlugin.js.flow +18 -22
- package/src/watchers/FallbackWatcher.js +19 -3
- package/src/watchers/FallbackWatcher.js.flow +28 -5
- package/src/watchers/NativeWatcher.d.ts +2 -2
- package/src/watchers/NativeWatcher.js +27 -5
- package/src/watchers/NativeWatcher.js.flow +33 -6
- package/src/watchers/common.d.ts +3 -1
- package/src/watchers/common.js +6 -1
- package/src/watchers/common.js.flow +1 -0
package/src/watchers/common.js
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true,
|
|
5
5
|
});
|
|
6
|
-
exports.TOUCH_EVENT =
|
|
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") {
|