repository-provider 35.2.0 → 35.2.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 +2 -1
- package/src/branch.mjs +1 -5
- package/src/owned-object.mjs +1 -0
- package/src/ref.mjs +1 -6
- package/src/repository.mjs +7 -8
- package/types/branch.d.mts +1 -12
- package/types/owned-object.d.mts +1 -0
- package/types/ref.d.mts +1 -24
- package/types/repository.d.mts +4 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.2",
|
|
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,14 +1,10 @@
|
|
|
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
6
|
import { Commit, CommitResult } from "./commit.mjs";
|
|
6
7
|
|
|
7
|
-
/**
|
|
8
|
-
* @typedef {Object} ContentEntry
|
|
9
|
-
* @property {string} name
|
|
10
|
-
*
|
|
11
|
-
|
|
12
8
|
/**
|
|
13
9
|
* Abstract branch.
|
|
14
10
|
* @class Branch
|
package/src/owned-object.mjs
CHANGED
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
|
*/
|
package/src/repository.mjs
CHANGED
|
@@ -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";
|
|
@@ -6,6 +7,9 @@ import { Branch } from "./branch.mjs";
|
|
|
6
7
|
import { PullRequest } from "./pull-request.mjs";
|
|
7
8
|
import { RepositoryOwner } from "./repository-owner.mjs";
|
|
8
9
|
import { Commit } from "./commit.mjs";
|
|
10
|
+
import { Milestone } from "./milestone.mjs";
|
|
11
|
+
import { Project } from "./project.mjs";
|
|
12
|
+
import { Application } from "./application.mjs";
|
|
9
13
|
import {
|
|
10
14
|
url_attribute,
|
|
11
15
|
boolean_attribute,
|
|
@@ -13,11 +17,6 @@ import {
|
|
|
13
17
|
default_attribute
|
|
14
18
|
} from "./attributes.mjs";
|
|
15
19
|
|
|
16
|
-
/**
|
|
17
|
-
* @typedef {Object} ContentEntry
|
|
18
|
-
* @property {string} name
|
|
19
|
-
*
|
|
20
|
-
|
|
21
20
|
/**
|
|
22
21
|
* Abstract repository
|
|
23
22
|
* @class Repository
|
|
@@ -80,9 +79,9 @@ export class Repository extends OwnedObject {
|
|
|
80
79
|
|
|
81
80
|
/** @type {Map<string,Branch>} */ #branches = new Map();
|
|
82
81
|
/** @type {Map<string,Tag>} */ #tags = new Map();
|
|
83
|
-
#projects = new Map();
|
|
84
|
-
#applications = new Map();
|
|
85
|
-
#milestones = new Map();
|
|
82
|
+
/** @type {Map<string,Project>} */ #projects = new Map();
|
|
83
|
+
/** @type {Map<string,Application>} */ #applications = new Map();
|
|
84
|
+
/** @type {Map<string,Milestone>} */ #milestones = new Map();
|
|
86
85
|
/** @type {Map<string,PullRequest>} */ #pullRequests = new Map();
|
|
87
86
|
#hooks = [];
|
|
88
87
|
|
package/types/branch.d.mts
CHANGED
|
@@ -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,14 +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";
|
|
84
73
|
import { CommitResult } from "./commit.mjs";
|
|
85
74
|
import { Commit } from "./commit.mjs";
|
|
86
75
|
import { PullRequest } from "./pull-request.mjs";
|
package/types/owned-object.d.mts
CHANGED
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";
|
package/types/repository.d.mts
CHANGED
|
@@ -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,16 +338,13 @@ 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";
|
|
357
346
|
import { PullRequest } from "./pull-request.mjs";
|
|
358
347
|
import { Hook } from "./hook.mjs";
|
|
348
|
+
import { Milestone } from "./milestone.mjs";
|
|
349
|
+
import { Project } from "./project.mjs";
|
|
350
|
+
import { Application } from "./application.mjs";
|