pacc 3.11.0 → 3.11.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 +20 -0
- package/package.json +1 -1
- package/src/multiple.mjs +2 -2
- package/types/multiple.d.mts +2 -9
package/README.md
CHANGED
|
@@ -48,6 +48,8 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
48
48
|
* [uuid\_attribute](#uuid_attribute)
|
|
49
49
|
* [empty\_attribute](#empty_attribute)
|
|
50
50
|
* [secret\_attribute](#secret_attribute)
|
|
51
|
+
* [username\_attribute](#username_attribute)
|
|
52
|
+
* [password\_attribute](#password_attribute)
|
|
51
53
|
* [token\_attribute](#token_attribute)
|
|
52
54
|
* [certificate\_attribute](#certificate_attribute)
|
|
53
55
|
* [private\_key\_attribute](#private_key_attribute)
|
|
@@ -55,6 +57,8 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
55
57
|
* [count\_attribute](#count_attribute)
|
|
56
58
|
* [size\_attribute](#size_attribute)
|
|
57
59
|
* [url\_attribute](#url_attribute)
|
|
60
|
+
* [hostname\_attribute](#hostname_attribute)
|
|
61
|
+
* [port\_attribute](#port_attribute)
|
|
58
62
|
* [id\_attribute](#id_attribute)
|
|
59
63
|
* [body\_attribute](#body_attribute)
|
|
60
64
|
* [title\_attribute](#title_attribute)
|
|
@@ -212,6 +216,14 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
212
216
|
|
|
213
217
|
Type: [AttributeDefinition](#attributedefinition)
|
|
214
218
|
|
|
219
|
+
## username\_attribute
|
|
220
|
+
|
|
221
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
222
|
+
|
|
223
|
+
## password\_attribute
|
|
224
|
+
|
|
225
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
226
|
+
|
|
215
227
|
## token\_attribute
|
|
216
228
|
|
|
217
229
|
Type: [AttributeDefinition](#attributedefinition)
|
|
@@ -240,6 +252,14 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
240
252
|
|
|
241
253
|
Type: [AttributeDefinition](#attributedefinition)
|
|
242
254
|
|
|
255
|
+
## hostname\_attribute
|
|
256
|
+
|
|
257
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
258
|
+
|
|
259
|
+
## port\_attribute
|
|
260
|
+
|
|
261
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
262
|
+
|
|
243
263
|
## id\_attribute
|
|
244
264
|
|
|
245
265
|
Unique id within the provider.
|
package/package.json
CHANGED
package/src/multiple.mjs
CHANGED
|
@@ -13,7 +13,7 @@ const types = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Create attributes from its definition.
|
|
15
15
|
* @param {Object} newDefinitions
|
|
16
|
-
* @param {Object
|
|
16
|
+
* @param {Object|undefined} presentDefinitions optional merg in attributes
|
|
17
17
|
* @return {Object} attributes
|
|
18
18
|
*/
|
|
19
19
|
export function prepareAttributesDefinitions(newDefinitions, presentDefinitions) {
|
|
@@ -35,7 +35,7 @@ export function prepareAttributesDefinitions(newDefinitions, presentDefinitions)
|
|
|
35
35
|
* @param {Object?} atts attribute definitions to be used
|
|
36
36
|
* @return {Object} merged definitions (dest)
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
function mergeAttributeDefinitions(dest, atts) {
|
|
39
39
|
if (atts) {
|
|
40
40
|
for (const [name, ca] of Object.entries(atts)) {
|
|
41
41
|
if (ca.attributes !== undefined) {
|
package/types/multiple.d.mts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create attributes from its definition.
|
|
3
3
|
* @param {Object} newDefinitions
|
|
4
|
-
* @param {Object
|
|
4
|
+
* @param {Object|undefined} presentDefinitions optional merg in attributes
|
|
5
5
|
* @return {Object} attributes
|
|
6
6
|
*/
|
|
7
|
-
export function prepareAttributesDefinitions(newDefinitions: any, presentDefinitions: any): any;
|
|
8
|
-
/**
|
|
9
|
-
* Merge attribute definitions.
|
|
10
|
-
* @param {Object} dest attribute definitions to be used also the merge target
|
|
11
|
-
* @param {Object?} atts attribute definitions to be used
|
|
12
|
-
* @return {Object} merged definitions (dest)
|
|
13
|
-
*/
|
|
14
|
-
export function mergeAttributeDefinitions(dest: any, atts: any | null): any;
|
|
7
|
+
export function prepareAttributesDefinitions(newDefinitions: any, presentDefinitions: any | undefined): any;
|
|
15
8
|
/**
|
|
16
9
|
* Copies attribute values from a source object into a destination object.
|
|
17
10
|
* @param {Object} object target object to be modified
|