pacc 4.0.0 → 4.1.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/README.md CHANGED
@@ -34,13 +34,15 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
34
34
  * [AttributeDefinition](#attributedefinition)
35
35
  * [Properties](#properties)
36
36
  * [default\_attribute](#default_attribute)
37
+ * [default\_attribute](#default_attribute-1)
37
38
  * [name\_attribute](#name_attribute)
38
39
  * [email\_attribute](#email_attribute)
39
40
  * [description\_attribute](#description_attribute)
40
- * [type\_attribute](#type_attribute)
41
41
  * [state\_attribute](#state_attribute)
42
- * [boolean\_attribute](#boolean_attribute)
43
- * [boolean\_read\_only\_attribute](#boolean_read_only_attribute)
42
+ * [boolean\_attribute\_writeable\_true](#boolean_attribute_writeable_true)
43
+ * [boolean\_attribute\_writeable\_true](#boolean_attribute_writeable_true-1)
44
+ * [boolean\_attribute\_writeable\_false](#boolean_attribute_writeable_false)
45
+ * [boolean\_attribute\_false](#boolean_attribute_false)
44
46
  * [uuid\_attribute](#uuid_attribute)
45
47
  * [empty\_attribute](#empty_attribute)
46
48
  * [secret\_attribute](#secret_attribute)
@@ -51,8 +53,8 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
51
53
  * [private\_key\_attribute](#private_key_attribute)
52
54
  * [public\_key\_attribute](#public_key_attribute)
53
55
  * [integer\_attribute](#integer_attribute)
54
- * [count\_attribute](#count_attribute)
55
- * [size\_attribute](#size_attribute)
56
+ * [integer\_attribute](#integer_attribute-1)
57
+ * [integer\_attribute](#integer_attribute-2)
56
58
  * [url\_attribute](#url_attribute)
57
59
  * [hostname\_attribute](#hostname_attribute)
58
60
  * [port\_attribute](#port_attribute)
@@ -61,7 +63,6 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
61
63
  * [title\_attribute](#title_attribute)
62
64
  * [priority\_attribute](#priority_attribute)
63
65
  * [timeout\_attribute](#timeout_attribute)
64
- * [active\_attribute](#active_attribute)
65
66
  * [language\_attribute](#language_attribute)
66
67
  * [filter](#filter)
67
68
  * [Parameters](#parameters-2)
@@ -145,7 +146,6 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
145
146
  * `collection` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
146
147
  * `private` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** should the value be shown
147
148
  * `depends` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** name of an attribute we depend on
148
- * `additionalAttributes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** extra attributes that are present in case our attribute is set
149
149
  * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** human readable
150
150
  * `default` **any?** the default value
151
151
  * `set` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** set the value
@@ -158,6 +158,10 @@ Common attribute properties.
158
158
 
159
159
  Type: [AttributeDefinition](#attributedefinition)
160
160
 
161
+ ## default\_attribute
162
+
163
+ Type: [AttributeDefinition](#attributedefinition)
164
+
161
165
  ## name\_attribute
162
166
 
163
167
  Type: [AttributeDefinition](#attributedefinition)
@@ -172,19 +176,23 @@ The description of the object content.
172
176
 
173
177
  Type: [AttributeDefinition](#attributedefinition)
174
178
 
175
- ## type\_attribute
179
+ ## state\_attribute
176
180
 
177
181
  Type: [AttributeDefinition](#attributedefinition)
178
182
 
179
- ## state\_attribute
183
+ ## boolean\_attribute\_writeable\_true
184
+
185
+ Type: [AttributeDefinition](#attributedefinition)
186
+
187
+ ## boolean\_attribute\_writeable\_true
180
188
 
181
189
  Type: [AttributeDefinition](#attributedefinition)
182
190
 
183
- ## boolean\_attribute
191
+ ## boolean\_attribute\_writeable\_false
184
192
 
185
193
  Type: [AttributeDefinition](#attributedefinition)
186
194
 
187
- ## boolean\_read\_only\_attribute
195
+ ## boolean\_attribute\_false
188
196
 
189
197
  Type: [AttributeDefinition](#attributedefinition)
190
198
 
@@ -228,11 +236,11 @@ Type: [AttributeDefinition](#attributedefinition)
228
236
 
229
237
  Type: [AttributeDefinition](#attributedefinition)
230
238
 
231
- ## count\_attribute
239
+ ## integer\_attribute
232
240
 
233
241
  Type: [AttributeDefinition](#attributedefinition)
234
242
 
235
- ## size\_attribute
243
+ ## integer\_attribute
236
244
 
237
245
  Type: [AttributeDefinition](#attributedefinition)
238
246
 
@@ -250,19 +258,19 @@ Type: [AttributeDefinition](#attributedefinition)
250
258
 
251
259
  ## id\_attribute
252
260
 
253
- Unique id within the provider.
261
+ Unique id within.
254
262
 
255
263
  Type: [AttributeDefinition](#attributedefinition)
256
264
 
257
265
  ## body\_attribute
258
266
 
259
- The body text of the pull request.
267
+ The body text.
260
268
 
261
269
  Type: [AttributeDefinition](#attributedefinition)
262
270
 
263
271
  ## title\_attribute
264
272
 
265
- The one line description of the pull request.
273
+ The one line description.
266
274
 
267
275
  Type: [AttributeDefinition](#attributedefinition)
268
276
 
@@ -277,10 +285,6 @@ Type: [AttributeDefinition](#attributedefinition)
277
285
 
278
286
  Type: [AttributeDefinition](#attributedefinition)
279
287
 
280
- ## active\_attribute
281
-
282
- Type: [AttributeDefinition](#attributedefinition)
283
-
284
288
  ## language\_attribute
285
289
 
286
290
  Type: [AttributeDefinition](#attributedefinition)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -5,6 +5,7 @@ const types = {
5
5
  integer: { name: "integer" },
6
6
  "unsigned-integer": { name: "unsigned-integer" },
7
7
  boolean: { name: "boolean" },
8
+ url: { name: "url" },
8
9
  object: { name: "object" }
9
10
  };
10
11
 
@@ -8,7 +8,6 @@
8
8
  * @property {boolean} collection
9
9
  * @property {boolean} [private] should the value be shown
10
10
  * @property {string} [depends] name of an attribute we depend on
11
- * @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
12
11
  * @property {string} [description] human readable
13
12
  * @property {any} [default] the default value
14
13
  * @property {Function} [set] set the value
@@ -26,10 +25,14 @@ export const default_attribute = {
26
25
  mandatory: false,
27
26
  collection: false,
28
27
  private: false,
29
- isKey: false,
30
- additionalAttributes: []
28
+ isKey: false
31
29
  };
32
30
 
31
+ /**
32
+ * @type {AttributeDefinition}
33
+ */
34
+ export { default_attribute as string_attribute };
35
+
33
36
  /**
34
37
  * @type {AttributeDefinition}
35
38
  */
@@ -107,15 +110,15 @@ export { boolean_attribute_writeable_true as active_attribute };
107
110
  /**
108
111
  * @type {AttributeDefinition}
109
112
  */
110
- export const uuid_attribute = {
111
- ...default_attribute,
112
- isKey: true
113
- };
113
+ export { boolean_attribute_writeable_false as empty_attribute };
114
114
 
115
115
  /**
116
116
  * @type {AttributeDefinition}
117
117
  */
118
- export const empty_attribute = { ...default_attribute, type: "boolean" };
118
+ export const uuid_attribute = {
119
+ ...default_attribute,
120
+ isKey: true
121
+ };
119
122
 
120
123
  /**
121
124
  * @type {AttributeDefinition}
@@ -182,6 +185,11 @@ export const public_key_attribute = {
182
185
  writable: true
183
186
  };
184
187
 
188
+ /**
189
+ * @type {AttributeDefinition}
190
+ */
191
+ export const number_attribute = { ...default_attribute, type: "number" };
192
+
185
193
  /**
186
194
  * @type {AttributeDefinition}
187
195
  */
@@ -8,7 +8,6 @@
8
8
  * @property {boolean} collection
9
9
  * @property {boolean} [private] should the value be shown
10
10
  * @property {string} [depends] name of an attribute we depend on
11
- * @property {string[]} additionalAttributes extra attributes that are present in case our attribute is set
12
11
  * @property {string} [description] human readable
13
12
  * @property {any} [default] the default value
14
13
  * @property {Function} [set] set the value
@@ -53,10 +52,6 @@ export const boolean_attribute_false: AttributeDefinition;
53
52
  * @type {AttributeDefinition}
54
53
  */
55
54
  export const uuid_attribute: AttributeDefinition;
56
- /**
57
- * @type {AttributeDefinition}
58
- */
59
- export const empty_attribute: AttributeDefinition;
60
55
  /**
61
56
  * @type {AttributeDefinition}
62
57
  */
@@ -85,6 +80,10 @@ export const private_key_attribute: AttributeDefinition;
85
80
  * @type {AttributeDefinition}
86
81
  */
87
82
  export const public_key_attribute: AttributeDefinition;
83
+ /**
84
+ * @type {AttributeDefinition}
85
+ */
86
+ export const number_attribute: AttributeDefinition;
88
87
  /**
89
88
  * @type {AttributeDefinition}
90
89
  */
@@ -144,10 +143,6 @@ export type AttributeDefinition = {
144
143
  * name of an attribute we depend on
145
144
  */
146
145
  depends?: string;
147
- /**
148
- * extra attributes that are present in case our attribute is set
149
- */
150
- additionalAttributes: string[];
151
146
  /**
152
147
  * human readable
153
148
  */
@@ -169,4 +164,4 @@ export type AttributeDefinition = {
169
164
  */
170
165
  env?: string[] | string;
171
166
  };
172
- export { default_attribute as type_attribute, boolean_attribute_writeable_false as boolean_attribute, boolean_attribute_writeable_true as active_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute };
167
+ export { default_attribute as string_attribute, default_attribute as type_attribute, boolean_attribute_writeable_false as boolean_attribute, boolean_attribute_writeable_true as active_attribute, boolean_attribute_writeable_false as empty_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute };