pacc 7.2.0 → 7.2.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 +5 -0
- package/package.json +1 -1
- package/src/types.mjs +3 -2
- package/types/types.d.mts +1 -0
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
64
64
|
* [secret\_attribute](#secret_attribute-2)
|
|
65
65
|
* [secret\_attribute](#secret_attribute-3)
|
|
66
66
|
* [secret\_attribute](#secret_attribute-4)
|
|
67
|
+
* [secret\_attribute\_writable](#secret_attribute_writable)
|
|
67
68
|
* [private\_key\_attribute](#private_key_attribute)
|
|
68
69
|
* [public\_key\_attribute](#public_key_attribute)
|
|
69
70
|
* [number\_attribute](#number_attribute)
|
|
@@ -344,6 +345,10 @@ Type: [AttributeDefinition](#attributedefinition)
|
|
|
344
345
|
|
|
345
346
|
Type: [AttributeDefinition](#attributedefinition)
|
|
346
347
|
|
|
348
|
+
## secret\_attribute\_writable
|
|
349
|
+
|
|
350
|
+
Type: [AttributeDefinition](#attributedefinition)
|
|
351
|
+
|
|
347
352
|
## private\_key\_attribute
|
|
348
353
|
|
|
349
354
|
Type: [AttributeDefinition](#attributedefinition)
|
package/package.json
CHANGED
package/src/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { attributeIterator } from "./attributes.mjs";
|
|
2
|
-
import { parseDuration } from "./time.mjs";
|
|
2
|
+
import { parseDuration, formatDuration } from "./time.mjs";
|
|
3
3
|
import { parseBytes } from "./bytes.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -54,7 +54,8 @@ export const types = {
|
|
|
54
54
|
duration: {
|
|
55
55
|
name: "duration",
|
|
56
56
|
primitive: true,
|
|
57
|
-
toInternal: value => parseDuration(value)
|
|
57
|
+
toInternal: value => parseDuration(value),
|
|
58
|
+
toExternal: value => value === undefined ? undefined : formatDuration(value)
|
|
58
59
|
},
|
|
59
60
|
duration_ms: {
|
|
60
61
|
name: "duration_ms",
|