repository-provider 32.3.2 → 32.3.4
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 +12 -7
- package/package.json +5 -5
- package/src/base-object.mjs +5 -17
- package/src/owned-object.mjs +16 -0
package/README.md
CHANGED
|
@@ -76,7 +76,6 @@ console.log(await readme.getString());
|
|
|
76
76
|
* [equals](#equals)
|
|
77
77
|
* [Parameters](#parameters-9)
|
|
78
78
|
* [provider](#provider)
|
|
79
|
-
* [api](#api)
|
|
80
79
|
* [trace](#trace)
|
|
81
80
|
* [Parameters](#parameters-10)
|
|
82
81
|
* [info](#info)
|
|
@@ -207,6 +206,7 @@ console.log(await readme.getString());
|
|
|
207
206
|
* [Parameters](#parameters-46)
|
|
208
207
|
* [equals](#equals-3)
|
|
209
208
|
* [Parameters](#parameters-47)
|
|
209
|
+
* [api](#api)
|
|
210
210
|
* [addMethodName](#addmethodname)
|
|
211
211
|
* [Project](#project)
|
|
212
212
|
* [PullRequest](#pullrequest)
|
|
@@ -546,12 +546,6 @@ The provider we live in.
|
|
|
546
546
|
|
|
547
547
|
Returns **[BaseProvider](#baseprovider)** 
|
|
548
548
|
|
|
549
|
-
### api
|
|
550
|
-
|
|
551
|
-
API as given by the owner.
|
|
552
|
-
|
|
553
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
554
|
-
|
|
555
549
|
### trace
|
|
556
550
|
|
|
557
551
|
Forwarded to the owner.
|
|
@@ -626,12 +620,17 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
626
620
|
|
|
627
621
|
### collectionName
|
|
628
622
|
|
|
623
|
+
Tag -> tags
|
|
624
|
+
Repository -> repositories
|
|
625
|
+
|
|
629
626
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the collection holding us in the owner
|
|
630
627
|
|
|
631
628
|
### attributes
|
|
632
629
|
|
|
633
630
|
Attributes definitions
|
|
634
631
|
|
|
632
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
633
|
+
|
|
635
634
|
### writableAttributes
|
|
636
635
|
|
|
637
636
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** writable attributes
|
|
@@ -1232,6 +1231,12 @@ Check for equality.
|
|
|
1232
1231
|
|
|
1233
1232
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if receiver and owner are equal
|
|
1234
1233
|
|
|
1234
|
+
### api
|
|
1235
|
+
|
|
1236
|
+
API as given by the owner.
|
|
1237
|
+
|
|
1238
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** url
|
|
1239
|
+
|
|
1235
1240
|
### addMethodName
|
|
1236
1241
|
|
|
1237
1242
|
Method name to be called to register one instance in the owner.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.3.
|
|
3
|
+
"version": "32.3.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"ava": "^5.1.0",
|
|
38
|
-
"browser-ava": "^1.3.
|
|
38
|
+
"browser-ava": "^1.3.12",
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
|
-
"documentation": "^14.0.
|
|
41
|
-
"repository-provider-test-support": "^2.2.
|
|
40
|
+
"documentation": "^14.0.1",
|
|
41
|
+
"repository-provider-test-support": "^2.2.22",
|
|
42
42
|
"semantic-release": "^19.0.5",
|
|
43
43
|
"typescript": "^4.9.4"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=16.
|
|
46
|
+
"node": ">=16.19.0"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
package/src/base-object.mjs
CHANGED
|
@@ -13,6 +13,10 @@ export class BaseObject {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* ```
|
|
17
|
+
* Tag -> tags
|
|
18
|
+
* Repository -> repositories
|
|
19
|
+
* ```
|
|
16
20
|
* @return {string} name of the collection holding us in the owner
|
|
17
21
|
*/
|
|
18
22
|
static get collectionName() {
|
|
@@ -21,6 +25,7 @@ export class BaseObject {
|
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
27
|
* Attributes definitions
|
|
28
|
+
* @return {Object}
|
|
24
29
|
*/
|
|
25
30
|
static get attributes() {
|
|
26
31
|
return {
|
|
@@ -143,23 +148,6 @@ export class BaseObject {
|
|
|
143
148
|
return other !== undefined;
|
|
144
149
|
}
|
|
145
150
|
|
|
146
|
-
/**
|
|
147
|
-
* The provider we live in.
|
|
148
|
-
* @return {BaseProvider}
|
|
149
|
-
*/
|
|
150
|
-
get provider() {
|
|
151
|
-
return this.owner.provider;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* API as given by the owner.
|
|
156
|
-
* @return {string} url
|
|
157
|
-
*/
|
|
158
|
-
get api() {
|
|
159
|
-
// TODO move into owner-object
|
|
160
|
-
return this.owner?.api;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
151
|
/**
|
|
164
152
|
* Forwarded to the owner.
|
|
165
153
|
* @param {...any} args
|
package/src/owned-object.mjs
CHANGED
|
@@ -30,4 +30,20 @@ export class OwnedObject extends NamedObject {
|
|
|
30
30
|
equals(other) {
|
|
31
31
|
return super.equals(other) && this.owner.equals(other.owner);
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* API as given by the owner.
|
|
36
|
+
* @return {string} url
|
|
37
|
+
*/
|
|
38
|
+
get api() {
|
|
39
|
+
return this.owner.api;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The provider we live in.
|
|
44
|
+
* @return {BaseProvider}
|
|
45
|
+
*/
|
|
46
|
+
get provider() {
|
|
47
|
+
return this.owner.provider;
|
|
48
|
+
}
|
|
33
49
|
}
|