mock-repository-provider 8.2.43 → 8.3.0

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.2.43",
3
+ "version": "8.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -36,16 +36,16 @@
36
36
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
37
37
  },
38
38
  "dependencies": {
39
- "content-entry": "^13.1.0",
40
- "content-entry-filesystem": "^8.0.16",
39
+ "content-entry": "^13.3.0",
40
+ "content-entry-filesystem": "^8.0.19",
41
41
  "globby": "^14.1.0",
42
42
  "micromatch": "^4.0.8",
43
43
  "one-time-execution-method": "^3.1.3",
44
- "repository-provider": "^35.3.8",
45
- "repository-provider-test-support": "^3.1.18"
44
+ "repository-provider": "^35.3.12",
45
+ "repository-provider-test-support": "^3.1.21"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^22.15.15",
48
+ "@types/node": "^22.15.16",
49
49
  "ava": "^6.3.0",
50
50
  "c8": "^10.1.3",
51
51
  "documentation": "^14.0.3",
@@ -12,7 +12,7 @@ export class MockBranch extends Branch {
12
12
  return undefined;
13
13
  }
14
14
 
15
- return new this.entryClass(name, this.files[name]);
15
+ return new StringContentEntry(name, undefined, this.files[name]);
16
16
  }
17
17
 
18
18
  // @ts-ignore
@@ -21,14 +21,14 @@ export class MockBranch extends Branch {
21
21
  throw new Error(`No such object '${name}'`);
22
22
  }
23
23
 
24
- return new this.entryClass(name, this.files[name]);
24
+ return new StringContentEntry(name, undefined, this.files[name]);
25
25
  }
26
26
 
27
27
  // @ts-ignore
28
28
 
29
29
  async *entries(patterns = "**/*") {
30
30
  for (const name of micromatch(Object.keys(this.files), patterns)) {
31
- yield new this.entryClass(name, this.files[name]);
31
+ yield new StringContentEntry(name, undefined, this.files[name]);
32
32
  }
33
33
  }
34
34
 
@@ -36,10 +36,6 @@ export class MockBranch extends Branch {
36
36
  // @ts-ignore
37
37
  return this.repository.files[this.name];
38
38
  }
39
-
40
- get entryClass() {
41
- return StringContentEntry;
42
- }
43
39
  }
44
40
 
45
41
  /**
@@ -112,19 +108,14 @@ export class MockFileSystemBranch extends Branch {
112
108
  for (const name of await globby(matchingPatterns, {
113
109
  cwd: this.files
114
110
  })) {
115
- yield new this.entryClass(name, this.files);
111
+ yield new FileSystemEntry(name, this.files);
116
112
  }
117
113
  }
118
114
 
119
115
  get files() {
120
116
  // @ts-ignore
121
-
122
117
  return this.provider.files;
123
118
  }
124
-
125
- get entryClass() {
126
- return FileSystemEntry;
127
- }
128
119
  }
129
120
 
130
121
  export class MockFileSystemRepository extends Repository {
@@ -3,7 +3,6 @@ export class MockBranch extends Branch {
3
3
  entry(name: any): Promise<StringContentEntry>;
4
4
  entries(patterns?: string): AsyncGenerator<StringContentEntry, void, unknown>;
5
5
  get files(): any;
6
- get entryClass(): typeof StringContentEntry;
7
6
  }
8
7
  /**
9
8
  *
@@ -17,7 +16,6 @@ export class MockFileSystemBranch extends Branch {
17
16
  entry(name: any): Promise<FileSystemEntry>;
18
17
  entries(matchingPatterns?: string[]): AsyncGenerator<FileSystemEntry, void, unknown>;
19
18
  get files(): any;
20
- get entryClass(): typeof FileSystemEntry;
21
19
  }
22
20
  export class MockFileSystemRepository extends Repository {
23
21
  initializeBranches(): Promise<Branch>;