github-repository-provider 7.25.45 → 7.25.48
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 +4 -4
- package/src/github-branch.mjs +14 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-repository-provider",
|
|
3
|
-
"version": "7.25.
|
|
3
|
+
"version": "7.25.48",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,12 +34,12 @@
|
|
|
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.
|
|
38
|
-
"one-time-execution-method": "^2.0.
|
|
37
|
+
"node-fetch": "^3.2.3",
|
|
38
|
+
"one-time-execution-method": "^2.0.12",
|
|
39
39
|
"repository-provider": "^27.0.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"ava": "^4.0
|
|
42
|
+
"ava": "^4.1.0",
|
|
43
43
|
"c8": "^7.11.0",
|
|
44
44
|
"documentation": "^13.2.5",
|
|
45
45
|
"repository-provider-test-support": "^1.12.9",
|
package/src/github-branch.mjs
CHANGED
|
@@ -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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
|