@atlaspack/fs 2.12.1-dev.3567 → 2.13.1-canary.3630

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/fs",
3
- "version": "2.12.1-dev.3567+c06f4487e",
3
+ "version": "2.13.1-canary.3630+10a6f37ef",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -48,16 +48,16 @@
48
48
  "check-ts": "tsc --noEmit index.d.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@atlaspack/build-cache": "2.12.1-dev.3567+c06f4487e",
52
- "@atlaspack/feature-flags": "2.12.1-dev.3567+c06f4487e",
53
- "@atlaspack/rust": "2.12.1-dev.3567+c06f4487e",
54
- "@atlaspack/types-internal": "2.12.1-dev.3567+c06f4487e",
55
- "@atlaspack/utils": "2.12.1-dev.3567+c06f4487e",
56
- "@atlaspack/workers": "2.12.1-dev.3567+c06f4487e",
51
+ "@atlaspack/build-cache": "2.13.1-canary.3630+10a6f37ef",
52
+ "@atlaspack/feature-flags": "2.13.1-canary.3630+10a6f37ef",
53
+ "@atlaspack/rust": "2.13.1-canary.3630+10a6f37ef",
54
+ "@atlaspack/types-internal": "2.13.1-canary.3630+10a6f37ef",
55
+ "@atlaspack/utils": "2.13.1-canary.3630+10a6f37ef",
56
+ "@atlaspack/workers": "2.13.1-canary.3630+10a6f37ef",
57
57
  "@parcel/watcher": "^2.0.7"
58
58
  },
59
59
  "devDependencies": {
60
- "@atlaspack/watcher-watchman-js": "2.12.1-dev.3567+c06f4487e",
60
+ "@atlaspack/watcher-watchman-js": "2.13.1-canary.3630+10a6f37ef",
61
61
  "graceful-fs": "^4.2.4",
62
62
  "ncp": "^2.0.0",
63
63
  "nullthrows": "^1.1.1",
@@ -67,5 +67,5 @@
67
67
  "@atlaspack/fs": "./lib/browser.js",
68
68
  "./src/NodeFS.js": "./src/NodeFS.browser.js"
69
69
  },
70
- "gitHead": "c06f4487ebddc632957147c8b585a97e149062a1"
70
+ "gitHead": "10a6f37ef063d0227ebb26310383e899dbd9b1e6"
71
71
  }
@@ -29,8 +29,10 @@ export class NodeVCSAwareFS extends NodeFS {
29
29
  snapshot: FilePath,
30
30
  opts: WatcherOptions,
31
31
  ): Promise<Array<Event>> {
32
- const snapshotFile = await this.readFile(snapshot).toString();
33
- const {nativeSnapshotPath, vcsState} = JSON.parse(snapshotFile);
32
+ // Note: can't use toString() directly, or it won't resolve the promise
33
+ const snapshotFile = await this.readFile(snapshot);
34
+ const snapshotFileContent = snapshotFile.toString();
35
+ const {nativeSnapshotPath, vcsState} = JSON.parse(snapshotFileContent);
34
36
 
35
37
  const watcherEventsSince = await this.watcher().getEventsSince(
36
38
  dir,
package/src/index.js CHANGED
@@ -13,6 +13,7 @@ import {promisify} from 'util';
13
13
  export * from './NodeFS';
14
14
  export * from './MemoryFS';
15
15
  export * from './OverlayFS';
16
+ export * from './NodeVCSAwareFS';
16
17
 
17
18
  export type {FileSystem, FileOptions};
18
19