@accordproject/concerto-core 2.0.1 → 2.0.2-20220516154347
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/changelog.txt
CHANGED
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
# Note that the latest public API is documented using JSDocs and is available in api.txt.
|
|
25
25
|
#
|
|
26
26
|
|
|
27
|
+
Version 2.0.1 {f5d85447683b22d6f4072f9cd7f8986e} 22-05-13
|
|
28
|
+
- Add Decorator.isDecorator for use in visitor
|
|
29
|
+
|
|
27
30
|
Version 2.0.1 {62a8de0d35789bbe523269e4e29cd8e6} 2022-04-25
|
|
28
31
|
- Correct type for Concerto.getModelManager()
|
|
29
32
|
|
|
@@ -94,7 +94,7 @@ class Decorator {
|
|
|
94
94
|
* @throws {IllegalModelException}
|
|
95
95
|
* @private
|
|
96
96
|
*/
|
|
97
|
-
validate() {}
|
|
97
|
+
validate() { }
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Returns the name of a decorator
|
|
@@ -111,6 +111,15 @@ class Decorator {
|
|
|
111
111
|
getArguments() {
|
|
112
112
|
return this.arguments;
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Returns true if this class is the definition of a decorator.
|
|
117
|
+
*
|
|
118
|
+
* @return {boolean} true if the class is a decorator
|
|
119
|
+
*/
|
|
120
|
+
isDecorator() {
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
114
123
|
}
|
|
115
124
|
|
|
116
125
|
module.exports = Decorator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accordproject/concerto-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2-20220516154347",
|
|
4
4
|
"description": "Core Implementation for the Concerto Modeling Language",
|
|
5
5
|
"homepage": "https://github.com/accordproject/concerto",
|
|
6
6
|
"engines": {
|
|
@@ -65,16 +65,16 @@
|
|
|
65
65
|
"yargs": "17.3.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@accordproject/concerto-cto": "2.0.
|
|
69
|
-
"@accordproject/concerto-metamodel": "2.0.
|
|
70
|
-
"@accordproject/concerto-util": "2.0.
|
|
68
|
+
"@accordproject/concerto-cto": "2.0.2-20220516154347",
|
|
69
|
+
"@accordproject/concerto-metamodel": "2.0.2-20220516154347",
|
|
70
|
+
"@accordproject/concerto-util": "2.0.2-20220516154347",
|
|
71
71
|
"dayjs": "1.10.8",
|
|
72
72
|
"debug": "4.3.1",
|
|
73
73
|
"lorem-ipsum": "2.0.3",
|
|
74
74
|
"randexp": "0.5.3",
|
|
75
75
|
"semver": "7.3.5",
|
|
76
76
|
"slash": "3.0.0",
|
|
77
|
-
"urijs": "1.19.
|
|
77
|
+
"urijs": "1.19.11",
|
|
78
78
|
"uuid": "8.3.2"
|
|
79
79
|
},
|
|
80
80
|
"browserslist": "> 0.25%, not dead",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"check-coverage": true,
|
|
138
138
|
"statements": 98,
|
|
139
139
|
"branches": 97,
|
|
140
|
-
"functions":
|
|
140
|
+
"functions": 97,
|
|
141
141
|
"lines": 98
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -51,6 +51,12 @@ declare class Decorator {
|
|
|
51
51
|
* @return {object[]} the arguments for this decorator
|
|
52
52
|
*/
|
|
53
53
|
getArguments(): object[];
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if this class is the definition of a decorator.
|
|
56
|
+
*
|
|
57
|
+
* @return {boolean} true if the class is a decorator
|
|
58
|
+
*/
|
|
59
|
+
isDecorator(): boolean;
|
|
54
60
|
}
|
|
55
61
|
import Property = require("./property");
|
|
56
62
|
import ClassDeclaration = require("./classdeclaration");
|