github-repository-provider 9.1.7 → 9.2.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": "github-repository-provider",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
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.
|
|
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.
|
|
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.
|
|
53
|
+
"repository-provider-test-support": "^3.1.21",
|
|
54
54
|
"semantic-release": "^24.2.3",
|
|
55
55
|
"typescript": "^5.8.3"
|
|
56
56
|
},
|
package/src/github-branch.mjs
CHANGED
|
@@ -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
|
|
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,
|
|
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
|
|
package/src/github-provider.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
|
|
2
2
|
import { stateActionHandler } from "fetch-rate-limit-util";
|
|
3
|
-
import { BufferContentEntry } from "content-entry";
|
|
4
|
-
|
|
5
3
|
import { MultiGroupProvider, url_attribute, default_attribute, priority_attribute } from "repository-provider";
|
|
6
4
|
import { GithubRepository } from "./github-repository.mjs";
|
|
7
5
|
import { GithubBranch } from "./github-branch.mjs";
|
|
@@ -180,10 +178,6 @@ export class GithubProvider extends MultiGroupProvider {
|
|
|
180
178
|
get repositoryGroupClass() {
|
|
181
179
|
return GithubOwner;
|
|
182
180
|
}
|
|
183
|
-
|
|
184
|
-
get entryClass() {
|
|
185
|
-
return BufferContentEntry;
|
|
186
|
-
}
|
|
187
181
|
}
|
|
188
182
|
|
|
189
183
|
replaceWithOneTimeExecutionMethod(
|
|
@@ -144,7 +144,6 @@ export class GithubProvider extends MultiGroupProvider {
|
|
|
144
144
|
get repositoryClass(): typeof GithubRepository;
|
|
145
145
|
get branchClass(): typeof GithubBranch;
|
|
146
146
|
get repositoryGroupClass(): typeof GithubOwner;
|
|
147
|
-
get entryClass(): typeof BufferContentEntry;
|
|
148
147
|
}
|
|
149
148
|
export default GithubProvider;
|
|
150
149
|
import { GithubRepository } from "./github-repository.mjs";
|
|
@@ -152,5 +151,4 @@ import { GithubBranch } from "./github-branch.mjs";
|
|
|
152
151
|
import { GithubOwner } from "./github-owner.mjs";
|
|
153
152
|
import { GithubPullRequest } from "./github-pull-request.mjs";
|
|
154
153
|
import { MultiGroupProvider } from "repository-provider";
|
|
155
|
-
import { BufferContentEntry } from "content-entry";
|
|
156
154
|
export { GithubRepository, GithubBranch, GithubOwner, GithubPullRequest };
|