github-repository-provider 7.26.1 → 7.26.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": "github-repository-provider",
3
- "version": "7.26.1",
3
+ "version": "7.26.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "content-entry": "^4.1.9",
34
34
  "fetch-link-util": "^1.0.7",
35
- "fetch-rate-limit-util": "^2.5.1",
35
+ "fetch-rate-limit-util": "^2.6.1",
36
36
  "matching-iterator": "^2.0.4",
37
37
  "node-fetch": "^3.2.3",
38
38
  "one-time-execution-method": "^2.0.13",
@@ -113,7 +113,7 @@ export class GithubBranch extends Branch {
113
113
  const { json } = await this.provider.fetchJSON(
114
114
  `repos/${this.slug}/contents/${name}?ref=${this.ref}`
115
115
  );
116
-
116
+
117
117
  const entry = new this.entryClass(
118
118
  name,
119
119
  Buffer.from(json.content, "base64")
@@ -240,11 +240,17 @@ class LazyBufferContentEntry extends BufferContentEntryMixin(ContentEntry) {
240
240
  }
241
241
 
242
242
  const branch = this.branch;
243
- const { json } = await branch.provider.fetchJSON(
244
- `repos/${branch.slug}/contents/${this.name}?ref=${branch.ref}`
245
- );
246
243
 
247
- this._buffer = Buffer.from(json.content, "base64");
244
+ const f = async () => {
245
+ const { json } = await branch.provider.fetchJSON(
246
+ `repos/${branch.slug}/contents/${this.name}?ref=${branch.ref}`
247
+ );
248
+
249
+ this._buffer = Buffer.from(json.content, "base64");
250
+ return this._buffer;
251
+ };
252
+
253
+ this._buffer = f();
248
254
  return this._buffer;
249
255
  }
250
256
  }