pacc 6.0.0 → 6.1.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/common-attributes.mjs +5 -0
- package/src/types.mjs +5 -0
- package/types/common-attributes.d.mts +4 -0
- package/types/types.d.mts +5 -0
package/package.json
CHANGED
|
@@ -350,6 +350,11 @@ export const priority_attribute = {
|
|
|
350
350
|
*/
|
|
351
351
|
export const duration_attribute = { ...default_attribute, type: types.duration }
|
|
352
352
|
|
|
353
|
+
/**
|
|
354
|
+
* @type {AttributeDefinition}
|
|
355
|
+
*/
|
|
356
|
+
export const duration_ms_attribute = { ...default_attribute, type: types.duration_ms }
|
|
357
|
+
|
|
353
358
|
/**
|
|
354
359
|
* @type {AttributeDefinition}
|
|
355
360
|
*/
|
package/src/types.mjs
CHANGED
|
@@ -40,6 +40,11 @@ export const types = {
|
|
|
40
40
|
duration: {
|
|
41
41
|
name: "duration",
|
|
42
42
|
primitive: true,
|
|
43
|
+
prepareValue: value => parseTime(value)
|
|
44
|
+
},
|
|
45
|
+
duration_ms: {
|
|
46
|
+
name: "duration_ms",
|
|
47
|
+
primitive: true,
|
|
43
48
|
prepareValue: value => parseTime(value) * 1000
|
|
44
49
|
},
|
|
45
50
|
url: {
|
|
@@ -170,6 +170,10 @@ export const priority_attribute: AttributeDefinition;
|
|
|
170
170
|
* @type {AttributeDefinition}
|
|
171
171
|
*/
|
|
172
172
|
export const duration_attribute: AttributeDefinition;
|
|
173
|
+
/**
|
|
174
|
+
* @type {AttributeDefinition}
|
|
175
|
+
*/
|
|
176
|
+
export const duration_ms_attribute: AttributeDefinition;
|
|
173
177
|
/**
|
|
174
178
|
* @type {AttributeDefinition}
|
|
175
179
|
*/
|
package/types/types.d.mts
CHANGED
|
@@ -32,6 +32,11 @@ export const types: {
|
|
|
32
32
|
primitive: boolean;
|
|
33
33
|
prepareValue: (value: any) => number;
|
|
34
34
|
};
|
|
35
|
+
duration_ms: {
|
|
36
|
+
name: string;
|
|
37
|
+
primitive: boolean;
|
|
38
|
+
prepareValue: (value: any) => number;
|
|
39
|
+
};
|
|
35
40
|
url: {
|
|
36
41
|
name: string;
|
|
37
42
|
prepareValue: (value: any) => any;
|