repository-provider 35.1.0 → 35.2.1

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.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -36,6 +36,7 @@
36
36
  "lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
37
37
  },
38
38
  "dependencies": {
39
+ "content-entry": "^8.1.2",
39
40
  "matching-iterator": "^2.1.3",
40
41
  "pacc": "^3.1.1"
41
42
  },
package/src/branch.mjs CHANGED
@@ -1,13 +1,9 @@
1
+ import { ContentEntry } from "content-entry";
1
2
  import { Ref } from "./ref.mjs";
2
3
  import { PullRequest } from "./pull-request.mjs";
3
4
  import { Repository } from "./repository.mjs";
4
5
  import { RepositoryOwner } from "./repository-owner.mjs";
5
- import { Commit } from "./commit.mjs";
6
-
7
- /**
8
- * @typedef {Object} ContentEntry
9
- * @property {string} name
10
- *
6
+ import { Commit, CommitResult } from "./commit.mjs";
11
7
 
12
8
  /**
13
9
  * Abstract branch.
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
  }
@@ -1,3 +1,4 @@
1
+ import { ContentEntry } from "content-entry";
1
2
  import { NamedObject } from "./named-object.mjs";
2
3
 
3
4
  /**
package/src/ref.mjs CHANGED
@@ -1,12 +1,7 @@
1
+ import { ContentEntry } from "content-entry";
1
2
  import { OwnedObject } from "./owned-object.mjs";
2
3
  import { name_attribute, boolean_attribute } from "./attributes.mjs";
3
4
 
4
- /**
5
- * @typedef {Object} ContentEntry
6
- * @property {string} name
7
- *
8
- */
9
-
10
5
  /**
11
6
  * Base for Branch and Tag
12
7
  */
@@ -1,4 +1,5 @@
1
1
  import { matcher } from "matching-iterator";
2
+ import { ContentEntry } from "content-entry";
2
3
  import { OwnedObject } from "./owned-object.mjs";
3
4
  import { Hook } from "./hook.mjs";
4
5
  import { Tag } from "./tag.mjs";
@@ -13,11 +14,6 @@ import {
13
14
  default_attribute
14
15
  } from "./attributes.mjs";
15
16
 
16
- /**
17
- * @typedef {Object} ContentEntry
18
- * @property {string} name
19
- *
20
-
21
17
  /**
22
18
  * Abstract repository
23
19
  * @class Repository
@@ -1,8 +1,3 @@
1
- /**
2
- * @typedef {Object} ContentEntry
3
- * @property {string} name
4
- *
5
-
6
1
  /**
7
2
  * Abstract branch.
8
3
  * @class Branch
@@ -73,13 +68,8 @@ export class Branch extends Ref {
73
68
  */
74
69
  createBranch(name: string, options?: any): Promise<Branch>;
75
70
  }
76
- export type ContentEntry = {
77
- /**
78
- * /**
79
- * Abstract branch.
80
- */
81
- name: string;
82
- };
83
71
  import { Ref } from "./ref.mjs";
72
+ import { ContentEntry } from "content-entry";
73
+ import { CommitResult } from "./commit.mjs";
84
74
  import { Commit } from "./commit.mjs";
85
75
  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
- };
@@ -130,3 +130,4 @@ export class OwnedObject extends NamedObject {
130
130
  get hookClass(): Hook;
131
131
  }
132
132
  import { NamedObject } from "./named-object.mjs";
133
+ import { ContentEntry } from "content-entry";
package/types/ref.d.mts CHANGED
@@ -1,8 +1,3 @@
1
- /**
2
- * @typedef {Object} ContentEntry
3
- * @property {string} name
4
- *
5
- */
6
1
  /**
7
2
  * Base for Branch and Tag
8
3
  */
@@ -16,14 +11,6 @@ export class Ref extends OwnedObject {
16
11
  type: string;
17
12
  writable: boolean;
18
13
  mandatory: boolean;
19
- /**
20
- * @typedef {Object} ContentEntry
21
- * @property {string} name
22
- *
23
- */
24
- /**
25
- * Base for Branch and Tag
26
- */
27
14
  private: boolean;
28
15
  additionalAttributes: any[];
29
16
  env: any[];
@@ -37,14 +24,6 @@ export class Ref extends OwnedObject {
37
24
  default: boolean;
38
25
  type: string;
39
26
  mandatory: boolean;
40
- /**
41
- * @typedef {Object} ContentEntry
42
- * @property {string} name
43
- *
44
- */
45
- /**
46
- * Base for Branch and Tag
47
- */
48
27
  private: boolean;
49
28
  isKey: boolean;
50
29
  additionalAttributes: any[];
@@ -107,7 +86,5 @@ export class Ref extends OwnedObject {
107
86
  */
108
87
  [Symbol.asyncIterator](): AsyncGenerator<ContentEntry>;
109
88
  }
110
- export type ContentEntry = {
111
- name: string;
112
- };
113
89
  import { OwnedObject } from "./owned-object.mjs";
90
+ import { ContentEntry } from "content-entry";
@@ -1,8 +1,3 @@
1
- /**
2
- * @typedef {Object} ContentEntry
3
- * @property {string} name
4
- *
5
-
6
1
  /**
7
2
  * Abstract repository
8
3
  * @class Repository
@@ -343,14 +338,8 @@ export class Repository extends OwnedObject {
343
338
  initializePullRequests(): Promise<void>;
344
339
  #private;
345
340
  }
346
- export type ContentEntry = {
347
- /**
348
- * /**
349
- * Abstract repository
350
- */
351
- name: string;
352
- };
353
341
  import { OwnedObject } from "./owned-object.mjs";
342
+ import { ContentEntry } from "content-entry";
354
343
  import { Commit } from "./commit.mjs";
355
344
  import { Branch } from "./branch.mjs";
356
345
  import { Tag } from "./tag.mjs";