@nmtjs/type 0.14.2 → 0.14.4
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/temporal/global.d.ts +8 -0
- package/dist/temporal/global.js +9 -0
- package/dist/temporal/polyfill.d.ts +8 -0
- package/dist/temporal/polyfill.js +9 -0
- package/dist/types/temporal.d.ts +8 -27
- package/dist/types/temporal.js +41 -43
- package/package.json +24 -11
- package/dist/temporal.d.ts +0 -1
- package/dist/temporal.js +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'temporal-spec/global';
|
|
2
|
+
export declare const plainDate: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.PlainDate, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.PlainDate, import("temporal-spec").Temporal.PlainDate, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.PlainDate, import("temporal-spec").Temporal.PlainDate>>>;
|
|
3
|
+
export declare const plainDatetime: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.PlainDateTime, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.PlainDateTime, import("temporal-spec").Temporal.PlainDateTime, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.PlainDateTime, import("temporal-spec").Temporal.PlainDateTime>>>;
|
|
4
|
+
export declare const plainTime: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.PlainTime, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.PlainTime, import("temporal-spec").Temporal.PlainTime, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.PlainTime, import("temporal-spec").Temporal.PlainTime>>>;
|
|
5
|
+
export declare const zonedDatetime: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.ZonedDateTime, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.ZonedDateTime, import("temporal-spec").Temporal.ZonedDateTime, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.ZonedDateTime, import("temporal-spec").Temporal.ZonedDateTime>>>;
|
|
6
|
+
export declare const duration: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.Duration, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.Duration, import("temporal-spec").Temporal.Duration, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.Duration, import("temporal-spec").Temporal.Duration>>>;
|
|
7
|
+
export declare const plainYearMonth: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.PlainYearMonth, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.PlainYearMonth, import("temporal-spec").Temporal.PlainYearMonth, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.PlainYearMonth, import("temporal-spec").Temporal.PlainYearMonth>>>;
|
|
8
|
+
export declare const plainMonthDay: () => import("../types/custom.ts").CustomType<import("temporal-spec").Temporal.PlainMonthDay, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<import("temporal-spec").Temporal.PlainMonthDay, import("temporal-spec").Temporal.PlainMonthDay, import("zod/v4/core").$ZodTypeInternals<import("temporal-spec").Temporal.PlainMonthDay, import("temporal-spec").Temporal.PlainMonthDay>>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import 'temporal-spec/global';
|
|
2
|
+
import { DurationType, PlainDateTimeType, PlainDateType, PlainMonthDayType, PlainTimeType, PlainYearMonthType, ZonedDateTimeType, } from "../types/temporal.js";
|
|
3
|
+
export const plainDate = PlainDateType.factory.bind(PlainDateType, Temporal);
|
|
4
|
+
export const plainDatetime = PlainDateTimeType.factory.bind(PlainDateTimeType, Temporal);
|
|
5
|
+
export const plainTime = PlainTimeType.factory.bind(PlainTimeType, Temporal);
|
|
6
|
+
export const zonedDatetime = ZonedDateTimeType.factory.bind(ZonedDateTimeType, Temporal);
|
|
7
|
+
export const duration = DurationType.factory.bind(DurationType, Temporal);
|
|
8
|
+
export const plainYearMonth = PlainYearMonthType.factory.bind(PlainYearMonthType, Temporal);
|
|
9
|
+
export const plainMonthDay = PlainMonthDayType.factory.bind(PlainMonthDayType, Temporal);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
|
+
export declare const plainDate: () => import("../types/custom.ts").CustomType<Temporal.PlainDate, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.PlainDate, Temporal.PlainDate, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainDate, Temporal.PlainDate>>>;
|
|
3
|
+
export declare const plainDatetime: () => import("../types/custom.ts").CustomType<Temporal.PlainDateTime, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.PlainDateTime, Temporal.PlainDateTime, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainDateTime, Temporal.PlainDateTime>>>;
|
|
4
|
+
export declare const plainTime: () => import("../types/custom.ts").CustomType<Temporal.PlainTime, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.PlainTime, Temporal.PlainTime, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainTime, Temporal.PlainTime>>>;
|
|
5
|
+
export declare const zonedDatetime: () => import("../types/custom.ts").CustomType<Temporal.ZonedDateTime, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.ZonedDateTime, Temporal.ZonedDateTime, import("zod/v4/core").$ZodTypeInternals<Temporal.ZonedDateTime, Temporal.ZonedDateTime>>>;
|
|
6
|
+
export declare const duration: () => import("../types/custom.ts").CustomType<Temporal.Duration, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.Duration, Temporal.Duration, import("zod/v4/core").$ZodTypeInternals<Temporal.Duration, Temporal.Duration>>>;
|
|
7
|
+
export declare const plainYearMonth: () => import("../types/custom.ts").CustomType<Temporal.PlainYearMonth, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.PlainYearMonth, Temporal.PlainYearMonth, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainYearMonth, Temporal.PlainYearMonth>>>;
|
|
8
|
+
export declare const plainMonthDay: () => import("../types/custom.ts").CustomType<Temporal.PlainMonthDay, import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<Temporal.PlainMonthDay, Temporal.PlainMonthDay, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainMonthDay, Temporal.PlainMonthDay>>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Temporal } from 'temporal-polyfill';
|
|
2
|
+
import { DurationType, PlainDateTimeType, PlainDateType, PlainMonthDayType, PlainTimeType, PlainYearMonthType, ZonedDateTimeType, } from "../types/temporal.js";
|
|
3
|
+
export const plainDate = PlainDateType.factory.bind(PlainDateType, Temporal);
|
|
4
|
+
export const plainDatetime = PlainDateTimeType.factory.bind(PlainDateTimeType, Temporal);
|
|
5
|
+
export const plainTime = PlainTimeType.factory.bind(PlainTimeType, Temporal);
|
|
6
|
+
export const zonedDatetime = ZonedDateTimeType.factory.bind(ZonedDateTimeType, Temporal);
|
|
7
|
+
export const duration = DurationType.factory.bind(DurationType, Temporal);
|
|
8
|
+
export const plainYearMonth = PlainYearMonthType.factory.bind(PlainYearMonthType, Temporal);
|
|
9
|
+
export const plainMonthDay = PlainMonthDayType.factory.bind(PlainMonthDayType, Temporal);
|
package/dist/types/temporal.d.ts
CHANGED
|
@@ -1,45 +1,26 @@
|
|
|
1
|
+
import type { Temporal } from 'temporal-spec';
|
|
1
2
|
import type { ZodMiniString } from 'zod/mini';
|
|
2
|
-
import { Temporal } from 'temporal-polyfill';
|
|
3
3
|
import { CustomType, TransformType } from './custom.ts';
|
|
4
|
-
type Types = Exclude<keyof typeof Temporal, 'Now' | 'Instant' | 'Calendar' | 'TimeZone'>;
|
|
5
|
-
type TemporalTransformer<T extends Types> = {
|
|
6
|
-
decode: (value: string) => ReturnType<(typeof Temporal)[T]['from']>;
|
|
7
|
-
encode: (value: ReturnType<(typeof Temporal)[T]['from']>) => string;
|
|
8
|
-
};
|
|
9
4
|
type EncodeType = ZodMiniString<string>;
|
|
10
5
|
export declare class PlainDateType extends TransformType<Temporal.PlainDate, EncodeType> {
|
|
11
|
-
static
|
|
12
|
-
static factory(): CustomType<Temporal.PlainDate, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainDate, Temporal.PlainDate, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainDate, Temporal.PlainDate>>>;
|
|
6
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.PlainDate, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainDate, Temporal.PlainDate, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainDate, Temporal.PlainDate>>>;
|
|
13
7
|
}
|
|
14
8
|
export declare class PlainDateTimeType extends TransformType<Temporal.PlainDateTime, EncodeType> {
|
|
15
|
-
static
|
|
16
|
-
static factory(): CustomType<Temporal.PlainDateTime, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainDateTime, Temporal.PlainDateTime, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainDateTime, Temporal.PlainDateTime>>>;
|
|
9
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.PlainDateTime, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainDateTime, Temporal.PlainDateTime, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainDateTime, Temporal.PlainDateTime>>>;
|
|
17
10
|
}
|
|
18
11
|
export declare class ZonedDateTimeType extends TransformType<Temporal.ZonedDateTime, EncodeType> {
|
|
19
|
-
static
|
|
20
|
-
static factory(): CustomType<Temporal.ZonedDateTime, EncodeType, import("zod/mini").ZodMiniType<Temporal.ZonedDateTime, Temporal.ZonedDateTime, import("zod/v4/core").$ZodTypeInternals<Temporal.ZonedDateTime, Temporal.ZonedDateTime>>>;
|
|
12
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.ZonedDateTime, EncodeType, import("zod/mini").ZodMiniType<Temporal.ZonedDateTime, Temporal.ZonedDateTime, import("zod/v4/core").$ZodTypeInternals<Temporal.ZonedDateTime, Temporal.ZonedDateTime>>>;
|
|
21
13
|
}
|
|
22
14
|
export declare class PlainTimeType extends TransformType<Temporal.PlainTime, EncodeType> {
|
|
23
|
-
static
|
|
24
|
-
static factory(): CustomType<Temporal.PlainTime, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainTime, Temporal.PlainTime, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainTime, Temporal.PlainTime>>>;
|
|
15
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.PlainTime, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainTime, Temporal.PlainTime, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainTime, Temporal.PlainTime>>>;
|
|
25
16
|
}
|
|
26
17
|
export declare class DurationType extends TransformType<Temporal.Duration, EncodeType> {
|
|
27
|
-
static
|
|
28
|
-
static factory(): CustomType<Temporal.Duration, EncodeType, import("zod/mini").ZodMiniType<Temporal.Duration, Temporal.Duration, import("zod/v4/core").$ZodTypeInternals<Temporal.Duration, Temporal.Duration>>>;
|
|
18
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.Duration, EncodeType, import("zod/mini").ZodMiniType<Temporal.Duration, Temporal.Duration, import("zod/v4/core").$ZodTypeInternals<Temporal.Duration, Temporal.Duration>>>;
|
|
29
19
|
}
|
|
30
20
|
export declare class PlainYearMonthType extends TransformType<Temporal.PlainYearMonth, EncodeType> {
|
|
31
|
-
static
|
|
32
|
-
static factory(): CustomType<Temporal.PlainYearMonth, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainYearMonth, Temporal.PlainYearMonth, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainYearMonth, Temporal.PlainYearMonth>>>;
|
|
21
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.PlainYearMonth, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainYearMonth, Temporal.PlainYearMonth, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainYearMonth, Temporal.PlainYearMonth>>>;
|
|
33
22
|
}
|
|
34
23
|
export declare class PlainMonthDayType extends TransformType<Temporal.PlainMonthDay, EncodeType> {
|
|
35
|
-
static
|
|
36
|
-
static factory(): CustomType<Temporal.PlainMonthDay, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainMonthDay, Temporal.PlainMonthDay, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainMonthDay, Temporal.PlainMonthDay>>>;
|
|
24
|
+
static factory(implementation: typeof Temporal): CustomType<Temporal.PlainMonthDay, EncodeType, import("zod/mini").ZodMiniType<Temporal.PlainMonthDay, Temporal.PlainMonthDay, import("zod/v4/core").$ZodTypeInternals<Temporal.PlainMonthDay, Temporal.PlainMonthDay>>>;
|
|
37
25
|
}
|
|
38
|
-
export declare const plainDate: typeof PlainDateType.factory;
|
|
39
|
-
export declare const plainDatetime: typeof PlainDateTimeType.factory;
|
|
40
|
-
export declare const plainTime: typeof PlainTimeType.factory;
|
|
41
|
-
export declare const zonedDatetime: typeof ZonedDateTimeType.factory;
|
|
42
|
-
export declare const duration: typeof DurationType.factory;
|
|
43
|
-
export declare const plainYearMonth: typeof PlainYearMonthType.factory;
|
|
44
|
-
export declare const plainMonthDay: typeof PlainMonthDayType.factory;
|
|
45
26
|
export {};
|
package/dist/types/temporal.js
CHANGED
|
@@ -1,95 +1,93 @@
|
|
|
1
|
-
import { Temporal } from 'temporal-polyfill';
|
|
2
1
|
import { iso, regex, string } from 'zod/mini';
|
|
3
2
|
import { CustomType, TransformType } from "./custom.js";
|
|
4
|
-
const createTemporalTransformer = (type, decode = (value) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
});
|
|
3
|
+
const createTemporalTransformer = (implementation, type, decode = (value) => implementation[type].from(value), encode = (value) => value.toString({
|
|
4
|
+
calendarName: 'never',
|
|
5
|
+
smallestUnit: 'microsecond',
|
|
6
|
+
timeZoneName: 'never',
|
|
7
|
+
})) => {
|
|
10
8
|
return { decode, encode };
|
|
11
9
|
};
|
|
12
10
|
export class PlainDateType extends TransformType {
|
|
13
|
-
static
|
|
14
|
-
|
|
11
|
+
static factory(implementation) {
|
|
12
|
+
const transformer = createTemporalTransformer(implementation, 'PlainDate');
|
|
15
13
|
return CustomType.factory({
|
|
16
|
-
decode:
|
|
17
|
-
encode:
|
|
14
|
+
decode: transformer.decode,
|
|
15
|
+
encode: transformer.encode,
|
|
18
16
|
type: iso.date(),
|
|
19
17
|
error: 'Invalid date format',
|
|
20
18
|
});
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
export class PlainDateTimeType extends TransformType {
|
|
24
|
-
static
|
|
25
|
-
|
|
22
|
+
static factory(implementation) {
|
|
23
|
+
const transformer = createTemporalTransformer(implementation, 'PlainDateTime');
|
|
26
24
|
return CustomType.factory({
|
|
27
|
-
decode:
|
|
28
|
-
encode:
|
|
25
|
+
decode: transformer.decode,
|
|
26
|
+
encode: transformer.encode,
|
|
29
27
|
type: iso.datetime({ local: true }),
|
|
30
28
|
error: 'Invalid datetime format',
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
export class ZonedDateTimeType extends TransformType {
|
|
35
|
-
static
|
|
36
|
-
|
|
33
|
+
static factory(implementation) {
|
|
34
|
+
const transformer = createTemporalTransformer(implementation, 'ZonedDateTime', (value) => implementation.Instant.from(value).toZonedDateTimeISO('UTC'), (value) => value
|
|
35
|
+
.withTimeZone('UTC')
|
|
36
|
+
.toString({
|
|
37
|
+
smallestUnit: 'milliseconds',
|
|
38
|
+
timeZoneName: 'never',
|
|
39
|
+
calendarName: 'never',
|
|
40
|
+
offset: 'never',
|
|
41
|
+
}) + 'Z');
|
|
37
42
|
return CustomType.factory({
|
|
38
|
-
decode:
|
|
39
|
-
encode:
|
|
40
|
-
type: iso.datetime(
|
|
43
|
+
decode: transformer.decode,
|
|
44
|
+
encode: transformer.encode,
|
|
45
|
+
type: iso.datetime(),
|
|
41
46
|
error: 'Invalid datetime format',
|
|
42
47
|
});
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
export class PlainTimeType extends TransformType {
|
|
46
|
-
static
|
|
47
|
-
|
|
51
|
+
static factory(implementation) {
|
|
52
|
+
const transformer = createTemporalTransformer(implementation, 'PlainTime');
|
|
48
53
|
return CustomType.factory({
|
|
49
|
-
decode:
|
|
50
|
-
encode:
|
|
54
|
+
decode: transformer.decode,
|
|
55
|
+
encode: transformer.encode,
|
|
51
56
|
type: iso.time(),
|
|
52
57
|
error: 'Invalid time format',
|
|
53
58
|
});
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
export class DurationType extends TransformType {
|
|
57
|
-
static
|
|
58
|
-
|
|
62
|
+
static factory(implementation) {
|
|
63
|
+
const transformer = createTemporalTransformer(implementation, 'Duration');
|
|
59
64
|
return CustomType.factory({
|
|
60
|
-
decode:
|
|
61
|
-
encode:
|
|
65
|
+
decode: transformer.decode,
|
|
66
|
+
encode: transformer.encode,
|
|
62
67
|
type: iso.duration(),
|
|
63
68
|
error: 'Invalid duration format',
|
|
64
69
|
});
|
|
65
70
|
}
|
|
66
71
|
}
|
|
67
72
|
export class PlainYearMonthType extends TransformType {
|
|
68
|
-
static
|
|
69
|
-
|
|
73
|
+
static factory(implementation) {
|
|
74
|
+
const transformer = createTemporalTransformer(implementation, 'PlainYearMonth');
|
|
70
75
|
return CustomType.factory({
|
|
71
|
-
decode:
|
|
72
|
-
encode:
|
|
76
|
+
decode: transformer.decode,
|
|
77
|
+
encode: transformer.encode,
|
|
73
78
|
type: string().check(regex(/^\d{4}-\d{2}$/)),
|
|
74
79
|
error: 'Invalid year-month format',
|
|
75
80
|
});
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
export class PlainMonthDayType extends TransformType {
|
|
79
|
-
static
|
|
80
|
-
|
|
84
|
+
static factory(implementation) {
|
|
85
|
+
const transformer = createTemporalTransformer(implementation, 'PlainMonthDay');
|
|
81
86
|
return CustomType.factory({
|
|
82
|
-
decode:
|
|
83
|
-
encode:
|
|
87
|
+
decode: transformer.decode,
|
|
88
|
+
encode: transformer.encode,
|
|
84
89
|
type: string().check(regex(/^\d{2}-\d{2}$/)),
|
|
85
90
|
error: 'Invalid month-day format',
|
|
86
91
|
});
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
|
-
export const plainDate = PlainDateType.factory;
|
|
90
|
-
export const plainDatetime = PlainDateTimeType.factory;
|
|
91
|
-
export const plainTime = PlainTimeType.factory;
|
|
92
|
-
export const zonedDatetime = ZonedDateTimeType.factory;
|
|
93
|
-
export const duration = DurationType.factory;
|
|
94
|
-
export const plainYearMonth = PlainYearMonthType.factory;
|
|
95
|
-
export const plainMonthDay = PlainMonthDayType.factory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmtjs/type",
|
|
3
3
|
"type": "module",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist",
|
|
6
|
+
"LICENSE.md",
|
|
7
|
+
"README.md"
|
|
8
|
+
],
|
|
4
9
|
"exports": {
|
|
5
10
|
".": {
|
|
6
11
|
"types": "./dist/index.d.ts",
|
|
@@ -13,27 +18,35 @@
|
|
|
13
18
|
"module-sync": "./dist/types/*.js"
|
|
14
19
|
},
|
|
15
20
|
"./temporal": {
|
|
16
|
-
"types": "./dist/temporal.d.ts",
|
|
17
|
-
"import": "./dist/temporal.js",
|
|
18
|
-
"module-sync": "./dist/temporal.js"
|
|
21
|
+
"types": "./dist/temporal/global.d.ts",
|
|
22
|
+
"import": "./dist/temporal/global.js",
|
|
23
|
+
"module-sync": "./dist/temporal/global.js"
|
|
24
|
+
},
|
|
25
|
+
"./temporal-polyfill": {
|
|
26
|
+
"types": "./dist/temporal/polyfill.d.ts",
|
|
27
|
+
"import": "./dist/temporal/polyfill.js",
|
|
28
|
+
"module-sync": "./dist/temporal/polyfill.js"
|
|
19
29
|
}
|
|
20
30
|
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"temporal-spec": "^0.3.0"
|
|
33
|
+
},
|
|
21
34
|
"peerDependencies": {
|
|
22
35
|
"temporal-polyfill": "^0.3.0",
|
|
23
36
|
"zod": "^4.0.0",
|
|
24
|
-
"@nmtjs/common": "0.14.
|
|
37
|
+
"@nmtjs/common": "0.14.4"
|
|
25
38
|
},
|
|
26
39
|
"devDependencies": {
|
|
27
40
|
"temporal-polyfill": "^0.3.0",
|
|
28
41
|
"zod": "^4.0.0",
|
|
29
|
-
"@nmtjs/common": "0.14.
|
|
42
|
+
"@nmtjs/common": "0.14.4"
|
|
30
43
|
},
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"version": "0.14.
|
|
44
|
+
"peerDependenciesMeta": {
|
|
45
|
+
"temporal-polyfill": {
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"version": "0.14.4",
|
|
37
50
|
"scripts": {
|
|
38
51
|
"build": "tsc",
|
|
39
52
|
"type-check": "tsc --noEmit"
|
package/dist/temporal.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types/temporal.ts';
|
package/dist/temporal.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./types/temporal.js";
|