pacc 4.3.0 → 4.5.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 +10 -0
- package/package.json +1 -1
- package/src/common-attributes.mjs +33 -8
- package/types/common-attributes.d.mts +13 -1
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
57
57
|
* [integer\_attribute](#integer_attribute)
|
|
58
58
|
* [integer\_attribute](#integer_attribute-1)
|
|
59
59
|
* [integer\_attribute](#integer_attribute-2)
|
|
60
|
+
* [object\_attribute](#object_attribute)
|
|
60
61
|
* [url\_attribute](#url_attribute)
|
|
61
62
|
* [hostname\_attribute](#hostname_attribute)
|
|
62
63
|
* [port\_attribute](#port_attribute)
|
|
@@ -64,6 +65,7 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
64
65
|
* [body\_attribute](#body_attribute)
|
|
65
66
|
* [title\_attribute](#title_attribute)
|
|
66
67
|
* [priority\_attribute](#priority_attribute)
|
|
68
|
+
* [duration\_attribute](#duration_attribute)
|
|
67
69
|
* [timeout\_attribute](#timeout_attribute)
|
|
68
70
|
* [language\_attribute](#language_attribute)
|
|
69
71
|
* [filter](#filter)
|
|
@@ -254,6 +256,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
254
256
|
|
|
255
257
|
Type: [AttributeDefinition](#attributedefinition)
|
|
256
258
|
|
|
259
|
+
## object\_attribute
|
|
260
|
+
|
|
261
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
262
|
+
|
|
257
263
|
## url\_attribute
|
|
258
264
|
|
|
259
265
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -291,6 +297,10 @@ this defines the order.
|
|
|
291
297
|
|
|
292
298
|
Type: [AttributeDefinition](#attributedefinition)
|
|
293
299
|
|
|
300
|
+
## duration\_attribute
|
|
301
|
+
|
|
302
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
303
|
+
|
|
294
304
|
## timeout\_attribute
|
|
295
305
|
|
|
296
306
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
|
@@ -38,6 +38,14 @@ export const string_collection_attribute = {
|
|
|
38
38
|
collection: true
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @type {AttributeDefinition}
|
|
43
|
+
*/
|
|
44
|
+
export const string_collection_attribute_writeable = {
|
|
45
|
+
...string_collection_attribute,
|
|
46
|
+
writable: true
|
|
47
|
+
};
|
|
48
|
+
|
|
41
49
|
/**
|
|
42
50
|
* @type {AttributeDefinition}
|
|
43
51
|
*/
|
|
@@ -198,11 +206,27 @@ export const public_key_attribute = {
|
|
|
198
206
|
*/
|
|
199
207
|
export const number_attribute = { ...default_attribute, type: "number" };
|
|
200
208
|
|
|
209
|
+
/**
|
|
210
|
+
* @type {AttributeDefinition}
|
|
211
|
+
*/
|
|
212
|
+
export const number_attribute_writable = {
|
|
213
|
+
...number_attribute,
|
|
214
|
+
writable: true
|
|
215
|
+
};
|
|
216
|
+
|
|
201
217
|
/**
|
|
202
218
|
* @type {AttributeDefinition}
|
|
203
219
|
*/
|
|
204
220
|
export const integer_attribute = { ...default_attribute, type: "integer" };
|
|
205
221
|
|
|
222
|
+
/**
|
|
223
|
+
* @type {AttributeDefinition}
|
|
224
|
+
*/
|
|
225
|
+
export const integer_attribute_writable = {
|
|
226
|
+
...integer_attribute,
|
|
227
|
+
writable: true
|
|
228
|
+
};
|
|
229
|
+
|
|
206
230
|
/**
|
|
207
231
|
* @type {AttributeDefinition}
|
|
208
232
|
*/
|
|
@@ -278,20 +302,21 @@ export const title_attribute = {
|
|
|
278
302
|
* @type {AttributeDefinition}
|
|
279
303
|
*/
|
|
280
304
|
export const priority_attribute = {
|
|
281
|
-
...
|
|
282
|
-
|
|
283
|
-
default: 0,
|
|
284
|
-
writable: true
|
|
305
|
+
...number_attribute_writable,
|
|
306
|
+
default: 0
|
|
285
307
|
};
|
|
286
308
|
|
|
309
|
+
/**
|
|
310
|
+
* @type {AttributeDefinition}
|
|
311
|
+
*/
|
|
312
|
+
export { number_attribute as duration_attribute };
|
|
313
|
+
|
|
287
314
|
/**
|
|
288
315
|
* @type {AttributeDefinition}
|
|
289
316
|
*/
|
|
290
317
|
export const timeout_attribute = {
|
|
291
|
-
...
|
|
292
|
-
description: "timeout"
|
|
293
|
-
type: "number",
|
|
294
|
-
writable: true
|
|
318
|
+
...number_attribute_writable,
|
|
319
|
+
description: "timeout"
|
|
295
320
|
};
|
|
296
321
|
|
|
297
322
|
/**
|
|
@@ -35,6 +35,10 @@ export namespace string_collection_attribute {
|
|
|
35
35
|
export let get: Function;
|
|
36
36
|
export let env: string[] | string;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @type {AttributeDefinition}
|
|
40
|
+
*/
|
|
41
|
+
export const string_collection_attribute_writeable: AttributeDefinition;
|
|
38
42
|
/**
|
|
39
43
|
* @type {AttributeDefinition}
|
|
40
44
|
*/
|
|
@@ -104,10 +108,18 @@ export const public_key_attribute: AttributeDefinition;
|
|
|
104
108
|
* @type {AttributeDefinition}
|
|
105
109
|
*/
|
|
106
110
|
export const number_attribute: AttributeDefinition;
|
|
111
|
+
/**
|
|
112
|
+
* @type {AttributeDefinition}
|
|
113
|
+
*/
|
|
114
|
+
export const number_attribute_writable: AttributeDefinition;
|
|
107
115
|
/**
|
|
108
116
|
* @type {AttributeDefinition}
|
|
109
117
|
*/
|
|
110
118
|
export const integer_attribute: AttributeDefinition;
|
|
119
|
+
/**
|
|
120
|
+
* @type {AttributeDefinition}
|
|
121
|
+
*/
|
|
122
|
+
export const integer_attribute_writable: AttributeDefinition;
|
|
111
123
|
/**
|
|
112
124
|
* @type {AttributeDefinition}
|
|
113
125
|
*/
|
|
@@ -188,4 +200,4 @@ export type AttributeDefinition = {
|
|
|
188
200
|
*/
|
|
189
201
|
env?: string[] | string;
|
|
190
202
|
};
|
|
191
|
-
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 };
|
|
203
|
+
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, number_attribute as duration_attribute };
|