pacc 6.4.0 → 6.6.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/package.json +1 -1
- package/src/bytes.mjs +3 -1
- package/src/common-attributes.mjs +21 -5
- package/types/common-attributes.d.mts +4 -0
package/package.json
CHANGED
package/src/bytes.mjs
CHANGED
|
@@ -14,9 +14,11 @@ const byteSizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
|
14
14
|
|
|
15
15
|
const units = {
|
|
16
16
|
b: 1,
|
|
17
|
+
bytes: 1,
|
|
17
18
|
kb: 1024,
|
|
18
19
|
mb: 1024 * 1024,
|
|
19
|
-
gb: 1024 * 1024 * 1024
|
|
20
|
+
gb: 1024 * 1024 * 1024,
|
|
21
|
+
tb: 1024 * 1024 * 1024 * 1024
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
/**
|
|
@@ -96,9 +96,16 @@ export const email_attribute = {
|
|
|
96
96
|
/**
|
|
97
97
|
* @type {AttributeDefinition}
|
|
98
98
|
*/
|
|
99
|
-
export const
|
|
99
|
+
export const version_attribute = {
|
|
100
100
|
...default_attribute,
|
|
101
|
-
description: "version"
|
|
101
|
+
description: "version"
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @type {AttributeDefinition}
|
|
106
|
+
*/
|
|
107
|
+
export const version_attribute_writable = {
|
|
108
|
+
...version_attribute,
|
|
102
109
|
writable: true
|
|
103
110
|
};
|
|
104
111
|
|
|
@@ -273,7 +280,10 @@ export { integer_attribute_writable as count_attribute_writable };
|
|
|
273
280
|
*/
|
|
274
281
|
export { integer_attribute as size_attribute };
|
|
275
282
|
|
|
276
|
-
export const bytes_size_attribute = {
|
|
283
|
+
export const bytes_size_attribute = {
|
|
284
|
+
...default_attribute,
|
|
285
|
+
type: types.byte_size
|
|
286
|
+
};
|
|
277
287
|
|
|
278
288
|
/**
|
|
279
289
|
* @type {AttributeDefinition}
|
|
@@ -352,12 +362,18 @@ export const priority_attribute = {
|
|
|
352
362
|
/**
|
|
353
363
|
* @type {AttributeDefinition}
|
|
354
364
|
*/
|
|
355
|
-
export const duration_attribute = {
|
|
365
|
+
export const duration_attribute = {
|
|
366
|
+
...default_attribute,
|
|
367
|
+
type: types.duration
|
|
368
|
+
};
|
|
356
369
|
|
|
357
370
|
/**
|
|
358
371
|
* @type {AttributeDefinition}
|
|
359
372
|
*/
|
|
360
|
-
export const duration_ms_attribute = {
|
|
373
|
+
export const duration_ms_attribute = {
|
|
374
|
+
...default_attribute,
|
|
375
|
+
type: types.duration_ms
|
|
376
|
+
};
|
|
361
377
|
|
|
362
378
|
/**
|
|
363
379
|
* @type {AttributeDefinition}
|
|
@@ -67,6 +67,10 @@ export const name_attribute_writable: AttributeDefinition;
|
|
|
67
67
|
* @type {AttributeDefinition}
|
|
68
68
|
*/
|
|
69
69
|
export const email_attribute: AttributeDefinition;
|
|
70
|
+
/**
|
|
71
|
+
* @type {AttributeDefinition}
|
|
72
|
+
*/
|
|
73
|
+
export const version_attribute: AttributeDefinition;
|
|
70
74
|
/**
|
|
71
75
|
* @type {AttributeDefinition}
|
|
72
76
|
*/
|