github-repository-provider 7.26.24 → 7.26.27
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": "7.26.
|
|
3
|
+
"version": "7.26.27",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"content-entry": "^5.0.0",
|
|
34
34
|
"fetch-link-util": "^1.0.8",
|
|
35
|
-
"fetch-rate-limit-util": "^2.10.
|
|
35
|
+
"fetch-rate-limit-util": "^2.10.2",
|
|
36
36
|
"matching-iterator": "^2.0.4",
|
|
37
37
|
"node-fetch": "^3.2.4",
|
|
38
38
|
"one-time-execution-method": "^2.0.13",
|
|
39
|
-
"repository-provider": "^28.3.
|
|
39
|
+
"repository-provider": "^28.3.13"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"ava": "^4.2.0",
|
|
43
43
|
"c8": "^7.11.2",
|
|
44
44
|
"documentation": "^13.2.5",
|
|
45
|
-
"repository-provider-test-support": "^2.1.
|
|
45
|
+
"repository-provider-test-support": "^2.1.9",
|
|
46
46
|
"semantic-release": "^19.0.2"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
@@ -3,7 +3,7 @@ import { Repository } from "repository-provider";
|
|
|
3
3
|
import { getHeaderLink } from "fetch-link-util";
|
|
4
4
|
import { defaultStateActions, errorHandler } from "fetch-rate-limit-util";
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const conflictErrorActions = {
|
|
7
7
|
...defaultStateActions,
|
|
8
8
|
409: errorHandler
|
|
9
9
|
};
|
|
@@ -149,9 +149,8 @@ export class GithubRepository extends Repository {
|
|
|
149
149
|
const { response, json } = await this.provider.fetchJSON(
|
|
150
150
|
`repos/${this.slug}/git/ref/${ref}`,
|
|
151
151
|
undefined,
|
|
152
|
-
|
|
152
|
+
conflictErrorActions
|
|
153
153
|
);
|
|
154
|
-
|
|
155
154
|
// TODO why does this happen ?
|
|
156
155
|
if (!response.ok || !json.object.sha) {
|
|
157
156
|
throw new Error(`No refId for '${this.fullName}' '${ref}'`);
|