github-repository-provider 7.33.30 → 7.33.32

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.33.30",
3
+ "version": "7.33.32",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  "matching-iterator": "^2.0.11",
37
37
  "node-fetch": "^3.3.0",
38
38
  "one-time-execution-method": "^3.0.6",
39
- "repository-provider": "^32.4.6"
39
+ "repository-provider": "^32.4.10"
40
40
  },
41
41
  "devDependencies": {
42
42
  "ava": "^5.1.0",
@@ -45,7 +45,7 @@
45
45
  "etag-cache-leveldb": "^1.4.1",
46
46
  "leveldown": "^6.1.1",
47
47
  "levelup": "^5.1.1",
48
- "repository-provider-test-support": "^2.2.30",
48
+ "repository-provider-test-support": "^2.2.31",
49
49
  "semantic-release": "^19.0.5"
50
50
  },
51
51
  "engines": {
@@ -1,5 +1,10 @@
1
1
  import { replaceWithOneTimeExecutionMethod } from "one-time-execution-method";
2
- import { Repository, boolean_attribute } from "repository-provider";
2
+ import {
3
+ Repository,
4
+ boolean_attribute,
5
+ mapAttributesInverse,
6
+ optionJSON
7
+ } from "repository-provider";
3
8
  import { getHeaderLink } from "fetch-link-util";
4
9
  import { defaultStateActions, errorHandler } from "fetch-rate-limit-util";
5
10
 
@@ -35,7 +40,7 @@ export class GithubRepository extends Repository {
35
40
  ...super.attributes,
36
41
  isLocked: { type: "boolean", writable: false },
37
42
  auto_init: { type: "boolean", writable: true },
38
- allow_squash_merge: boolean_attribute,
43
+ allow_squash_merge: boolean_attribute,
39
44
  allow_merge_commit: boolean_attribute,
40
45
  allow_rebase_merge: boolean_attribute,
41
46
  allow_auto_merge: boolean_attribute,
@@ -259,9 +264,9 @@ export class GithubRepository extends Repository {
259
264
  }
260
265
 
261
266
  /**
262
- * @TODO generalize for all repos ?
263
- * @param {string} ref
264
- * @param {string} sha
267
+ * @TODO generalize for all repos ?
268
+ * @param {string} ref
269
+ * @param {string} sha
265
270
  */
266
271
  _setRefId(ref, sha) {
267
272
  ref = ref.replace(/^refs\//, "");