pacc 3.11.1 → 3.12.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/README.md CHANGED
@@ -314,8 +314,7 @@ Create attributes from its definition.
314
314
  ### Parameters
315
315
 
316
316
  * `newDefinitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
317
- * `presentDefinitions`  
318
- * `baseDefinitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** optional merg in attributes
317
+ * `presentDefinitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** optional merg in attributes
319
318
 
320
319
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** attributes
321
320
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -5,6 +5,7 @@
5
5
  * @property {boolean} isKey
6
6
  * @property {boolean} writable
7
7
  * @property {boolean} mandatory
8
+ * @property {boolean} collection
8
9
  * @property {boolean} [private] should the value be shown
9
10
  * @property {string} [depends] name of an attribute we depend on
10
11
  * @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
@@ -23,6 +24,7 @@ export const default_attribute = {
23
24
  type: "string",
24
25
  writable: false,
25
26
  mandatory: false,
27
+ collection: false,
26
28
  private: false,
27
29
  isKey: false,
28
30
  additionalAttributes: []
@@ -159,12 +161,17 @@ export const public_key_attribute = {
159
161
  /**
160
162
  * @type {AttributeDefinition}
161
163
  */
162
- export const count_attribute = { ...default_attribute, type: "integer" };
164
+ export const integer_attribute = { ...default_attribute, type: "integer" };
163
165
 
164
166
  /**
165
167
  * @type {AttributeDefinition}
166
168
  */
167
- export const size_attribute = { ...default_attribute, type: "integer" };
169
+ export const count_attribute = integer_attribute;
170
+
171
+ /**
172
+ * @type {AttributeDefinition}
173
+ */
174
+ export const size_attribute = integer_attribute;
168
175
 
169
176
  /**
170
177
  * @type {AttributeDefinition}
@@ -187,8 +194,7 @@ export const hostname_attribute = {
187
194
  * @type {AttributeDefinition}
188
195
  */
189
196
  export const port_attribute = {
190
- ...default_attribute,
191
- type: "integer",
197
+ ...integer_attribute,
192
198
  description: "port"
193
199
  };
194
200
 
@@ -248,8 +254,7 @@ export const timeout_attribute = {
248
254
  * @type {AttributeDefinition}
249
255
  */
250
256
  export const active_attribute = {
251
- ...default_attribute,
252
- type: "boolean",
257
+ ...boolean_attribute,
253
258
  default: true,
254
259
  writable: true
255
260
  };
@@ -5,6 +5,7 @@
5
5
  * @property {boolean} isKey
6
6
  * @property {boolean} writable
7
7
  * @property {boolean} mandatory
8
+ * @property {boolean} collection
8
9
  * @property {boolean} [private] should the value be shown
9
10
  * @property {string} [depends] name of an attribute we depend on
10
11
  * @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
@@ -80,6 +81,10 @@ export const private_key_attribute: AttributeDefinition;
80
81
  * @type {AttributeDefinition}
81
82
  */
82
83
  export const public_key_attribute: AttributeDefinition;
84
+ /**
85
+ * @type {AttributeDefinition}
86
+ */
87
+ export const integer_attribute: AttributeDefinition;
83
88
  /**
84
89
  * @type {AttributeDefinition}
85
90
  */
@@ -138,6 +143,7 @@ export type AttributeDefinition = {
138
143
  isKey: boolean;
139
144
  writable: boolean;
140
145
  mandatory: boolean;
146
+ collection: boolean;
141
147
  /**
142
148
  * should the value be shown
143
149
  */