github-repository-provider 9.0.9 → 9.0.10
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.0.
|
|
3
|
+
"version": "9.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"content-entry": "^
|
|
38
|
+
"content-entry": "^11.0.0",
|
|
39
39
|
"fetch-link-util": "^1.1.1",
|
|
40
40
|
"fetch-rate-limit-util": "^4.2.2",
|
|
41
41
|
"matching-iterator": "^2.1.3",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"repository-provider": "^35.2.15"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/node": "^20.11.
|
|
46
|
+
"@types/node": "^20.11.26",
|
|
47
47
|
"ava": "^6.1.2",
|
|
48
48
|
"c8": "^9.1.0",
|
|
49
49
|
"documentation": "^14.0.3",
|
package/src/github-branch.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { matcher } from "matching-iterator";
|
|
2
2
|
import { Branch } from "repository-provider";
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
CollectionEntry,
|
|
5
5
|
BufferContentEntryMixin,
|
|
6
6
|
ContentEntry
|
|
7
7
|
} from "content-entry";
|
|
@@ -115,7 +115,7 @@ export class GithubBranch extends Branch {
|
|
|
115
115
|
switch (entry.type) {
|
|
116
116
|
case "tree":
|
|
117
117
|
{
|
|
118
|
-
const e = new
|
|
118
|
+
const e = new CollectionEntry(entry.path);
|
|
119
119
|
this.#entries.set(e.path, e);
|
|
120
120
|
yield e;
|
|
121
121
|
}
|
|
@@ -24,12 +24,7 @@ export class GithubBranch extends Branch {
|
|
|
24
24
|
* @param {string} name
|
|
25
25
|
*/
|
|
26
26
|
entry(name: string): Promise<any>;
|
|
27
|
-
entries(patterns: any): AsyncGenerator<
|
|
28
|
-
[x: string]: any;
|
|
29
|
-
readonly isCollection: boolean;
|
|
30
|
-
readonly types: string[];
|
|
31
|
-
readonly mode: number;
|
|
32
|
-
} | LazyBufferContentEntry, void, unknown>;
|
|
27
|
+
entries(patterns: any): AsyncGenerator<CollectionEntry | LazyBufferContentEntry, void, unknown>;
|
|
33
28
|
/**
|
|
34
29
|
* https://developer.github.com/v3/repos/contents/
|
|
35
30
|
* @param {AsyncIterator<ContentEntry>} entries
|
|
@@ -39,6 +34,7 @@ export class GithubBranch extends Branch {
|
|
|
39
34
|
}
|
|
40
35
|
import { Branch } from "repository-provider";
|
|
41
36
|
import { ContentEntry } from "content-entry";
|
|
37
|
+
import { CollectionEntry } from "content-entry";
|
|
42
38
|
declare const LazyBufferContentEntry_base: new (name: string) => {
|
|
43
39
|
readonly string: string;
|
|
44
40
|
readonly readStream: ReadableStream<any>;
|