github-repository-provider 9.1.7 → 9.1.8

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": "9.1.7",
3
+ "version": "9.1.8",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -35,12 +35,12 @@
35
35
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
36
36
  },
37
37
  "dependencies": {
38
- "content-entry": "^13.1.0",
38
+ "content-entry": "^13.3.0",
39
39
  "fetch-link-util": "^1.1.3",
40
40
  "fetch-rate-limit-util": "^4.5.2",
41
41
  "matching-iterator": "^2.1.3",
42
42
  "one-time-execution-method": "^3.1.3",
43
- "repository-provider": "^35.3.10"
43
+ "repository-provider": "^35.3.11"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^22.15.16",
@@ -50,7 +50,7 @@
50
50
  "etag-cache-leveldb": "^2.1.13",
51
51
  "leveldown": "^6.1.1",
52
52
  "levelup": "^5.1.1",
53
- "repository-provider-test-support": "^3.1.19",
53
+ "repository-provider-test-support": "^3.1.21",
54
54
  "semantic-release": "^24.2.3",
55
55
  "typescript": "^5.8.3"
56
56
  },
@@ -86,8 +86,9 @@ export class GithubBranch extends Branch {
86
86
  `${this.api}/contents/${name}?ref=${this.ref}`
87
87
  );
88
88
 
89
- const entry = new this.entryClass(
89
+ const entry = new BufferContentEntry(
90
90
  name,
91
+ undefined,
91
92
  Buffer.from(json.content, "base64")
92
93
  );
93
94
 
@@ -129,7 +130,7 @@ export class GithubBranch extends Branch {
129
130
  {
130
131
  const e = new LazyBufferContentEntry(
131
132
  entry.path,
132
- parseInt(entry.mode, 8),
133
+ { mode: parseInt(entry.mode, 8) },
133
134
  this
134
135
  );
135
136
  this.#entries.set(e.name, e);
@@ -159,9 +160,8 @@ export class GithubBranch extends Branch {
159
160
  }
160
161
 
161
162
  class LazyBufferContentEntry extends BufferContentEntry {
162
- constructor(name, mode, branch) {
163
- super(name);
164
- this.mode = mode;
163
+ constructor(name, options, branch) {
164
+ super(name, options);
165
165
  this.branch = branch;
166
166
  }
167
167