repository-provider 32.3.21 → 32.4.0
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/attributes.mjs +2 -4
- package/src/base-object.mjs +2 -3
- package/src/index.mjs +1 -0
- package/src/named-object.mjs +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.4.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"browser-ava": "^1.3.13",
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
40
|
"documentation": "^14.0.1",
|
|
41
|
-
"repository-provider-test-support": "^2.2.
|
|
41
|
+
"repository-provider-test-support": "^2.2.29",
|
|
42
42
|
"semantic-release": "^19.0.5",
|
|
43
43
|
"typescript": "^4.9.4"
|
|
44
44
|
},
|
package/src/attributes.mjs
CHANGED
|
@@ -4,6 +4,8 @@ export const boolean_attribute = {
|
|
|
4
4
|
writable: true
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
export const uuid_attiribute = { isKey: true, type: "string" };
|
|
8
|
+
|
|
7
9
|
export const url = { description: "home of the object", type: "url" };
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -25,10 +27,6 @@ export const name = {
|
|
|
25
27
|
*/
|
|
26
28
|
export const id = { isKey: true, type: "string" };
|
|
27
29
|
|
|
28
|
-
/**
|
|
29
|
-
* Unique id.
|
|
30
|
-
*/
|
|
31
|
-
export const uuid = { isKey: true, type: "string" };
|
|
32
30
|
|
|
33
31
|
export const state = { type: "string" };
|
|
34
32
|
|
package/src/base-object.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { definePropertiesFromOptions, mapAttributes } from "./attribute.mjs";
|
|
2
|
-
import { description, id
|
|
2
|
+
import { description, id } from "./attributes.mjs";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @param {Object} options
|
|
@@ -31,8 +31,7 @@ export class BaseObject {
|
|
|
31
31
|
static get attributes() {
|
|
32
32
|
return {
|
|
33
33
|
description,
|
|
34
|
-
id
|
|
35
|
-
uuid
|
|
34
|
+
id
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
|
package/src/index.mjs
CHANGED
package/src/named-object.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { optionJSON } from "./attribute.mjs";
|
|
2
2
|
import { BaseObject } from "./base-object.mjs";
|
|
3
|
-
import { name, url, description, id
|
|
3
|
+
import { name, url, description, id } from "./attributes.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Object with a name.
|
|
@@ -18,9 +18,8 @@ export class NamedObject extends BaseObject {
|
|
|
18
18
|
return {
|
|
19
19
|
name,
|
|
20
20
|
id,
|
|
21
|
-
uuid,
|
|
22
21
|
description,
|
|
23
|
-
|
|
22
|
+
|
|
24
23
|
/**
|
|
25
24
|
* The url of home page.
|
|
26
25
|
* @return {string}
|