github-repository-provider 7.25.46 → 7.25.49

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": "github-repository-provider",
3
- "version": "7.25.46",
3
+ "version": "7.25.49",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,7 +34,7 @@
34
34
  "fetch-link-util": "^1.0.6",
35
35
  "fetch-rate-limit-util": "^2.4.10",
36
36
  "matching-iterator": "^2.0.3",
37
- "node-fetch": "3.2.2",
37
+ "node-fetch": "^3.2.3",
38
38
  "one-time-execution-method": "^2.0.12",
39
39
  "repository-provider": "^27.0.3"
40
40
  },
@@ -139,9 +139,20 @@ export class GithubBranch extends Branch {
139
139
  for (const entry of matcher(await this.tree(shaBaseTree), patterns, {
140
140
  name: "path"
141
141
  })) {
142
- yield entry.type === "tree"
143
- ? new BaseCollectionEntry(entry.path)
144
- : new LazyBufferContentEntry(entry.path, parseInt(entry.mode, 8), this);
142
+ switch (entry.type) {
143
+ case "tree":
144
+ yield new BaseCollectionEntry(entry.path);
145
+ break;
146
+ case "blob":
147
+ yield new LazyBufferContentEntry(
148
+ entry.path,
149
+ parseInt(entry.mode, 8),
150
+ this
151
+ );
152
+ break;
153
+ /* case "commit":
154
+ break;*/
155
+ }
145
156
  }
146
157
  }
147
158
 
@@ -113,7 +113,7 @@ export class GithubRepository extends Repository {
113
113
 
114
114
  // TODO why does this happen ?
115
115
  if (!response.ok || !json.object.sha) {
116
- throw new Error(`No refId for '${this.name}' '${ref}'`);
116
+ throw new Error(`No refId for '${this.fullName}' '${ref}'`);
117
117
  }
118
118
 
119
119
  return json.object.sha;