repository-provider 28.3.14 → 28.3.15

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": "repository-provider",
3
- "version": "28.3.14",
3
+ "version": "28.3.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,11 +10,8 @@ import { RepositoryGroup } from "./repository-group.mjs";
10
10
  *
11
11
  */
12
12
  export class MultiGroupProvider extends BaseProvider {
13
- constructor(options) {
14
- super(options, {
15
- _repositoryGroups: { value: new Map() }
16
- });
17
- }
13
+
14
+ #repositoryGroups = new Map();
18
15
 
19
16
  /**
20
17
  * Lookup a repository in the provider and all of its repository groups.
@@ -68,7 +65,7 @@ export class MultiGroupProvider extends BaseProvider {
68
65
  if (this.supportsBase(base)) {
69
66
  name = stripBaseNames(name, this.provider.repositoryBases);
70
67
  await this.initializeRepositories();
71
- return this._repositoryGroups.get(this.normalizeGroupName(name, true));
68
+ return this.#repositoryGroups.get(this.normalizeGroupName(name, true));
72
69
  }
73
70
  }
74
71
 
@@ -81,7 +78,7 @@ export class MultiGroupProvider extends BaseProvider {
81
78
  await this.initializeRepositories();
82
79
 
83
80
  yield* matcher(
84
- this._repositoryGroups.values(),
81
+ this.#repositoryGroups.values(),
85
82
  stripBaseNames(patterns, this.provider.repositoryBases),
86
83
  {
87
84
  caseSensitive: this.areGroupNamesCaseSensitive,
@@ -110,10 +107,10 @@ export class MultiGroupProvider extends BaseProvider {
110
107
  addRepositoryGroup(name, options) {
111
108
  const normalizedName = this.normalizeGroupName(name, true);
112
109
 
113
- let repositoryGroup = this._repositoryGroups.get(normalizedName);
110
+ let repositoryGroup = this.#repositoryGroups.get(normalizedName);
114
111
  if (repositoryGroup === undefined) {
115
112
  repositoryGroup = new this.repositoryGroupClass(this, name, options);
116
- this._repositoryGroups.set(normalizedName, repositoryGroup);
113
+ this.#repositoryGroups.set(normalizedName, repositoryGroup);
117
114
  }
118
115
  return repositoryGroup;
119
116
  }