repository-provider 35.2.7 → 35.2.8
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 +8 -130
- package/package.json +1 -1
- package/src/attributes.mjs +4 -4
- package/src/index.mjs +3 -13
- package/src/named-object.mjs +0 -6
- package/src/owned-object.mjs +0 -5
- package/src/ref.mjs +0 -2
- package/types/index.d.mts +3 -3
- package/types/named-object.d.mts +0 -6
- package/types/owned-object.d.mts +0 -8
- package/types/ref.d.mts +0 -4
- package/types/repository-group.d.mts +1 -1
- package/types/repository-owner.d.mts +1 -1
- package/types/single-group-provider.d.mts +1 -1
package/README.md
CHANGED
|
@@ -128,13 +128,6 @@ console.log(await readme.string);
|
|
|
128
128
|
* [name](#name)
|
|
129
129
|
* [provider](#provider)
|
|
130
130
|
* [toJSON](#tojson)
|
|
131
|
-
* [repositoryGroupClass](#repositorygroupclass)
|
|
132
|
-
* [hookClass](#hookclass)
|
|
133
|
-
* [repositoryClass](#repositoryclass)
|
|
134
|
-
* [branchClass](#branchclass)
|
|
135
|
-
* [tagClass](#tagclass)
|
|
136
|
-
* [entryClass](#entryclass)
|
|
137
|
-
* [pullRequestClass](#pullrequestclass)
|
|
138
131
|
* [instanceIdentifier](#instanceidentifier)
|
|
139
132
|
* [optionsFromEnvironment](#optionsfromenvironment)
|
|
140
133
|
* [Parameters](#parameters-22)
|
|
@@ -178,13 +171,6 @@ console.log(await readme.string);
|
|
|
178
171
|
* [name](#name-1)
|
|
179
172
|
* [provider](#provider-1)
|
|
180
173
|
* [toJSON](#tojson-1)
|
|
181
|
-
* [repositoryGroupClass](#repositorygroupclass-1)
|
|
182
|
-
* [hookClass](#hookclass-1)
|
|
183
|
-
* [repositoryClass](#repositoryclass-1)
|
|
184
|
-
* [branchClass](#branchclass-1)
|
|
185
|
-
* [tagClass](#tagclass-1)
|
|
186
|
-
* [entryClass](#entryclass-1)
|
|
187
|
-
* [pullRequestClass](#pullrequestclass-1)
|
|
188
174
|
* [instanceIdentifier](#instanceidentifier-1)
|
|
189
175
|
* [optionsFromEnvironment](#optionsfromenvironment-1)
|
|
190
176
|
* [Parameters](#parameters-39)
|
|
@@ -279,12 +265,6 @@ console.log(await readme.string);
|
|
|
279
265
|
* [Parameters](#parameters-65)
|
|
280
266
|
* [debug](#debug)
|
|
281
267
|
* [Parameters](#parameters-66)
|
|
282
|
-
* [repositoryClass](#repositoryclass-2)
|
|
283
|
-
* [pullRequestClass](#pullrequestclass-2)
|
|
284
|
-
* [branchClass](#branchclass-2)
|
|
285
|
-
* [tagClass](#tagclass-2)
|
|
286
|
-
* [entryClass](#entryclass-2)
|
|
287
|
-
* [hookClass](#hookclass-2)
|
|
288
268
|
* [addMethodName](#addmethodname)
|
|
289
269
|
* [deleteMethodName](#deletemethodname)
|
|
290
270
|
* [OwnedObject](#ownedobject-1)
|
|
@@ -313,12 +293,6 @@ console.log(await readme.string);
|
|
|
313
293
|
* [Parameters](#parameters-72)
|
|
314
294
|
* [debug](#debug-1)
|
|
315
295
|
* [Parameters](#parameters-73)
|
|
316
|
-
* [repositoryClass](#repositoryclass-3)
|
|
317
|
-
* [pullRequestClass](#pullrequestclass-3)
|
|
318
|
-
* [branchClass](#branchclass-3)
|
|
319
|
-
* [tagClass](#tagclass-3)
|
|
320
|
-
* [entryClass](#entryclass-3)
|
|
321
|
-
* [hookClass](#hookclass-3)
|
|
322
296
|
* [addMethodName](#addmethodname-1)
|
|
323
297
|
* [deleteMethodName](#deletemethodname-1)
|
|
324
298
|
* [Project](#project)
|
|
@@ -505,7 +479,7 @@ Object.definedProperties(new aClass(),{ with_default: { value: 77 }})
|
|
|
505
479
|
### Parameters
|
|
506
480
|
|
|
507
481
|
* `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** target object
|
|
508
|
-
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** as passed to object constructor (optional, default `{}`)
|
|
482
|
+
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** as passed to object constructor. Used as values for the attributes. (optional, default `{}`)
|
|
509
483
|
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** object properties (optional, default `{}`)
|
|
510
484
|
* `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** attribute meta info (optional, default `object.constructor.attributes`)
|
|
511
485
|
|
|
@@ -565,7 +539,7 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
565
539
|
|
|
566
540
|
## default\_attribute
|
|
567
541
|
|
|
568
|
-
|
|
542
|
+
Common attribute properties.
|
|
569
543
|
|
|
570
544
|
Type: AttributeDefinition
|
|
571
545
|
|
|
@@ -927,20 +901,6 @@ Returns **[BaseProvider](#baseprovider)** this
|
|
|
927
901
|
List all defined entries from attributes.
|
|
928
902
|
return {object}
|
|
929
903
|
|
|
930
|
-
### repositoryGroupClass
|
|
931
|
-
|
|
932
|
-
### hookClass
|
|
933
|
-
|
|
934
|
-
### repositoryClass
|
|
935
|
-
|
|
936
|
-
### branchClass
|
|
937
|
-
|
|
938
|
-
### tagClass
|
|
939
|
-
|
|
940
|
-
### entryClass
|
|
941
|
-
|
|
942
|
-
### pullRequestClass
|
|
943
|
-
|
|
944
904
|
### instanceIdentifier
|
|
945
905
|
|
|
946
906
|
Prefix used to form environment variables.
|
|
@@ -1181,20 +1141,6 @@ Returns **[BaseProvider](#baseprovider)** this
|
|
|
1181
1141
|
List all defined entries from attributes.
|
|
1182
1142
|
return {object}
|
|
1183
1143
|
|
|
1184
|
-
### repositoryGroupClass
|
|
1185
|
-
|
|
1186
|
-
### hookClass
|
|
1187
|
-
|
|
1188
|
-
### repositoryClass
|
|
1189
|
-
|
|
1190
|
-
### branchClass
|
|
1191
|
-
|
|
1192
|
-
### tagClass
|
|
1193
|
-
|
|
1194
|
-
### entryClass
|
|
1195
|
-
|
|
1196
|
-
### pullRequestClass
|
|
1197
|
-
|
|
1198
1144
|
### instanceIdentifier
|
|
1199
1145
|
|
|
1200
1146
|
Prefix used to form environment variables.
|
|
@@ -1694,42 +1640,6 @@ Forwarded to the owner.
|
|
|
1694
1640
|
|
|
1695
1641
|
* `args` **...any** 
|
|
1696
1642
|
|
|
1697
|
-
### repositoryClass
|
|
1698
|
-
|
|
1699
|
-
By default we use the owners implementation.
|
|
1700
|
-
|
|
1701
|
-
Returns **[Repository](#repository)** as defined in the owner
|
|
1702
|
-
|
|
1703
|
-
### pullRequestClass
|
|
1704
|
-
|
|
1705
|
-
By default we use the owners implementation.
|
|
1706
|
-
|
|
1707
|
-
Returns **[PullRequest](#pullrequest)** as defined in the owner
|
|
1708
|
-
|
|
1709
|
-
### branchClass
|
|
1710
|
-
|
|
1711
|
-
By default we use the owners implementation.
|
|
1712
|
-
|
|
1713
|
-
Returns **[Branch](#branch)** as defined in the owner
|
|
1714
|
-
|
|
1715
|
-
### tagClass
|
|
1716
|
-
|
|
1717
|
-
By default we use the owners implementation.
|
|
1718
|
-
|
|
1719
|
-
Returns **[Tag](#tag)** as defined in the owner
|
|
1720
|
-
|
|
1721
|
-
### entryClass
|
|
1722
|
-
|
|
1723
|
-
By default we use the owners implementation.
|
|
1724
|
-
|
|
1725
|
-
Returns **ContentEntry** as defined in the owner
|
|
1726
|
-
|
|
1727
|
-
### hookClass
|
|
1728
|
-
|
|
1729
|
-
By default we use the owners implementation.
|
|
1730
|
-
|
|
1731
|
-
Returns **[Hook](#hook)** as defined in the owner
|
|
1732
|
-
|
|
1733
1643
|
### addMethodName
|
|
1734
1644
|
|
|
1735
1645
|
Method name to be called to register one instance in the owner.
|
|
@@ -1879,42 +1789,6 @@ Forwarded to the owner.
|
|
|
1879
1789
|
|
|
1880
1790
|
* `args` **...any** 
|
|
1881
1791
|
|
|
1882
|
-
### repositoryClass
|
|
1883
|
-
|
|
1884
|
-
By default we use the owners implementation.
|
|
1885
|
-
|
|
1886
|
-
Returns **[Repository](#repository)** as defined in the owner
|
|
1887
|
-
|
|
1888
|
-
### pullRequestClass
|
|
1889
|
-
|
|
1890
|
-
By default we use the owners implementation.
|
|
1891
|
-
|
|
1892
|
-
Returns **[PullRequest](#pullrequest)** as defined in the owner
|
|
1893
|
-
|
|
1894
|
-
### branchClass
|
|
1895
|
-
|
|
1896
|
-
By default we use the owners implementation.
|
|
1897
|
-
|
|
1898
|
-
Returns **[Branch](#branch)** as defined in the owner
|
|
1899
|
-
|
|
1900
|
-
### tagClass
|
|
1901
|
-
|
|
1902
|
-
By default we use the owners implementation.
|
|
1903
|
-
|
|
1904
|
-
Returns **[Tag](#tag)** as defined in the owner
|
|
1905
|
-
|
|
1906
|
-
### entryClass
|
|
1907
|
-
|
|
1908
|
-
By default we use the owners implementation.
|
|
1909
|
-
|
|
1910
|
-
Returns **ContentEntry** as defined in the owner
|
|
1911
|
-
|
|
1912
|
-
### hookClass
|
|
1913
|
-
|
|
1914
|
-
By default we use the owners implementation.
|
|
1915
|
-
|
|
1916
|
-
Returns **[Hook](#hook)** as defined in the owner
|
|
1917
|
-
|
|
1918
1792
|
### addMethodName
|
|
1919
1793
|
|
|
1920
1794
|
Method name to be called to register one instance in the owner.
|
|
@@ -2169,7 +2043,9 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
2169
2043
|
|
|
2170
2044
|
### attributes
|
|
2171
2045
|
|
|
2172
|
-
|
|
2046
|
+
Attributes
|
|
2047
|
+
|
|
2048
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
2173
2049
|
|
|
2174
2050
|
## Ref
|
|
2175
2051
|
|
|
@@ -2259,7 +2135,9 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
2259
2135
|
|
|
2260
2136
|
### attributes
|
|
2261
2137
|
|
|
2262
|
-
|
|
2138
|
+
Attributes
|
|
2139
|
+
|
|
2140
|
+
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
2263
2141
|
|
|
2264
2142
|
## isProtected
|
|
2265
2143
|
|
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -21,9 +21,9 @@ export const default_attribute = {
|
|
|
21
21
|
*/
|
|
22
22
|
export const boolean_attribute = {
|
|
23
23
|
...default_attribute,
|
|
24
|
+
type: "boolean",
|
|
24
25
|
writable: true,
|
|
25
|
-
default: false
|
|
26
|
-
type: "boolean"
|
|
26
|
+
default: false
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -80,8 +80,8 @@ export const name_attribute = {
|
|
|
80
80
|
*/
|
|
81
81
|
export const url_attribute = {
|
|
82
82
|
...default_attribute,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
type: "url",
|
|
84
|
+
description: "home of the object"
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
/**
|
package/src/index.mjs
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
export * from "./base-object.mjs";
|
|
2
2
|
export * from "./named-object.mjs";
|
|
3
|
-
|
|
4
|
-
export * from "./owned-object.mjs";
|
|
3
|
+
export { OwnedObject } from "./owned-object.mjs";
|
|
5
4
|
export * from "./repository-owner.mjs";
|
|
6
|
-
|
|
7
|
-
export * from "./base-provider.mjs";
|
|
5
|
+
export { BaseProvider } from "./base-provider.mjs";
|
|
8
6
|
export * from "./single-group-provider.mjs";
|
|
9
7
|
export * from "./multi-group-provider.mjs";
|
|
10
8
|
export * from "./repository-group.mjs";
|
|
11
|
-
// @ts-ignore
|
|
12
9
|
export * from "./repository.mjs";
|
|
13
|
-
|
|
14
|
-
export * from "./ref.mjs";
|
|
10
|
+
export { Ref } from "./ref.mjs";
|
|
15
11
|
export * from "./commit.mjs";
|
|
16
|
-
// @ts-ignore
|
|
17
12
|
export * from "./branch.mjs";
|
|
18
|
-
// @ts-ignore
|
|
19
13
|
export * from "./tag.mjs";
|
|
20
|
-
// @ts-ignore
|
|
21
14
|
export * from "./project.mjs";
|
|
22
15
|
export * from "./issue.mjs";
|
|
23
|
-
// @ts-ignore
|
|
24
16
|
export * from "./pull-request.mjs";
|
|
25
|
-
// @ts-ignore
|
|
26
17
|
export * from "./hook.mjs";
|
|
27
|
-
// @ts-ignore
|
|
28
18
|
export * from "./milestone.mjs";
|
|
29
19
|
export * from "./review.mjs";
|
|
30
20
|
export * from "./application.mjs";
|
package/src/named-object.mjs
CHANGED
package/src/owned-object.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { ContentEntry } from "content-entry";
|
|
2
1
|
import { NamedObject } from "./named-object.mjs";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
|
|
6
5
|
* @typedef {import('./repository.mjs').Repository} Repository
|
|
7
|
-
* @typedef {import('./hook.mjs').Hook} Hook
|
|
8
|
-
* @typedef {import('./tag.mjs').Tag} Tag
|
|
9
|
-
* @typedef {import('./branch.mjs').Branch} Branch
|
|
10
|
-
* @typedef {import('./pull-request.mjs').PullRequest} PullRequest
|
|
11
6
|
*/
|
|
12
7
|
|
|
13
8
|
/**
|
package/src/ref.mjs
CHANGED
package/types/index.d.mts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export * from "./base-object.mjs";
|
|
2
2
|
export * from "./named-object.mjs";
|
|
3
|
-
export * from "./owned-object.mjs";
|
|
4
3
|
export * from "./repository-owner.mjs";
|
|
5
|
-
export * from "./base-provider.mjs";
|
|
6
4
|
export * from "./single-group-provider.mjs";
|
|
7
5
|
export * from "./multi-group-provider.mjs";
|
|
8
6
|
export * from "./repository-group.mjs";
|
|
9
7
|
export * from "./repository.mjs";
|
|
10
|
-
export * from "./ref.mjs";
|
|
11
8
|
export * from "./commit.mjs";
|
|
12
9
|
export * from "./branch.mjs";
|
|
13
10
|
export * from "./tag.mjs";
|
|
@@ -21,3 +18,6 @@ export * from "./application.mjs";
|
|
|
21
18
|
export * from "./attribute-extras.mjs";
|
|
22
19
|
export * from "./util.mjs";
|
|
23
20
|
export * from "./attributes.mjs";
|
|
21
|
+
export { OwnedObject } from "./owned-object.mjs";
|
|
22
|
+
export { BaseProvider } from "./base-provider.mjs";
|
|
23
|
+
export { Ref } from "./ref.mjs";
|
package/types/named-object.d.mts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('./hook.mjs').Hook} Hook
|
|
3
|
-
* @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
|
|
4
|
-
*/
|
|
5
1
|
/**
|
|
6
2
|
* Object with a name.
|
|
7
3
|
* @param {string} name
|
|
@@ -46,6 +42,4 @@ export class NamedObject extends BaseObject {
|
|
|
46
42
|
toJSON(): any;
|
|
47
43
|
#private;
|
|
48
44
|
}
|
|
49
|
-
export type Hook = import('./hook.mjs').Hook;
|
|
50
|
-
export type BaseProvider = import('./base-provider.mjs').BaseProvider;
|
|
51
45
|
import { BaseObject } from "./base-object.mjs";
|
package/types/owned-object.d.mts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
|
|
3
3
|
* @typedef {import('./repository.mjs').Repository} Repository
|
|
4
|
-
* @typedef {import('./hook.mjs').Hook} Hook
|
|
5
|
-
* @typedef {import('./tag.mjs').Tag} Tag
|
|
6
|
-
* @typedef {import('./branch.mjs').Branch} Branch
|
|
7
|
-
* @typedef {import('./pull-request.mjs').PullRequest} PullRequest
|
|
8
4
|
*/
|
|
9
5
|
/**
|
|
10
6
|
* Named Object registering itself in the owner.
|
|
@@ -115,8 +111,4 @@ export class OwnedObject extends NamedObject {
|
|
|
115
111
|
}
|
|
116
112
|
export type BaseProvider = import('./base-provider.mjs').BaseProvider;
|
|
117
113
|
export type Repository = import('./repository.mjs').Repository;
|
|
118
|
-
export type Hook = import('./hook.mjs').Hook;
|
|
119
|
-
export type Tag = import('./tag.mjs').Tag;
|
|
120
|
-
export type Branch = import('./branch.mjs').Branch;
|
|
121
|
-
export type PullRequest = import('./pull-request.mjs').PullRequest;
|
|
122
114
|
import { NamedObject } from "./named-object.mjs";
|
package/types/ref.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {import('./repository.mjs').Repository} Repository
|
|
3
|
-
* @typedef {import('./tag.mjs').Tag} Tag
|
|
4
|
-
* @typedef {import('./branch.mjs').Branch} Branch
|
|
5
3
|
*/
|
|
6
4
|
/**
|
|
7
5
|
* Base for Branch and Tag
|
|
@@ -69,7 +67,5 @@ export class Ref extends OwnedObject {
|
|
|
69
67
|
[Symbol.asyncIterator](): AsyncGenerator<ContentEntry>;
|
|
70
68
|
}
|
|
71
69
|
export type Repository = import('./repository.mjs').Repository;
|
|
72
|
-
export type Tag = import('./tag.mjs').Tag;
|
|
73
|
-
export type Branch = import('./branch.mjs').Branch;
|
|
74
70
|
import { OwnedObject } from "./owned-object.mjs";
|
|
75
71
|
import { ContentEntry } from "content-entry";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const RepositoryGroup_base: {
|
|
2
2
|
new (): {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
"__#
|
|
4
|
+
"__#2@#repositories": Map<any, any>;
|
|
5
5
|
normalizeRepositoryName(name: string, forLookup: boolean): string;
|
|
6
6
|
repository(name?: string): Promise<import("./repository.mjs").Repository>;
|
|
7
7
|
repositories(patterns?: string | string[]): AsyncIterable<import("./repository.mjs").Repository>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const SingleGroupProvider_base: {
|
|
2
2
|
new (): {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
"__#
|
|
4
|
+
"__#2@#repositories": Map<any, any>;
|
|
5
5
|
normalizeRepositoryName(name: string, forLookup: boolean): string;
|
|
6
6
|
repository(name?: string): Promise<Repository>;
|
|
7
7
|
repositories(patterns?: string | string[]): AsyncIterable<Repository>;
|