repository-provider 30.3.0 → 30.3.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 +2 -2
- package/src/base-object.mjs +7 -0
- package/src/owned-object.mjs +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "30.3.
|
|
3
|
+
"version": "30.3.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ava": "^4.2.0",
|
|
37
37
|
"c8": "^7.11.3",
|
|
38
38
|
"documentation": "^13.2.5",
|
|
39
|
-
"repository-provider-test-support": "^2.1.
|
|
39
|
+
"repository-provider-test-support": "^2.1.22",
|
|
40
40
|
"semantic-release": "^19.0.2",
|
|
41
41
|
"typescript": "^4.7.2"
|
|
42
42
|
},
|
package/src/base-object.mjs
CHANGED
|
@@ -13,6 +13,13 @@ export class BaseObject {
|
|
|
13
13
|
return this.name.toLocaleLowerCase();
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* @return {string} name of the collection holding us in the owner
|
|
18
|
+
*/
|
|
19
|
+
static get collectionName() {
|
|
20
|
+
return this.type.toLocaleLowerCase() + "s";
|
|
21
|
+
}
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
* Attributes definitions
|
|
18
25
|
*/
|
package/src/owned-object.mjs
CHANGED
|
@@ -13,13 +13,6 @@ export class OwnedObject extends NamedObject {
|
|
|
13
13
|
return "_add" + this.name;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* @return {string} name of the collection holding ous in the owner
|
|
18
|
-
*/
|
|
19
|
-
static get collectionName() {
|
|
20
|
-
return this.name.toLocaleLowerCase() + "s";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
16
|
constructor(owner, name, options, additionalProperties) {
|
|
24
17
|
super(name, options, {
|
|
25
18
|
...additionalProperties,
|