pacc 4.1.1 → 4.2.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 +14 -4
- package/package.json +1 -1
- package/src/common-attributes.mjs +11 -3
- package/types/common-attributes.d.mts +21 -1
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)
|
|
@@ -162,6 +164,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
162
164
|
|
|
163
165
|
Type: [AttributeDefinition](#attributedefinition)
|
|
164
166
|
|
|
167
|
+
## default\_attribute
|
|
168
|
+
|
|
169
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
170
|
+
|
|
165
171
|
## name\_attribute
|
|
166
172
|
|
|
167
173
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -192,15 +198,15 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
192
198
|
|
|
193
199
|
Type: [AttributeDefinition](#attributedefinition)
|
|
194
200
|
|
|
195
|
-
## boolean\_attribute\_false
|
|
201
|
+
## boolean\_attribute\_writeable\_false
|
|
196
202
|
|
|
197
203
|
Type: [AttributeDefinition](#attributedefinition)
|
|
198
204
|
|
|
199
|
-
##
|
|
205
|
+
## boolean\_attribute\_false
|
|
200
206
|
|
|
201
207
|
Type: [AttributeDefinition](#attributedefinition)
|
|
202
208
|
|
|
203
|
-
##
|
|
209
|
+
## uuid\_attribute
|
|
204
210
|
|
|
205
211
|
Type: [AttributeDefinition](#attributedefinition)
|
|
206
212
|
|
|
@@ -232,6 +238,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
232
238
|
|
|
233
239
|
Type: [AttributeDefinition](#attributedefinition)
|
|
234
240
|
|
|
241
|
+
## number\_attribute
|
|
242
|
+
|
|
243
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
244
|
+
|
|
235
245
|
## integer\_attribute
|
|
236
246
|
|
|
237
247
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
|
@@ -33,6 +33,11 @@ export const default_attribute = {
|
|
|
33
33
|
*/
|
|
34
34
|
export { default_attribute as string_attribute };
|
|
35
35
|
|
|
36
|
+
export const string_collection_attribute = {
|
|
37
|
+
...default_attribute,
|
|
38
|
+
collection: true
|
|
39
|
+
};
|
|
40
|
+
|
|
36
41
|
/**
|
|
37
42
|
* @type {AttributeDefinition}
|
|
38
43
|
*/
|
|
@@ -110,7 +115,10 @@ export { boolean_attribute_writeable_true as active_attribute };
|
|
|
110
115
|
/**
|
|
111
116
|
* @type {AttributeDefinition}
|
|
112
117
|
*/
|
|
113
|
-
export
|
|
118
|
+
export const empty_attribute = {
|
|
119
|
+
...default_attribute,
|
|
120
|
+
type: "boolean"
|
|
121
|
+
};
|
|
114
122
|
|
|
115
123
|
/**
|
|
116
124
|
* @type {AttributeDefinition}
|
|
@@ -227,7 +235,7 @@ export const hostname_attribute = {
|
|
|
227
235
|
*/
|
|
228
236
|
export const port_attribute = {
|
|
229
237
|
...integer_attribute,
|
|
230
|
-
description: "port"
|
|
238
|
+
description: "ip port"
|
|
231
239
|
};
|
|
232
240
|
|
|
233
241
|
/**
|
|
@@ -237,7 +245,7 @@ export const port_attribute = {
|
|
|
237
245
|
export const id_attribute = {
|
|
238
246
|
...default_attribute,
|
|
239
247
|
isKey: true,
|
|
240
|
-
description: "
|
|
248
|
+
description: "identifier"
|
|
241
249
|
};
|
|
242
250
|
|
|
243
251
|
/**
|
|
@@ -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
|
*/
|
|
@@ -48,6 +64,10 @@ export const boolean_attribute_writeable_false: AttributeDefinition;
|
|
|
48
64
|
* @type {AttributeDefinition}
|
|
49
65
|
*/
|
|
50
66
|
export const boolean_attribute_false: AttributeDefinition;
|
|
67
|
+
/**
|
|
68
|
+
* @type {AttributeDefinition}
|
|
69
|
+
*/
|
|
70
|
+
export const empty_attribute: AttributeDefinition;
|
|
51
71
|
/**
|
|
52
72
|
* @type {AttributeDefinition}
|
|
53
73
|
*/
|
|
@@ -164,4 +184,4 @@ export type AttributeDefinition = {
|
|
|
164
184
|
*/
|
|
165
185
|
env?: string[] | string;
|
|
166
186
|
};
|
|
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,
|
|
187
|
+
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, integer_attribute as count_attribute, integer_attribute as size_attribute };
|