pacc 4.41.5 → 5.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 +5 -0
- package/package.json +1 -1
- package/src/attributes.mjs +1 -1
- package/src/common-attributes.mjs +5 -0
- package/types/attributes.d.mts +1 -1
- package/types/common-attributes.d.mts +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
70
70
|
* [integer\_attribute](#integer_attribute-1)
|
|
71
71
|
* [integer\_attribute](#integer_attribute-2)
|
|
72
72
|
* [integer\_attribute\_writable](#integer_attribute_writable)
|
|
73
|
+
* [integer\_attribute\_writable](#integer_attribute_writable-1)
|
|
73
74
|
* [object\_attribute](#object_attribute)
|
|
74
75
|
* [url\_attribute](#url_attribute)
|
|
75
76
|
* [url\_attribute\_writable](#url_attribute_writable)
|
|
@@ -338,6 +339,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
338
339
|
|
|
339
340
|
Type: [AttributeDefinition](#attributedefinition)
|
|
340
341
|
|
|
342
|
+
## integer\_attribute\_writable
|
|
343
|
+
|
|
344
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
345
|
+
|
|
341
346
|
## object\_attribute
|
|
342
347
|
|
|
343
348
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -80,7 +80,7 @@ export function prepareValue(value, attribute) {
|
|
|
80
80
|
return value;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export function
|
|
83
|
+
export function mandatoryAttributesPresent(object, attributes) {
|
|
84
84
|
for (const [path, attribute] of attributeIterator(
|
|
85
85
|
attributes,
|
|
86
86
|
(name, attribute) => attribute.mandatory
|
|
@@ -257,6 +257,11 @@ export const integer_attribute_writable = {
|
|
|
257
257
|
*/
|
|
258
258
|
export { integer_attribute as count_attribute };
|
|
259
259
|
|
|
260
|
+
/**
|
|
261
|
+
* @type {AttributeDefinition}
|
|
262
|
+
*/
|
|
263
|
+
export { integer_attribute_writable as count_attribute_writable };
|
|
264
|
+
|
|
260
265
|
/**
|
|
261
266
|
* @type {AttributeDefinition}
|
|
262
267
|
*/
|
package/types/attributes.d.mts
CHANGED
|
@@ -15,5 +15,5 @@ export function prepareAttributesDefinitions(newDefinitions: any, presentDefinit
|
|
|
15
15
|
export function attributeIterator(definition: any, filter: Function, path?: string[]): Iterable<[string[], object]>;
|
|
16
16
|
export function writableAttributeIterator(definition: any): Generator<[string[], any], void, any>;
|
|
17
17
|
export function prepareValue(value: any, attribute: any): any;
|
|
18
|
-
export function
|
|
18
|
+
export function mandatoryAttributesPresent(object: any, attributes: any): boolean;
|
|
19
19
|
export function filterWritable(name: any, attribute: any): any;
|
|
@@ -220,4 +220,4 @@ export type AttributeDefinition = {
|
|
|
220
220
|
*/
|
|
221
221
|
additionalValues?: object;
|
|
222
222
|
};
|
|
223
|
-
export { default_attribute as string_attribute, default_attribute_writable as string_attribute_writable, description_attribute as description_attribute_writable, default_attribute as type_attribute, default_attribute_writable as state_attribute_writable, boolean_attribute_writable_true as active_attribute, secret_attribute as username_attribute, secret_attribute as password_attribute, secret_attribute as token_attribute, secret_attribute as certificate_attribute, integer_attribute as count_attribute, integer_attribute as size_attribute, default_attribute_writable as body_attribute_writable, number_attribute as duration_attribute };
|
|
223
|
+
export { default_attribute as string_attribute, default_attribute_writable as string_attribute_writable, description_attribute as description_attribute_writable, default_attribute as type_attribute, default_attribute_writable as state_attribute_writable, boolean_attribute_writable_true as active_attribute, secret_attribute as username_attribute, secret_attribute as password_attribute, secret_attribute as token_attribute, secret_attribute as certificate_attribute, integer_attribute as count_attribute, integer_attribute_writable as count_attribute_writable, integer_attribute as size_attribute, default_attribute_writable as body_attribute_writable, number_attribute as duration_attribute };
|