github-repository-provider 9.0.1 → 9.0.3

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 CHANGED
@@ -161,7 +161,7 @@ Represents github repo owner either
161
161
  * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
162
162
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`)
163
163
 
164
- Returns **Repository** newly created repository
164
+ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<Repository>** newly created repository
165
165
 
166
166
  ### deleteRepository
167
167
 
@@ -288,7 +288,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
288
288
 
289
289
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
290
290
 
291
- Returns **AsyncIterator\<Commit>**&#x20;
291
+ Returns **AsyncIterable\<Commit>**&#x20;
292
292
 
293
293
  ### commitForSha
294
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-repository-provider",
3
- "version": "9.0.1",
3
+ "version": "9.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -45,7 +45,7 @@
45
45
  "ava": "^6.1.1",
46
46
  "c8": "^9.1.0",
47
47
  "documentation": "^14.0.3",
48
- "etag-cache-leveldb": "^2.1.0",
48
+ "etag-cache-leveldb": "^2.1.1",
49
49
  "leveldown": "^6.1.1",
50
50
  "levelup": "^5.1.1",
51
51
  "repository-provider-test-support": "^3.1.2",
@@ -1,4 +1,4 @@
1
- import { RepositoryGroup } from "repository-provider";
1
+ import { RepositoryGroup, Repository } from "repository-provider";
2
2
 
3
3
  /**
4
4
  * Represents github repo owner either
@@ -26,7 +26,7 @@ export class GithubOwner extends RepositoryGroup {
26
26
  * {@link https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user}
27
27
  * @param {string} name
28
28
  * @param {Object} options
29
- * @return {Repository} newly created repository
29
+ * @return {Promise<Repository>} newly created repository
30
30
  */
31
31
  async createRepository(name, options = {}) {
32
32
  const response = await this.provider.fetch(`${this.api}/repos`, {
@@ -1,4 +1,9 @@
1
- import { PullRequest, boolean_attribute } from "repository-provider";
1
+ import {
2
+ PullRequest,
3
+ Repository,
4
+ Branch,
5
+ boolean_attribute
6
+ } from "repository-provider";
2
7
  import { getHeaderLink } from "fetch-link-util";
3
8
 
4
9
  /**
@@ -7,7 +7,8 @@ import {
7
7
  language_attribute,
8
8
  default_attribute,
9
9
  mapAttributesInverse,
10
- optionJSON
10
+ optionJSON,
11
+ Commit
11
12
  } from "repository-provider";
12
13
  import { getHeaderLink } from "fetch-link-util";
13
14
  import { defaultStateActions, errorHandler } from "fetch-rate-limit-util";
@@ -70,7 +71,7 @@ export class GithubRepository extends Repository {
70
71
  /**
71
72
  * {@link https://docs.github.com/en/rest/reference/commits#list-commits}
72
73
  * @param {Object} options
73
- * @returns {AsyncIterator<Commit>}
74
+ * @returns {AsyncIterable<Commit>}
74
75
  */
75
76
  async *commits(options) {
76
77
  let next = `${this.api}/commits`;