pacc 4.1.0 → 4.2.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
@@ -35,6 +35,7 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
35
35
  * [Properties](#properties)
36
36
  * [default\_attribute](#default_attribute)
37
37
  * [default\_attribute](#default_attribute-1)
38
+ * [default\_attribute](#default_attribute-2)
38
39
  * [name\_attribute](#name_attribute)
39
40
  * [email\_attribute](#email_attribute)
40
41
  * [description\_attribute](#description_attribute)
@@ -42,9 +43,9 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
42
43
  * [boolean\_attribute\_writeable\_true](#boolean_attribute_writeable_true)
43
44
  * [boolean\_attribute\_writeable\_true](#boolean_attribute_writeable_true-1)
44
45
  * [boolean\_attribute\_writeable\_false](#boolean_attribute_writeable_false)
46
+ * [boolean\_attribute\_writeable\_false](#boolean_attribute_writeable_false-1)
45
47
  * [boolean\_attribute\_false](#boolean_attribute_false)
46
48
  * [uuid\_attribute](#uuid_attribute)
47
- * [empty\_attribute](#empty_attribute)
48
49
  * [secret\_attribute](#secret_attribute)
49
50
  * [username\_attribute](#username_attribute)
50
51
  * [password\_attribute](#password_attribute)
@@ -52,6 +53,7 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
52
53
  * [certificate\_attribute](#certificate_attribute)
53
54
  * [private\_key\_attribute](#private_key_attribute)
54
55
  * [public\_key\_attribute](#public_key_attribute)
56
+ * [number\_attribute](#number_attribute)
55
57
  * [integer\_attribute](#integer_attribute)
56
58
  * [integer\_attribute](#integer_attribute-1)
57
59
  * [integer\_attribute](#integer_attribute-2)
@@ -146,7 +148,6 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
146
148
  * `collection` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
147
149
  * `private` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** should the value be shown
148
150
  * `depends` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** name of an attribute we depend on
149
- * `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
150
151
  * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** human readable
151
152
  * `default` **any?** the default value
152
153
  * `set` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** set the value
@@ -163,6 +164,10 @@ Type: [AttributeDefinition](#attributedefinition)
163
164
 
164
165
  Type: [AttributeDefinition](#attributedefinition)
165
166
 
167
+ ## default\_attribute
168
+
169
+ Type: [AttributeDefinition](#attributedefinition)
170
+
166
171
  ## name\_attribute
167
172
 
168
173
  Type: [AttributeDefinition](#attributedefinition)
@@ -193,15 +198,15 @@ Type: [AttributeDefinition](#attributedefinition)
193
198
 
194
199
  Type: [AttributeDefinition](#attributedefinition)
195
200
 
196
- ## boolean\_attribute\_false
201
+ ## boolean\_attribute\_writeable\_false
197
202
 
198
203
  Type: [AttributeDefinition](#attributedefinition)
199
204
 
200
- ## uuid\_attribute
205
+ ## boolean\_attribute\_false
201
206
 
202
207
  Type: [AttributeDefinition](#attributedefinition)
203
208
 
204
- ## empty\_attribute
209
+ ## uuid\_attribute
205
210
 
206
211
  Type: [AttributeDefinition](#attributedefinition)
207
212
 
@@ -233,6 +238,10 @@ Type: [AttributeDefinition](#attributedefinition)
233
238
 
234
239
  Type: [AttributeDefinition](#attributedefinition)
235
240
 
241
+ ## number\_attribute
242
+
243
+ Type: [AttributeDefinition](#attributedefinition)
244
+
236
245
  ## integer\_attribute
237
246
 
238
247
  Type: [AttributeDefinition](#attributedefinition)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
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
 
@@ -28,6 +28,16 @@ export const default_attribute = {
28
28
  isKey: false
29
29
  };
30
30
 
31
+ /**
32
+ * @type {AttributeDefinition}
33
+ */
34
+ export { default_attribute as string_attribute };
35
+
36
+ export const string_collection_attribute = {
37
+ ...default_attribute,
38
+ collection: true
39
+ }
40
+
31
41
  /**
32
42
  * @type {AttributeDefinition}
33
43
  */
@@ -105,15 +115,15 @@ export { boolean_attribute_writeable_true as active_attribute };
105
115
  /**
106
116
  * @type {AttributeDefinition}
107
117
  */
108
- export const uuid_attribute = {
109
- ...default_attribute,
110
- isKey: true
111
- };
118
+ export { boolean_attribute_writeable_false as empty_attribute };
112
119
 
113
120
  /**
114
121
  * @type {AttributeDefinition}
115
122
  */
116
- export const empty_attribute = { ...default_attribute, type: "boolean" };
123
+ export const uuid_attribute = {
124
+ ...default_attribute,
125
+ isKey: true
126
+ };
117
127
 
118
128
  /**
119
129
  * @type {AttributeDefinition}
@@ -180,6 +190,11 @@ export const public_key_attribute = {
180
190
  writable: true
181
191
  };
182
192
 
193
+ /**
194
+ * @type {AttributeDefinition}
195
+ */
196
+ export const number_attribute = { ...default_attribute, type: "number" };
197
+
183
198
  /**
184
199
  * @type {AttributeDefinition}
185
200
  */
@@ -217,7 +232,7 @@ export const hostname_attribute = {
217
232
  */
218
233
  export const port_attribute = {
219
234
  ...integer_attribute,
220
- description: "port"
235
+ description: "ip port"
221
236
  };
222
237
 
223
238
  /**
@@ -227,7 +242,7 @@ export const port_attribute = {
227
242
  export const id_attribute = {
228
243
  ...default_attribute,
229
244
  isKey: true,
230
- description: "internal identifier"
245
+ description: "identifier"
231
246
  };
232
247
 
233
248
  /**
@@ -19,6 +19,22 @@
19
19
  * @type {AttributeDefinition}
20
20
  */
21
21
  export const default_attribute: AttributeDefinition;
22
+ export namespace string_collection_attribute {
23
+ export let collection: boolean;
24
+ export let type: string;
25
+ export let isKey: boolean;
26
+ export let writable: boolean;
27
+ export let mandatory: boolean;
28
+ let _private: boolean;
29
+ export { _private as private };
30
+ export let depends: string;
31
+ export let description: string;
32
+ let _default: any;
33
+ export { _default as default };
34
+ export let set: Function;
35
+ export let get: Function;
36
+ export let env: string[] | string;
37
+ }
22
38
  /**
23
39
  * @type {AttributeDefinition}
24
40
  */
@@ -52,10 +68,6 @@ export const boolean_attribute_false: AttributeDefinition;
52
68
  * @type {AttributeDefinition}
53
69
  */
54
70
  export const uuid_attribute: AttributeDefinition;
55
- /**
56
- * @type {AttributeDefinition}
57
- */
58
- export const empty_attribute: AttributeDefinition;
59
71
  /**
60
72
  * @type {AttributeDefinition}
61
73
  */
@@ -84,6 +96,10 @@ export const private_key_attribute: AttributeDefinition;
84
96
  * @type {AttributeDefinition}
85
97
  */
86
98
  export const public_key_attribute: AttributeDefinition;
99
+ /**
100
+ * @type {AttributeDefinition}
101
+ */
102
+ export const number_attribute: AttributeDefinition;
87
103
  /**
88
104
  * @type {AttributeDefinition}
89
105
  */
@@ -164,4 +180,4 @@ export type AttributeDefinition = {
164
180
  */
165
181
  env?: string[] | string;
166
182
  };
167
- 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 };
183
+ 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 };