github-repository-provider 8.0.7 → 8.0.9

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": "8.0.7",
3
+ "version": "8.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,10 +31,10 @@
31
31
  "dependencies": {
32
32
  "content-entry": "^8.0.1",
33
33
  "fetch-link-util": "^1.0.14",
34
- "fetch-rate-limit-util": "^4.0.1",
34
+ "fetch-rate-limit-util": "^4.0.2",
35
35
  "matching-iterator": "^2.0.11",
36
36
  "one-time-execution-method": "^3.0.6",
37
- "repository-provider": "^32.6.9"
37
+ "repository-provider": "^32.6.12"
38
38
  },
39
39
  "devDependencies": {
40
40
  "ava": "^5.2.0",
@@ -44,7 +44,7 @@
44
44
  "leveldown": "^6.1.1",
45
45
  "levelup": "^5.1.1",
46
46
  "repository-provider-test-support": "^2.3.1",
47
- "semantic-release": "^20.1.1"
47
+ "semantic-release": "^21.0.0"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=18.15.0"
@@ -2,7 +2,7 @@ import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
2
  import { stateActionHandler } from "fetch-rate-limit-util";
3
3
  import { BufferContentEntry } from "content-entry";
4
4
 
5
- import { MultiGroupProvider, url_attribute } from "repository-provider";
5
+ import { MultiGroupProvider, url_attribute, default_attribute } from "repository-provider";
6
6
  import { GithubRepository } from "./github-repository.mjs";
7
7
  import { GithubBranch } from "./github-branch.mjs";
8
8
  import { GithubOwner } from "./github-owner.mjs";
@@ -49,7 +49,7 @@ export class GithubProvider extends MultiGroupProvider {
49
49
  return {
50
50
  ...super.attributes,
51
51
  host: {
52
- type: "string",
52
+ ...default_attribute,
53
53
  env: ["{{instanceIdentifier}}HOST", "GH_HOST"],
54
54
  default: host
55
55
  },
@@ -76,7 +76,7 @@ export class GithubProvider extends MultiGroupProvider {
76
76
  `https://api.${object.host || properties.host.value}`*/
77
77
  },
78
78
  "authentication.token": {
79
- type: "string",
79
+ ...default_attribute,
80
80
  // @see https://cli.github.com/manual/gh_help_environment
81
81
  env: [
82
82
  "{{instanceIdentifier}}TOKEN",
@@ -86,7 +86,7 @@ export class GithubProvider extends MultiGroupProvider {
86
86
  private: true,
87
87
  mandatory: true
88
88
  },
89
- priority: { default: 1000.0 },
89
+ priority: { ...default_attribute, type: "number", default: 1000.0 },
90
90
  reateLimitRemaining: { writable: true, default: 5000 }
91
91
  };
92
92
  }
@@ -106,12 +106,8 @@ export class GithubProvider extends MultiGroupProvider {
106
106
  });
107
107
  }
108
108
 
109
- fetchJSON(url, options={}) {
109
+ fetchJSON(url, options = {}) {
110
110
  options.postprocess = async response => {
111
- if(!response.ok) {
112
- console.log("failed",url, response.status);
113
- }
114
-
115
111
  return { response, json: await response.json() };
116
112
  };
117
113
 
@@ -41,8 +41,8 @@ export class GithubRepository extends Repository {
41
41
  static get attributes() {
42
42
  return {
43
43
  ...super.attributes,
44
- isLocked: { type: "boolean", writable: false },
45
- auto_init: { type: "boolean", writable: true },
44
+ isLocked: boolean_attribute,
45
+ auto_init: boolean_attribute,
46
46
  size: size_attribute,
47
47
  language: language_attribute,
48
48
  allow_squash_merge: boolean_attribute,