date-vir 7.3.2 → 7.4.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/dist/duration-shape.d.ts +11 -0
- package/dist/duration-shape.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DurationUnit } from '@date-vir/duration';
|
|
2
|
+
/**
|
|
3
|
+
* A shape definition for `AnyDuration`.
|
|
4
|
+
*
|
|
5
|
+
* @category Duration
|
|
6
|
+
*/
|
|
7
|
+
export declare const anyDurationShape: import("object-shape-tester").ShapeIndexedKeys<[{
|
|
8
|
+
keys: import("object-shape-tester").ShapeEnum<readonly [typeof DurationUnit]>;
|
|
9
|
+
values: number;
|
|
10
|
+
required: false;
|
|
11
|
+
}]>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DurationUnit } from '@date-vir/duration';
|
|
2
|
+
import { enumShape, indexedKeys } from 'object-shape-tester';
|
|
3
|
+
/**
|
|
4
|
+
* A shape definition for `AnyDuration`.
|
|
5
|
+
*
|
|
6
|
+
* @category Duration
|
|
7
|
+
*/
|
|
8
|
+
export const anyDurationShape = indexedKeys({
|
|
9
|
+
keys: enumShape(DurationUnit),
|
|
10
|
+
values: -1,
|
|
11
|
+
required: false,
|
|
12
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './date-operations/calculate-relative-date.js';
|
|
|
2
2
|
export * from './date-operations/combine-dates.js';
|
|
3
3
|
export * from './date-operations/date-position.js';
|
|
4
4
|
export * from './date-operations/diff-dates.js';
|
|
5
|
+
export * from './duration-shape.js';
|
|
5
6
|
export * from './extra-utils/end.js';
|
|
6
7
|
export * from './extra-utils/has-date-props.js';
|
|
7
8
|
export * from './extra-utils/js-date-conversion.js';
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './date-operations/calculate-relative-date.js';
|
|
|
2
2
|
export * from './date-operations/combine-dates.js';
|
|
3
3
|
export * from './date-operations/date-position.js';
|
|
4
4
|
export * from './date-operations/diff-dates.js';
|
|
5
|
+
export * from './duration-shape.js';
|
|
5
6
|
export * from './extra-utils/end.js';
|
|
6
7
|
export * from './extra-utils/has-date-props.js';
|
|
7
8
|
export * from './extra-utils/js-date-conversion.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "date-vir",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "Easy and explicit dates and times.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"date",
|
|
@@ -34,25 +34,25 @@
|
|
|
34
34
|
"test:docs": "virmator docs check"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@augment-vir/assert": "^31.
|
|
38
|
-
"@augment-vir/common": "^31.
|
|
39
|
-
"@date-vir/duration": "^7.
|
|
37
|
+
"@augment-vir/assert": "^31.28.0",
|
|
38
|
+
"@augment-vir/common": "^31.28.0",
|
|
39
|
+
"@date-vir/duration": "^7.4.0",
|
|
40
40
|
"@types/luxon": "^3.6.2",
|
|
41
|
-
"luxon": "^3.
|
|
42
|
-
"object-shape-tester": "^5.
|
|
41
|
+
"luxon": "^3.7.1",
|
|
42
|
+
"object-shape-tester": "^5.3.0",
|
|
43
43
|
"type-fest": "^4.41.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@augment-vir/test": "^31.
|
|
46
|
+
"@augment-vir/test": "^31.28.0",
|
|
47
47
|
"@web/dev-server-esbuild": "^1.0.4",
|
|
48
48
|
"@web/test-runner": "^0.20.2",
|
|
49
49
|
"@web/test-runner-commands": "^0.9.0",
|
|
50
50
|
"@web/test-runner-playwright": "^0.11.1",
|
|
51
51
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
52
|
-
"element-vir": "^26.5.
|
|
52
|
+
"element-vir": "^26.5.8",
|
|
53
53
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
54
54
|
"markdown-code-example-inserter": "^3.0.3",
|
|
55
|
-
"typedoc": "^0.28.
|
|
55
|
+
"typedoc": "^0.28.7",
|
|
56
56
|
"typescript": "^5.8.3"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|