pacc 4.4.0 → 4.5.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 +10 -0
- package/package.json +1 -1
- package/src/common-attributes.mjs +34 -16
- package/types/common-attributes.d.mts +15 -7
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_writable = {
|
|
45
|
+
...string_collection_attribute,
|
|
46
|
+
writable: true
|
|
47
|
+
};
|
|
48
|
+
|
|
41
49
|
/**
|
|
42
50
|
* @type {AttributeDefinition}
|
|
43
51
|
*/
|
|
@@ -80,7 +88,7 @@ export const state_attribute = {
|
|
|
80
88
|
/**
|
|
81
89
|
* @type {AttributeDefinition}
|
|
82
90
|
*/
|
|
83
|
-
export const
|
|
91
|
+
export const boolean_attribute_writable_true = {
|
|
84
92
|
...default_attribute,
|
|
85
93
|
type: "boolean",
|
|
86
94
|
writable: true,
|
|
@@ -90,27 +98,27 @@ export const boolean_attribute_writeable_true = {
|
|
|
90
98
|
/**
|
|
91
99
|
* @type {AttributeDefinition}
|
|
92
100
|
*/
|
|
93
|
-
export const
|
|
101
|
+
export const boolean_attribute_writable_false = {
|
|
94
102
|
...default_attribute,
|
|
95
103
|
type: "boolean",
|
|
96
104
|
writable: true,
|
|
97
105
|
default: false
|
|
98
106
|
};
|
|
99
107
|
|
|
100
|
-
export {
|
|
108
|
+
export { boolean_attribute_writable_false as boolean_attribute };
|
|
101
109
|
|
|
102
110
|
/**
|
|
103
111
|
* @type {AttributeDefinition}
|
|
104
112
|
*/
|
|
105
113
|
export const boolean_attribute_false = {
|
|
106
|
-
...
|
|
114
|
+
...boolean_attribute_writable_false,
|
|
107
115
|
writable: false
|
|
108
116
|
};
|
|
109
117
|
|
|
110
118
|
/**
|
|
111
119
|
* @type {AttributeDefinition}
|
|
112
120
|
*/
|
|
113
|
-
export {
|
|
121
|
+
export { boolean_attribute_writable_true as active_attribute };
|
|
114
122
|
|
|
115
123
|
/**
|
|
116
124
|
* @type {AttributeDefinition}
|
|
@@ -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,27 +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
|
|
|
287
309
|
/**
|
|
288
310
|
* @type {AttributeDefinition}
|
|
289
311
|
*/
|
|
290
|
-
export
|
|
291
|
-
...default_attribute,
|
|
292
|
-
type: "number"
|
|
293
|
-
};
|
|
312
|
+
export { number_attribute as duration_attribute };
|
|
294
313
|
|
|
295
314
|
/**
|
|
296
315
|
* @type {AttributeDefinition}
|
|
297
316
|
*/
|
|
298
317
|
export const timeout_attribute = {
|
|
299
|
-
...
|
|
300
|
-
description: "timeout"
|
|
301
|
-
writable: true
|
|
318
|
+
...number_attribute_writable,
|
|
319
|
+
description: "timeout"
|
|
302
320
|
};
|
|
303
321
|
|
|
304
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_writable: AttributeDefinition;
|
|
38
42
|
/**
|
|
39
43
|
* @type {AttributeDefinition}
|
|
40
44
|
*/
|
|
@@ -55,11 +59,11 @@ export const state_attribute: AttributeDefinition;
|
|
|
55
59
|
/**
|
|
56
60
|
* @type {AttributeDefinition}
|
|
57
61
|
*/
|
|
58
|
-
export const
|
|
62
|
+
export const boolean_attribute_writable_true: AttributeDefinition;
|
|
59
63
|
/**
|
|
60
64
|
* @type {AttributeDefinition}
|
|
61
65
|
*/
|
|
62
|
-
export const
|
|
66
|
+
export const boolean_attribute_writable_false: AttributeDefinition;
|
|
63
67
|
/**
|
|
64
68
|
* @type {AttributeDefinition}
|
|
65
69
|
*/
|
|
@@ -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
|
*/
|
|
@@ -145,10 +157,6 @@ export const title_attribute: AttributeDefinition;
|
|
|
145
157
|
* @type {AttributeDefinition}
|
|
146
158
|
*/
|
|
147
159
|
export const priority_attribute: AttributeDefinition;
|
|
148
|
-
/**
|
|
149
|
-
* @type {AttributeDefinition}
|
|
150
|
-
*/
|
|
151
|
-
export const duration_attribute: AttributeDefinition;
|
|
152
160
|
/**
|
|
153
161
|
* @type {AttributeDefinition}
|
|
154
162
|
*/
|
|
@@ -192,4 +200,4 @@ export type AttributeDefinition = {
|
|
|
192
200
|
*/
|
|
193
201
|
env?: string[] | string;
|
|
194
202
|
};
|
|
195
|
-
export { default_attribute as string_attribute, default_attribute as type_attribute,
|
|
203
|
+
export { default_attribute as string_attribute, default_attribute as type_attribute, boolean_attribute_writable_false as boolean_attribute, boolean_attribute_writable_true as active_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute, number_attribute as duration_attribute };
|