repository-provider 32.7.1 → 32.7.2

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": "repository-provider",
3
- "version": "32.7.1",
3
+ "version": "32.7.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/branch.mjs CHANGED
@@ -1,12 +1,9 @@
1
1
  import { Ref } from "./ref.mjs";
2
2
  import { PullRequest } from "./pull-request.mjs";
3
3
  import { Repository } from "./repository.mjs";
4
+ import { RepositoryOwner } from "./repository-owner.mjs";
4
5
  import { Commit } from "./commit.mjs";
5
6
 
6
- /**
7
- * @typedef {import('./repository-owner.mjs').RepositoryOwner} RepositoryOwner
8
- */
9
-
10
7
  /**
11
8
  * @typedef {Object} ContentEntry
12
9
  * @property {string} name
@@ -80,10 +80,10 @@ export function RepositoryOwner(base) {
80
80
 
81
81
  /**
82
82
  * Lookup entity of a given type and name.
83
- * @param {string} type
84
- * @param {string} name
85
- * @param {function} split
86
- * @param {Object} defaultItem
83
+ * @param {string} type
84
+ * @param {string} name
85
+ * @param {function} [split]
86
+ * @param {Object} [defaultItem]
87
87
  * @returns {NamedObject} from a repository
88
88
  */
89
89
  async lookup(type, name, split, defaultItem) {
@@ -107,10 +107,10 @@ export function RepositoryOwner(base) {
107
107
 
108
108
  /**
109
109
  * List entities for a given type and pattern.
110
- * @param {string} type
111
- * @param {string|string[]} patterns
112
- * @param {function?} split
113
- * @param {Object?} defaultItem
110
+ * @param {string} type
111
+ * @param {string|string[]} patterns
112
+ * @param {function} [split]
113
+ * @param {Object} [defaultItem]
114
114
  * @return {AsyncIterator<NamedObject>} matching type and pattern
115
115
  */
116
116
  async *list(type, patterns, split, defaultItem) {
@@ -4,6 +4,8 @@ import { Hook } from "./hook.mjs";
4
4
  import { Tag } from "./tag.mjs";
5
5
  import { Branch } from "./branch.mjs";
6
6
  import { PullRequest } from "./pull-request.mjs";
7
+ import { RepositoryOwner } from "./repository-owner.mjs";
8
+ import { Commit } from "./commit.mjs";
7
9
  import {
8
10
  url_attribute,
9
11
  boolean_attribute,
@@ -11,10 +13,6 @@ import {
11
13
  default_attribute
12
14
  } from "./attributes.mjs";
13
15
 
14
- /**
15
- * @typedef {import('./repository-owner.mjs').RepositoryOwner} RepositoryOwner
16
- */
17
-
18
16
  /**
19
17
  * @typedef {Object} ContentEntry
20
18
  * @property {string} name