github-repository-provider 7.23.33 → 7.23.37
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/README.md +1 -1
- package/package.json +4 -4
- package/src/github-branch.mjs +5 -4
package/README.md
CHANGED
|
@@ -139,7 +139,7 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
139
139
|
|
|
140
140
|
#### Parameters
|
|
141
141
|
|
|
142
|
-
* `
|
|
142
|
+
* `treeSha` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
143
143
|
|
|
144
144
|
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>**
|
|
145
145
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-repository-provider",
|
|
3
|
-
"version": "7.23.
|
|
3
|
+
"version": "7.23.37",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"content-entry": "^2.
|
|
33
|
+
"content-entry": "^2.10.0",
|
|
34
34
|
"fetch-link-util": "^1.0.4",
|
|
35
35
|
"fetch-rate-limit-util": "^1.1.6",
|
|
36
36
|
"matching-iterator": "^2.0.0",
|
|
37
37
|
"node-fetch": "3.1.0",
|
|
38
38
|
"one-time-execution-method": "^2.0.9",
|
|
39
|
-
"repository-provider": "^25.5.
|
|
39
|
+
"repository-provider": "^25.5.12"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"ava": "^3.15.0",
|
|
43
43
|
"c8": "^7.10.0",
|
|
44
44
|
"documentation": "^13.2.5",
|
|
45
|
-
"repository-provider-test-support": "^1.8.
|
|
45
|
+
"repository-provider-test-support": "^1.8.5",
|
|
46
46
|
"semantic-release": "^18.0.1"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
package/src/github-branch.mjs
CHANGED
|
@@ -130,7 +130,7 @@ export class GithubBranch extends Branch {
|
|
|
130
130
|
const json = await res.json();
|
|
131
131
|
return new this.entryClass(name, Buffer.from(json.content, "base64"));
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
|
|
134
134
|
throw new Error(res.status);
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -147,11 +147,11 @@ export class GithubBranch extends Branch {
|
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* @see https://developer.github.com/v3/git/trees/
|
|
150
|
-
* @param
|
|
150
|
+
* @param {string } treeSha
|
|
151
151
|
* @return {Object[]}
|
|
152
152
|
*/
|
|
153
|
-
async tree(
|
|
154
|
-
const url = `repos/${this.slug}/git/trees/${
|
|
153
|
+
async tree(treeSha) {
|
|
154
|
+
const url = `repos/${this.slug}/git/trees/${treeSha}?recursive=1`;
|
|
155
155
|
|
|
156
156
|
let res;
|
|
157
157
|
for (const i = 0; i < 3; i++) {
|
|
@@ -162,6 +162,7 @@ export class GithubBranch extends Branch {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
console.log(res.errno, res.code);
|
|
165
166
|
// errno: 'ERR_STREAM_PREMATURE_CLOSE',
|
|
166
167
|
// code: 'ERR_STREAM_PREMATURE_CLOSE',
|
|
167
168
|
|