pacc 9.5.0 → 10.0.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
@@ -96,6 +96,7 @@ tokens "abc" "
96
96
  * [version\_attribute\_writable](#version_attribute_writable)
97
97
  * [description\_attribute](#description_attribute)
98
98
  * [type\_attribute](#type_attribute)
99
+ * [type\_attribute\_writable](#type_attribute_writable)
99
100
  * [state\_attribute\_writable](#state_attribute_writable)
100
101
  * [boolean\_attribute](#boolean_attribute)
101
102
  * [boolean\_attribute\_writable](#boolean_attribute_writable)
@@ -126,10 +127,12 @@ tokens "abc" "
126
127
  * [url\_attribute\_writable](#url_attribute_writable)
127
128
  * [hostname\_attribute](#hostname_attribute)
128
129
  * [port\_attribute](#port_attribute)
130
+ * [port\_attribute\_writable](#port_attribute_writable)
129
131
  * [id\_attribute](#id_attribute)
130
132
  * [body\_attribute\_writable](#body_attribute_writable)
131
133
  * [title\_attribute\_writable](#title_attribute_writable)
132
134
  * [priority\_attribute](#priority_attribute)
135
+ * [priority\_attribute](#priority_attribute-1)
133
136
  * [duration\_attribute](#duration_attribute)
134
137
  * [duration\_attribute\_writable](#duration_attribute_writable)
135
138
  * [duration\_ms\_attribute](#duration_ms_attribute)
@@ -365,6 +368,10 @@ Type: [AttributeDefinition](#attributedefinition)
365
368
 
366
369
  Type: [AttributeDefinition](#attributedefinition)
367
370
 
371
+ ## type\_attribute\_writable
372
+
373
+ Type: [AttributeDefinition](#attributedefinition)
374
+
368
375
  ## state\_attribute\_writable
369
376
 
370
377
  Type: [AttributeDefinition](#attributedefinition)
@@ -485,6 +492,10 @@ Type: [AttributeDefinition](#attributedefinition)
485
492
 
486
493
  Type: [AttributeDefinition](#attributedefinition)
487
494
 
495
+ ## port\_attribute\_writable
496
+
497
+ Type: [AttributeDefinition](#attributedefinition)
498
+
488
499
  ## id\_attribute
489
500
 
490
501
  Unique id within.
@@ -510,6 +521,10 @@ this defines the order.
510
521
 
511
522
  Type: [AttributeDefinition](#attributedefinition)
512
523
 
524
+ ## priority\_attribute
525
+
526
+ Type: [AttributeDefinition](#attributedefinition)
527
+
513
528
  ## duration\_attribute
514
529
 
515
530
  Duration in seconds.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "9.5.0",
3
+ "version": "10.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -55,7 +55,7 @@ export function* attributeIterator(definition, filter, path = []) {
55
55
  if (definition) {
56
56
  for (const [name, def] of Object.entries(definition)) {
57
57
  const path2 = [...path, name];
58
- if (typeof filter !== "function" || filter(name, def)) {
58
+ if (typeof filter !== "function" || filter(def)) {
59
59
  yield [path2, def];
60
60
  }
61
61
 
@@ -78,8 +78,8 @@ export function* extendingAttributeIterator(type, filter, path) {
78
78
  yield* attributeIterator(type.attributes, filter, path);
79
79
  }
80
80
 
81
- export const filterWritable = (name, attribute) => attribute.writable;
82
- export const filterPublic = (name, attribute) => !attribute.private;
81
+ export const filterWritable = attribute => attribute.writable;
82
+ export const filterPublic = attribute => !attribute.private;
83
83
 
84
84
  export function* writableAttributeIterator(definition) {
85
85
  yield* attributeIterator(definition, filterWritable);
@@ -108,7 +108,7 @@ export function toExternal(value, attribute) {
108
108
  export function mandatoryAttributesPresent(object, attributes) {
109
109
  for (const [path, attribute] of attributeIterator(
110
110
  attributes,
111
- (name, attribute) => attribute.mandatory
111
+ attribute => attribute.mandatory
112
112
  )) {
113
113
  const name = path.join(".");
114
114
  if (getAttribute(object, name) === undefined) {
@@ -12,7 +12,7 @@ export function environmentValues(env, attributes, instanceIdentifier) {
12
12
 
13
13
  for (const [path, attribute] of attributeIterator(
14
14
  attributes,
15
- (name, attribute) => attribute.env
15
+ attribute => attribute.env
16
16
  )) {
17
17
  const name = path.join(".");
18
18
 
@@ -25,5 +25,5 @@ export function writableAttributeIterator(definition: any): Generator<[string[],
25
25
  export function toInternal(value: any, attribute: any): any;
26
26
  export function toExternal(value: any, attribute: any): any;
27
27
  export function mandatoryAttributesPresent(object: any, attributes: any): boolean;
28
- export function filterWritable(name: any, attribute: any): any;
29
- export function filterPublic(name: any, attribute: any): boolean;
28
+ export function filterWritable(attribute: any): any;
29
+ export function filterPublic(attribute: any): boolean;