repository-provider 26.4.4 → 26.4.5

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
@@ -404,7 +404,7 @@ Object.definedProperties(new aClass(),{ with_default: { value: 77 }})
404
404
  * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** target object
405
405
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** as passed to object constructor (optional, default `{}`)
406
406
  * `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** object properties (optional, default `{}`)
407
- * `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `object.constructor.attributes`)
407
+ * `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `object.constructor.attributes||[]`)
408
408
 
409
409
  ## defaultValues
410
410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "26.4.4",
3
+ "version": "26.4.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "documentation": "^13.2.5",
39
39
  "repository-provider-test-support": "^1.11.1",
40
40
  "semantic-release": "^19.0.2",
41
- "typescript": "^4.6.0-dev.20220131"
41
+ "typescript": "^4.6.0-dev.20220201"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=14.18.3"
package/src/branch.mjs CHANGED
@@ -1,17 +1,8 @@
1
1
  import { Ref } from "./ref.mjs";
2
2
  import { PullRequest } from "./pull-request.mjs";
3
3
  import { Repository } from "./repository.mjs";
4
+ import { Commit } from "./commit.mjs";
4
5
 
5
- /**
6
- * @typedef {Object} Commit
7
- * @property {string} message
8
- * @property {ContentEntry[]} updates
9
- */
10
-
11
- /**
12
- * @typedef {Object} CommitResult
13
- * @property {string} ref
14
- */
15
6
 
16
7
  /**
17
8
  * Abstract branch.
package/src/commit.mjs CHANGED
@@ -1,3 +1,10 @@
1
+
2
+
3
+ /**
4
+ * @typedef {Object} CommitResult
5
+ * @property {string} ref
6
+ */
7
+
1
8
  /**
2
9
  * @property {Repository} repository
3
10
  * @property {string} message
package/src/ref.mjs CHANGED
@@ -1,9 +1,11 @@
1
1
  import { NamedObject } from "./named-object.mjs";
2
+
2
3
  /**
3
4
  * @typedef {Object} ContentEntry
4
5
  * @property {string} name
5
6
  *
6
7
  */
8
+
7
9
  /**
8
10
  * Base for Branch and Tag
9
11
  */
@@ -59,7 +61,7 @@ export class Ref extends NamedObject {
59
61
 
60
62
  /**
61
63
  * List entries of the branch.
62
- * @param {string[]} matchingPatterns
64
+ * @param {string[]} [matchingPatterns]
63
65
  * @return {AsyncIterator<ContentEntry>} all matching entries in the branch
64
66
  */
65
67
  async *entries(matchingPatterns) {}