pacc 4.1.0 → 4.1.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 CHANGED
@@ -146,7 +146,6 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
146
146
  * `collection` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
147
147
  * `private` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** should the value be shown
148
148
  * `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
149
  * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** human readable
151
150
  * `default` **any?** the default value
152
151
  * `set` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** set the value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
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,11 @@ 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
+
31
36
  /**
32
37
  * @type {AttributeDefinition}
33
38
  */
@@ -105,15 +110,15 @@ export { boolean_attribute_writeable_true as active_attribute };
105
110
  /**
106
111
  * @type {AttributeDefinition}
107
112
  */
108
- export const uuid_attribute = {
109
- ...default_attribute,
110
- isKey: true
111
- };
113
+ export { boolean_attribute_writeable_false as empty_attribute };
112
114
 
113
115
  /**
114
116
  * @type {AttributeDefinition}
115
117
  */
116
- export const empty_attribute = { ...default_attribute, type: "boolean" };
118
+ export const uuid_attribute = {
119
+ ...default_attribute,
120
+ isKey: true
121
+ };
117
122
 
118
123
  /**
119
124
  * @type {AttributeDefinition}
@@ -180,6 +185,11 @@ export const public_key_attribute = {
180
185
  writable: true
181
186
  };
182
187
 
188
+ /**
189
+ * @type {AttributeDefinition}
190
+ */
191
+ export const number_attribute = { ...default_attribute, type: "number" };
192
+
183
193
  /**
184
194
  * @type {AttributeDefinition}
185
195
  */
@@ -52,10 +52,6 @@ export const boolean_attribute_false: AttributeDefinition;
52
52
  * @type {AttributeDefinition}
53
53
  */
54
54
  export const uuid_attribute: AttributeDefinition;
55
- /**
56
- * @type {AttributeDefinition}
57
- */
58
- export const empty_attribute: AttributeDefinition;
59
55
  /**
60
56
  * @type {AttributeDefinition}
61
57
  */
@@ -84,6 +80,10 @@ export const private_key_attribute: AttributeDefinition;
84
80
  * @type {AttributeDefinition}
85
81
  */
86
82
  export const public_key_attribute: AttributeDefinition;
83
+ /**
84
+ * @type {AttributeDefinition}
85
+ */
86
+ export const number_attribute: AttributeDefinition;
87
87
  /**
88
88
  * @type {AttributeDefinition}
89
89
  */
@@ -164,4 +164,4 @@ export type AttributeDefinition = {
164
164
  */
165
165
  env?: string[] | string;
166
166
  };
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 };
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, boolean_attribute_writeable_false as empty_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute };