repository-provider 35.1.0 → 35.2.0

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": "35.1.0",
3
+ "version": "35.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/branch.mjs CHANGED
@@ -2,7 +2,7 @@ import { Ref } from "./ref.mjs";
2
2
  import { PullRequest } from "./pull-request.mjs";
3
3
  import { Repository } from "./repository.mjs";
4
4
  import { RepositoryOwner } from "./repository-owner.mjs";
5
- import { Commit } from "./commit.mjs";
5
+ import { Commit, CommitResult } from "./commit.mjs";
6
6
 
7
7
  /**
8
8
  * @typedef {Object} ContentEntry
package/src/commit.mjs CHANGED
@@ -1,14 +1,16 @@
1
-
2
1
  /**
3
- * @typedef {Object} CommitResult
4
2
  * @property {string} ref
5
3
  */
4
+ export class CommitResult {
5
+ ref;
6
6
 
7
- export class User
8
- {
9
-
7
+ constructor(ref) {
8
+ this.ref = ref;
9
+ }
10
10
  }
11
11
 
12
+ export class User {}
13
+
12
14
  /**
13
15
  * @property {Repository} repository
14
16
  * @property {string} message
@@ -17,9 +19,8 @@ export class User
17
19
  * @property {User} committer
18
20
  */
19
21
  export class Commit {
20
-
21
22
  repository;
22
-
23
+
23
24
  constructor(repository) {
24
25
  this.repository = repository;
25
26
  }
@@ -81,5 +81,6 @@ export type ContentEntry = {
81
81
  name: string;
82
82
  };
83
83
  import { Ref } from "./ref.mjs";
84
+ import { CommitResult } from "./commit.mjs";
84
85
  import { Commit } from "./commit.mjs";
85
86
  import { PullRequest } from "./pull-request.mjs";
@@ -1,7 +1,10 @@
1
1
  /**
2
- * @typedef {Object} CommitResult
3
2
  * @property {string} ref
4
3
  */
4
+ export class CommitResult {
5
+ constructor(ref: any);
6
+ ref: any;
7
+ }
5
8
  export class User {
6
9
  }
7
10
  /**
@@ -15,6 +18,3 @@ export class Commit {
15
18
  constructor(repository: any);
16
19
  repository: any;
17
20
  }
18
- export type CommitResult = {
19
- ref: string;
20
- };