mock-repository-provider 8.1.2 → 8.1.4

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": "mock-repository-provider",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -40,8 +40,8 @@
40
40
  "globby": "^14.0.1",
41
41
  "micromatch": "^4.0.2",
42
42
  "one-time-execution-method": "^3.1.1",
43
- "repository-provider": "^35.2.8",
44
- "repository-provider-test-support": "^3.0.6"
43
+ "repository-provider": "^35.2.10",
44
+ "repository-provider-test-support": "^3.1.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^20.11.19",
@@ -79,13 +79,6 @@ replaceWithOneTimeExecutionMethod(
79
79
  );
80
80
 
81
81
  export class MockFileSystemBranch extends Branch {
82
- async entry(name) {
83
- if (this.files[name] === undefined) {
84
- throw new Error(`No such entry '${name}'`);
85
- }
86
-
87
- return new this.entryClass(name, this.files[name]);
88
- }
89
82
 
90
83
  async maybeEntry(name) {
91
84
  const entry = new FileSystemEntry(name, this.files);
@@ -9,9 +9,8 @@ export class MockRepository extends Repository {
9
9
  initializeBranches(): Promise<void>;
10
10
  }
11
11
  export class MockFileSystemBranch extends Branch {
12
- entry(name: any): Promise<any>;
13
- entry(name: any): Promise<any>;
14
12
  maybeEntry(name: any): Promise<any>;
13
+ entry(name: any): Promise<any>;
15
14
  entries(matchingPatterns?: string[]): AsyncGenerator<any, void, unknown>;
16
15
  get files(): any;
17
16
  }