@finnair/v-validation-luxon 5.0.1 → 5.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.2.0](https://github.com/finnair/v-validation/compare/v5.1.0...v5.2.0) (2024-02-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * use peerDependencies to other v-validation packages to avoid duplicate dependencies ([#101](https://github.com/finnair/v-validation/issues/101)) ([ae1def0](https://github.com/finnair/v-validation/commit/ae1def01e10d3491949424a76c986caa82e7a4d2))
12
+
13
+
14
+
15
+
16
+
17
+ # [5.1.0](https://github.com/finnair/v-validation/compare/v5.0.1...v5.1.0) (2023-11-16)
18
+
19
+
20
+ ### Features
21
+
22
+ * support both ESM and CommonJS ([#96](https://github.com/finnair/v-validation/issues/96)) ([c32a104](https://github.com/finnair/v-validation/commit/c32a1040cd2e0412005cf9e6ff869569ab194950))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [5.0.1](https://github.com/finnair/v-validation/compare/v5.0.0...v5.0.1) (2023-10-13)
7
29
 
8
30
 
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Vluxon = exports.TimeDurationValidator = exports.DurationValidator = exports.validateLuxonNumber = exports.LuxonValidator = void 0;
4
+ const v_validation_1 = require("@finnair/v-validation");
5
+ const luxon_1 = require("luxon");
6
+ const luxon_js_1 = require("./luxon.js");
7
+ class LuxonValidator extends v_validation_1.Validator {
8
+ params;
9
+ constructor(params) {
10
+ super();
11
+ this.params = params;
12
+ Object.freeze(params);
13
+ Object.freeze(this);
14
+ }
15
+ validatePath(value, path, ctx) {
16
+ const params = this.params;
17
+ if ((0, v_validation_1.isNullOrUndefined)(value)) {
18
+ return ctx.failurePromise(v_validation_1.defaultViolations.notNull(path), value);
19
+ }
20
+ if (params.proto && value instanceof params.proto) {
21
+ return ctx.successPromise(value);
22
+ }
23
+ else if (luxon_1.DateTime.isDateTime(value)) {
24
+ if (value.isValid) {
25
+ return success(value);
26
+ }
27
+ }
28
+ else if ((0, v_validation_1.isString)(value)) {
29
+ const match = params.pattern.exec(value);
30
+ if (match) {
31
+ const dateTime = params.parser(value, match);
32
+ if (dateTime.isValid) {
33
+ return success(dateTime);
34
+ }
35
+ }
36
+ }
37
+ return ctx.failurePromise(v_validation_1.defaultViolations.date(value, path, params.type), value);
38
+ function success(dateTime) {
39
+ return ctx.successPromise(params.proto ? new params.proto(dateTime) : dateTime);
40
+ }
41
+ }
42
+ }
43
+ exports.LuxonValidator = LuxonValidator;
44
+ const datePattern = /^\d{4}-\d{2}-\d{2}$/;
45
+ function localDate(options = { setZone: true }) {
46
+ return new LuxonValidator({
47
+ type: 'Date',
48
+ proto: luxon_js_1.LocalDateLuxon,
49
+ pattern: datePattern,
50
+ parser: (value) => luxon_1.DateTime.fromISO(value, { zone: luxon_1.FixedOffsetZone.utcInstance }),
51
+ });
52
+ }
53
+ const timePattern = /^\d{2}:\d{2}:\d{2}$/;
54
+ function localTime(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
55
+ return new LuxonValidator({
56
+ type: 'Time',
57
+ proto: luxon_js_1.LocalTimeLuxon,
58
+ pattern: timePattern,
59
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
60
+ });
61
+ }
62
+ const localDateTimePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/;
63
+ function localDateTime(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
64
+ return new LuxonValidator({
65
+ type: 'DateTime',
66
+ proto: luxon_js_1.LocalDateTimeLuxon,
67
+ pattern: localDateTimePattern,
68
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
69
+ });
70
+ }
71
+ const dateTimeTzPattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|[+-]\d{2}(?::?\d{2})?)$/;
72
+ function dateTime(options = { setZone: true }) {
73
+ return new LuxonValidator({
74
+ type: 'DateTime',
75
+ proto: luxon_js_1.DateTimeLuxon,
76
+ pattern: dateTimeTzPattern,
77
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
78
+ });
79
+ }
80
+ function dateTimeUtc(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
81
+ return new LuxonValidator({
82
+ type: 'DateTime',
83
+ proto: luxon_js_1.DateTimeUtcLuxon,
84
+ pattern: dateTimeTzPattern,
85
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
86
+ });
87
+ }
88
+ const dateTimeMillisPattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}(?:Z|[+-]\d{2}(?::?\d{2})?)$/;
89
+ function dateTimeMillis(options = { setZone: true }) {
90
+ return new LuxonValidator({
91
+ type: 'DateTimeMillis',
92
+ proto: luxon_js_1.DateTimeMillisLuxon,
93
+ pattern: dateTimeMillisPattern,
94
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
95
+ });
96
+ }
97
+ function dateTimeMillisUtc(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
98
+ return new LuxonValidator({
99
+ type: 'DateTimeMillis',
100
+ proto: luxon_js_1.DateTimeMillisUtcLuxon,
101
+ pattern: dateTimeMillisPattern,
102
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
103
+ });
104
+ }
105
+ function dateTimeFromISO(options = { setZone: true }) {
106
+ return new LuxonValidator({
107
+ type: 'ISODateTime',
108
+ pattern: /./,
109
+ parser: (value) => luxon_1.DateTime.fromISO(value, options),
110
+ });
111
+ }
112
+ function dateTimeFromRFC2822(options = { setZone: true }) {
113
+ return new LuxonValidator({
114
+ type: 'RFC2822DateTime',
115
+ pattern: /./,
116
+ parser: (value) => luxon_1.DateTime.fromRFC2822(value, options),
117
+ });
118
+ }
119
+ function dateTimeFromHTTP(options = { setZone: true }) {
120
+ return new LuxonValidator({
121
+ type: 'HTTPDateTime',
122
+ pattern: /./,
123
+ parser: (value) => luxon_1.DateTime.fromHTTP(value, options),
124
+ });
125
+ }
126
+ function dateTimeFromSQL(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
127
+ return new LuxonValidator({
128
+ type: 'SQLDateTime',
129
+ pattern: /./,
130
+ parser: (value) => luxon_1.DateTime.fromSQL(value, options),
131
+ });
132
+ }
133
+ async function validateLuxonNumber({ value, path, ctx, type, parser }) {
134
+ if ((0, v_validation_1.isNullOrUndefined)(value)) {
135
+ return ctx.failure(v_validation_1.defaultViolations.notNull(path), value);
136
+ }
137
+ else if (luxon_1.DateTime.isDateTime(value)) {
138
+ if (value.isValid) {
139
+ return ctx.success(value);
140
+ }
141
+ }
142
+ else if (typeof value === 'number' && !Number.isNaN(value)) {
143
+ const dateTime = parser(value);
144
+ if (dateTime.isValid) {
145
+ return ctx.success(dateTime);
146
+ }
147
+ }
148
+ return ctx.failure(v_validation_1.defaultViolations.date(value, path, type), value);
149
+ }
150
+ exports.validateLuxonNumber = validateLuxonNumber;
151
+ function dateTimeFromMillis(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
152
+ return v_validation_1.V.fn((value, path, ctx) => validateLuxonNumber({
153
+ value,
154
+ path,
155
+ ctx,
156
+ type: 'MillisDateTime',
157
+ parser: value => luxon_1.DateTime.fromMillis(value, options),
158
+ }));
159
+ }
160
+ function dateTimeFromSeconds(options = { zone: luxon_1.FixedOffsetZone.utcInstance }) {
161
+ return v_validation_1.V.fn((value, path, ctx) => validateLuxonNumber({
162
+ value,
163
+ path,
164
+ ctx,
165
+ type: 'SecondsDateTime',
166
+ parser: value => luxon_1.DateTime.fromSeconds(value, options),
167
+ }));
168
+ }
169
+ const durationPattern = /^P(?!$)(\d+(?:\.\d+)?Y)?(\d+(?:\.\d+)?M)?(\d+(?:\.\d+)?W)?(\d+(?:\.\d+)?D)?(T(?=\d)(\d+(?:\.\d+)?H)?(\d+(?:\.\d+)?M)?(\d+(?:\.\d+)?S)?)?$/;
170
+ class DurationValidator extends v_validation_1.Validator {
171
+ async validatePath(value, path, ctx) {
172
+ if ((0, v_validation_1.isNullOrUndefined)(value)) {
173
+ return ctx.failure(v_validation_1.defaultViolations.notNull(path), value);
174
+ }
175
+ else if (luxon_1.Duration.isDuration(value)) {
176
+ return ctx.success(value);
177
+ }
178
+ else if ((0, v_validation_1.isString)(value) && durationPattern.test(value)) {
179
+ const duration = luxon_1.Duration.fromISO(value);
180
+ if (duration.isValid) {
181
+ return ctx.success(duration);
182
+ }
183
+ }
184
+ return ctx.failure(new v_validation_1.TypeMismatch(path, 'Duration', value), value);
185
+ }
186
+ }
187
+ exports.DurationValidator = DurationValidator;
188
+ class TimeDurationValidator extends v_validation_1.Validator {
189
+ async validatePath(value, path, ctx) {
190
+ if ((0, v_validation_1.isNullOrUndefined)(value)) {
191
+ return ctx.failure(v_validation_1.defaultViolations.notNull(path), value);
192
+ }
193
+ else if (luxon_1.Duration.isDuration(value)) {
194
+ return ctx.success(value);
195
+ }
196
+ else if ((0, v_validation_1.isString)(value)) {
197
+ const duration = luxon_1.Duration.fromISOTime(value);
198
+ if (duration.isValid) {
199
+ return ctx.success(duration);
200
+ }
201
+ }
202
+ return ctx.failure(new v_validation_1.TypeMismatch(path, 'TimeDuration', value), value);
203
+ }
204
+ }
205
+ exports.TimeDurationValidator = TimeDurationValidator;
206
+ exports.Vluxon = {
207
+ // DateTime wrapper validators
208
+ localDate,
209
+ localTime,
210
+ localDateTime,
211
+ dateTime,
212
+ dateTimeUtc,
213
+ dateTimeMillis,
214
+ dateTimeMillisUtc,
215
+ // Plain DateTime validators
216
+ dateTimeFromISO,
217
+ dateTimeFromRFC2822,
218
+ dateTimeFromHTTP,
219
+ dateTimeFromSQL,
220
+ dateTimeFromSeconds,
221
+ dateTimeFromMillis,
222
+ duration: () => new DurationValidator(),
223
+ timeDuration: () => new TimeDurationValidator(),
224
+ };
225
+ Object.freeze(exports.Vluxon);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Vluxon.js"), exports);
18
+ __exportStar(require("./luxon.js"), exports);
@@ -0,0 +1,366 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateTimeMillisUtcLuxon = exports.DateTimeMillisLuxon = exports.DateTimeUtcLuxon = exports.DateTimeLuxon = exports.LocalDateTimeLuxon = exports.LocalTimeLuxon = exports.LocalDateLuxon = exports.LuxonDateTime = void 0;
4
+ const luxon_1 = require("luxon");
5
+ class LuxonDateTime {
6
+ dateTime;
7
+ constructor(input) {
8
+ if (input === null || input === undefined) {
9
+ throw new Error('invalid input (null or undefined), expected DateTime or LuxonDateTime');
10
+ }
11
+ else if (input instanceof LuxonDateTime) {
12
+ this.dateTime = this.normalize(input.dateTime);
13
+ }
14
+ else if (input instanceof luxon_1.DateTime) {
15
+ if (!input.isValid) {
16
+ throw new Error('Invalid DateTime: ' + input.invalidExplanation);
17
+ }
18
+ this.dateTime = this.normalize(input);
19
+ }
20
+ else {
21
+ throw new Error('invalid input, expected DateTime or LuxonDateTime');
22
+ }
23
+ Object.freeze(this);
24
+ }
25
+ apply(fn) {
26
+ return fn(this.dateTime);
27
+ }
28
+ valueOf() {
29
+ return this.dateTime.valueOf();
30
+ }
31
+ as(type) {
32
+ if (this instanceof type) {
33
+ return this;
34
+ }
35
+ return new type(this.dateTime);
36
+ }
37
+ equals(other) {
38
+ if (this.constructor === other.constructor) {
39
+ return this.dateTime.equals(other.dateTime);
40
+ }
41
+ return false;
42
+ }
43
+ toString() {
44
+ return this.toJSON();
45
+ }
46
+ }
47
+ exports.LuxonDateTime = LuxonDateTime;
48
+ class LocalDateLuxon extends LuxonDateTime {
49
+ static format = 'yyyy-MM-dd';
50
+ constructor(input) {
51
+ super(input);
52
+ }
53
+ static nowLocal(options) {
54
+ return new LocalDateLuxon(luxon_1.DateTime.local(options));
55
+ }
56
+ static nowUtc() {
57
+ return new LocalDateLuxon(luxon_1.DateTime.utc());
58
+ }
59
+ static fromISO(value, options) {
60
+ return new LocalDateLuxon(luxon_1.DateTime.fromISO(value, {
61
+ zone: luxon_1.FixedOffsetZone.utcInstance,
62
+ ...options,
63
+ }));
64
+ }
65
+ static fromFormat(value, format, options) {
66
+ return new LocalDateLuxon(luxon_1.DateTime.fromFormat(value, format, {
67
+ zone: luxon_1.FixedOffsetZone.utcInstance,
68
+ ...options,
69
+ }));
70
+ }
71
+ static fromJSDate(date, options) {
72
+ return new LocalDateLuxon(luxon_1.DateTime.fromJSDate(date, {
73
+ zone: luxon_1.FixedOffsetZone.utcInstance,
74
+ ...options,
75
+ }));
76
+ }
77
+ static fromMillis(millis, options) {
78
+ return new LocalDateLuxon(luxon_1.DateTime.fromMillis(millis, {
79
+ zone: luxon_1.FixedOffsetZone.utcInstance,
80
+ ...options,
81
+ }));
82
+ }
83
+ normalize(dateTime) {
84
+ return luxon_1.DateTime.utc(dateTime.year, dateTime.month, dateTime.day);
85
+ }
86
+ wrap(fn) {
87
+ return new LocalDateLuxon(fn(this.dateTime));
88
+ }
89
+ toJSON() {
90
+ return this.dateTime.toFormat(LocalDateLuxon.format);
91
+ }
92
+ }
93
+ exports.LocalDateLuxon = LocalDateLuxon;
94
+ class LocalTimeLuxon extends LuxonDateTime {
95
+ static format = 'HH:mm:ss';
96
+ constructor(input) {
97
+ super(input);
98
+ }
99
+ static nowLocal(options) {
100
+ return new LocalTimeLuxon(luxon_1.DateTime.local(options));
101
+ }
102
+ static nowUtc() {
103
+ return new LocalTimeLuxon(luxon_1.DateTime.utc());
104
+ }
105
+ static fromISO(value, options) {
106
+ return new LocalTimeLuxon(luxon_1.DateTime.fromISO(value, {
107
+ zone: luxon_1.FixedOffsetZone.utcInstance,
108
+ ...options,
109
+ }));
110
+ }
111
+ static fromFormat(value, format, options) {
112
+ return new LocalTimeLuxon(luxon_1.DateTime.fromFormat(value, format, {
113
+ zone: luxon_1.FixedOffsetZone.utcInstance,
114
+ ...options,
115
+ }));
116
+ }
117
+ static fromJSDate(date, options) {
118
+ return new LocalTimeLuxon(luxon_1.DateTime.fromJSDate(date, {
119
+ zone: luxon_1.FixedOffsetZone.utcInstance,
120
+ ...options,
121
+ }));
122
+ }
123
+ static fromMillis(millis, options) {
124
+ return new LocalTimeLuxon(luxon_1.DateTime.fromMillis(millis, {
125
+ zone: luxon_1.FixedOffsetZone.utcInstance,
126
+ ...options,
127
+ }));
128
+ }
129
+ normalize(dateTime) {
130
+ return luxon_1.DateTime.utc(1970, 1, 1, dateTime.hour, dateTime.minute, dateTime.second);
131
+ }
132
+ wrap(fn) {
133
+ return new LocalTimeLuxon(fn(this.dateTime));
134
+ }
135
+ toJSON() {
136
+ return this.dateTime.toFormat(LocalTimeLuxon.format);
137
+ }
138
+ }
139
+ exports.LocalTimeLuxon = LocalTimeLuxon;
140
+ class LocalDateTimeLuxon extends LuxonDateTime {
141
+ static format = "yyyy-MM-dd'T'HH:mm:ss";
142
+ constructor(input) {
143
+ super(input);
144
+ }
145
+ setZone(zone) {
146
+ return new DateTimeLuxon(this.dateTime.setZone(zone, { keepLocalTime: true }));
147
+ }
148
+ static nowLocal(options) {
149
+ return new LocalDateTimeLuxon(luxon_1.DateTime.local(options));
150
+ }
151
+ static nowUtc() {
152
+ return new LocalDateTimeLuxon(luxon_1.DateTime.utc());
153
+ }
154
+ static fromISO(value, options) {
155
+ return new LocalDateTimeLuxon(luxon_1.DateTime.fromISO(value, {
156
+ zone: luxon_1.FixedOffsetZone.utcInstance,
157
+ ...options,
158
+ }));
159
+ }
160
+ static fromFormat(value, format, options) {
161
+ return new LocalDateTimeLuxon(luxon_1.DateTime.fromFormat(value, format, {
162
+ zone: luxon_1.FixedOffsetZone.utcInstance,
163
+ ...options,
164
+ }));
165
+ }
166
+ static fromJSDate(date, options) {
167
+ return new LocalDateTimeLuxon(luxon_1.DateTime.fromJSDate(date, {
168
+ zone: luxon_1.FixedOffsetZone.utcInstance,
169
+ ...options,
170
+ }));
171
+ }
172
+ static fromMillis(millis, options) {
173
+ return new LocalDateTimeLuxon(luxon_1.DateTime.fromMillis(millis, {
174
+ zone: luxon_1.FixedOffsetZone.utcInstance,
175
+ ...options,
176
+ }));
177
+ }
178
+ normalize(dateTime) {
179
+ return luxon_1.DateTime.utc(dateTime.year, dateTime.month, dateTime.day, dateTime.hour, dateTime.minute, dateTime.second);
180
+ }
181
+ wrap(fn) {
182
+ return new LocalDateTimeLuxon(fn(this.dateTime));
183
+ }
184
+ toJSON() {
185
+ return this.dateTime.toFormat(LocalDateTimeLuxon.format);
186
+ }
187
+ }
188
+ exports.LocalDateTimeLuxon = LocalDateTimeLuxon;
189
+ class DateTimeLuxon extends LuxonDateTime {
190
+ static format = "yyyy-MM-dd'T'HH:mm:ss";
191
+ static formatTz = `${this.format}ZZ`;
192
+ constructor(input) {
193
+ super(input);
194
+ }
195
+ setZone(zone) {
196
+ return new DateTimeLuxon(this.dateTime.setZone(zone, { keepLocalTime: false }));
197
+ }
198
+ static now(options) {
199
+ return new DateTimeLuxon(luxon_1.DateTime.local(options));
200
+ }
201
+ static fromISO(value, options) {
202
+ return new DateTimeLuxon(luxon_1.DateTime.fromISO(value, {
203
+ setZone: true,
204
+ ...options,
205
+ }));
206
+ }
207
+ static fromFormat(value, format, options) {
208
+ return new DateTimeLuxon(luxon_1.DateTime.fromFormat(value, format, {
209
+ setZone: true,
210
+ ...options,
211
+ }));
212
+ }
213
+ static fromJSDate(date, options) {
214
+ return new DateTimeLuxon(luxon_1.DateTime.fromJSDate(date, options));
215
+ }
216
+ static fromMillis(millis, options) {
217
+ return new DateTimeLuxon(luxon_1.DateTime.fromMillis(millis, options));
218
+ }
219
+ normalize(dateTime) {
220
+ return dateTime.startOf('second');
221
+ }
222
+ wrap(fn) {
223
+ return new DateTimeLuxon(fn(this.dateTime));
224
+ }
225
+ toJSON() {
226
+ if (this.dateTime.offset === 0) {
227
+ return this.dateTime.toFormat(DateTimeLuxon.format) + 'Z';
228
+ }
229
+ return this.dateTime.toFormat(DateTimeLuxon.formatTz);
230
+ }
231
+ }
232
+ exports.DateTimeLuxon = DateTimeLuxon;
233
+ class DateTimeUtcLuxon extends LuxonDateTime {
234
+ constructor(input) {
235
+ super(input);
236
+ }
237
+ setZone(zone) {
238
+ return new DateTimeLuxon(this.dateTime.setZone(zone, { keepLocalTime: false }));
239
+ }
240
+ static now() {
241
+ return new DateTimeUtcLuxon(luxon_1.DateTime.utc());
242
+ }
243
+ static fromISO(value, options) {
244
+ return new DateTimeUtcLuxon(luxon_1.DateTime.fromISO(value, {
245
+ zone: luxon_1.FixedOffsetZone.utcInstance,
246
+ ...options,
247
+ }));
248
+ }
249
+ static fromFormat(value, format, options) {
250
+ return new DateTimeUtcLuxon(luxon_1.DateTime.fromFormat(value, format, {
251
+ zone: luxon_1.FixedOffsetZone.utcInstance,
252
+ ...options,
253
+ }));
254
+ }
255
+ static fromJSDate(date, options) {
256
+ return new DateTimeUtcLuxon(luxon_1.DateTime.fromJSDate(date, {
257
+ zone: luxon_1.FixedOffsetZone.utcInstance,
258
+ ...options,
259
+ }));
260
+ }
261
+ static fromMillis(millis, options) {
262
+ return new DateTimeUtcLuxon(luxon_1.DateTime.fromMillis(millis, {
263
+ zone: luxon_1.FixedOffsetZone.utcInstance,
264
+ ...options,
265
+ }));
266
+ }
267
+ normalize(dateTime) {
268
+ return dateTime.toUTC().startOf('second');
269
+ }
270
+ wrap(fn) {
271
+ return new DateTimeUtcLuxon(fn(this.dateTime));
272
+ }
273
+ toJSON() {
274
+ return this.dateTime.toFormat(DateTimeLuxon.format) + 'Z';
275
+ }
276
+ }
277
+ exports.DateTimeUtcLuxon = DateTimeUtcLuxon;
278
+ class DateTimeMillisLuxon extends LuxonDateTime {
279
+ static format = "yyyy-MM-dd'T'HH:mm:ss.SSS";
280
+ static formatTz = `${this.format}ZZ`;
281
+ constructor(input) {
282
+ super(input);
283
+ }
284
+ setZone(zone) {
285
+ return new DateTimeMillisLuxon(this.dateTime.setZone(zone, { keepLocalTime: false }));
286
+ }
287
+ static now(options) {
288
+ return new DateTimeMillisLuxon(luxon_1.DateTime.local(options));
289
+ }
290
+ static fromISO(value, options) {
291
+ return new DateTimeMillisLuxon(luxon_1.DateTime.fromISO(value, {
292
+ setZone: true,
293
+ ...options,
294
+ }));
295
+ }
296
+ static fromFormat(value, format, options) {
297
+ return new DateTimeMillisLuxon(luxon_1.DateTime.fromFormat(value, format, {
298
+ setZone: true,
299
+ ...options,
300
+ }));
301
+ }
302
+ static fromJSDate(date, options) {
303
+ return new DateTimeMillisLuxon(luxon_1.DateTime.fromJSDate(date, options));
304
+ }
305
+ static fromMillis(millis, options) {
306
+ return new DateTimeMillisLuxon(luxon_1.DateTime.fromMillis(millis, options));
307
+ }
308
+ normalize(dateTime) {
309
+ return dateTime;
310
+ }
311
+ wrap(fn) {
312
+ return new DateTimeMillisLuxon(fn(this.dateTime));
313
+ }
314
+ toJSON() {
315
+ if (this.dateTime.offset === 0) {
316
+ return this.dateTime.toFormat(DateTimeMillisLuxon.format) + 'Z';
317
+ }
318
+ return this.dateTime.toFormat(DateTimeMillisLuxon.formatTz);
319
+ }
320
+ }
321
+ exports.DateTimeMillisLuxon = DateTimeMillisLuxon;
322
+ class DateTimeMillisUtcLuxon extends LuxonDateTime {
323
+ constructor(input) {
324
+ super(input);
325
+ }
326
+ setZone(zone) {
327
+ return new DateTimeMillisLuxon(this.dateTime.setZone(zone, { keepLocalTime: false }));
328
+ }
329
+ static now() {
330
+ return new DateTimeMillisUtcLuxon(luxon_1.DateTime.utc());
331
+ }
332
+ static fromISO(value, options) {
333
+ return new DateTimeMillisUtcLuxon(luxon_1.DateTime.fromISO(value, {
334
+ zone: luxon_1.FixedOffsetZone.utcInstance,
335
+ ...options,
336
+ }));
337
+ }
338
+ static fromFormat(value, format, options) {
339
+ return new DateTimeMillisUtcLuxon(luxon_1.DateTime.fromFormat(value, format, {
340
+ zone: luxon_1.FixedOffsetZone.utcInstance,
341
+ ...options,
342
+ }));
343
+ }
344
+ static fromJSDate(date, options) {
345
+ return new DateTimeMillisUtcLuxon(luxon_1.DateTime.fromJSDate(date, {
346
+ zone: luxon_1.FixedOffsetZone.utcInstance,
347
+ ...options,
348
+ }));
349
+ }
350
+ static fromMillis(millis, options) {
351
+ return new DateTimeMillisUtcLuxon(luxon_1.DateTime.fromMillis(millis, {
352
+ zone: luxon_1.FixedOffsetZone.utcInstance,
353
+ ...options,
354
+ }));
355
+ }
356
+ normalize(dateTime) {
357
+ return dateTime.toUTC();
358
+ }
359
+ wrap(fn) {
360
+ return new DateTimeMillisUtcLuxon(fn(this.dateTime));
361
+ }
362
+ toJSON() {
363
+ return this.dateTime.toFormat(DateTimeMillisLuxon.format) + 'Z';
364
+ }
365
+ }
366
+ exports.DateTimeMillisUtcLuxon = DateTimeMillisUtcLuxon;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,61 @@
1
+ import { ValidationContext, Validator, ValidationResult } from '@finnair/v-validation';
2
+ import { Path } from '@finnair/path';
3
+ import { DateTime, DateTimeJSOptions, DateTimeOptions } from 'luxon';
4
+ import { LuxonDateTime } from './luxon.js';
5
+ export type LuxonInput = string | DateTime | LuxonDateTime;
6
+ export interface ValidateLuxonParams {
7
+ type: string;
8
+ pattern: RegExp;
9
+ proto?: any;
10
+ parser: (value: string, match: RegExpExecArray) => DateTime;
11
+ }
12
+ export declare class LuxonValidator extends Validator {
13
+ params: ValidateLuxonParams;
14
+ constructor(params: ValidateLuxonParams);
15
+ validatePath(value: any, path: Path, ctx: ValidationContext): PromiseLike<ValidationResult>;
16
+ }
17
+ declare function localDate(options?: DateTimeOptions): LuxonValidator;
18
+ declare function localTime(options?: DateTimeOptions): LuxonValidator;
19
+ declare function localDateTime(options?: DateTimeOptions): LuxonValidator;
20
+ declare function dateTime(options?: DateTimeOptions): LuxonValidator;
21
+ declare function dateTimeUtc(options?: DateTimeOptions): LuxonValidator;
22
+ declare function dateTimeMillis(options?: DateTimeOptions): LuxonValidator;
23
+ declare function dateTimeMillisUtc(options?: DateTimeOptions): LuxonValidator;
24
+ declare function dateTimeFromISO(options?: DateTimeOptions): LuxonValidator;
25
+ declare function dateTimeFromRFC2822(options?: DateTimeOptions): LuxonValidator;
26
+ declare function dateTimeFromHTTP(options?: DateTimeOptions): LuxonValidator;
27
+ declare function dateTimeFromSQL(options?: DateTimeOptions): LuxonValidator;
28
+ export interface ValidateLuxonNumberParams {
29
+ value: any;
30
+ path: Path;
31
+ ctx: ValidationContext;
32
+ type: string;
33
+ parser: (value: number) => DateTime;
34
+ }
35
+ export declare function validateLuxonNumber({ value, path, ctx, type, parser }: ValidateLuxonNumberParams): Promise<ValidationResult>;
36
+ declare function dateTimeFromMillis(options?: DateTimeJSOptions): import("@finnair/v-validation").ValidatorFnWrapper;
37
+ declare function dateTimeFromSeconds(options?: DateTimeJSOptions): import("@finnair/v-validation").ValidatorFnWrapper;
38
+ export declare class DurationValidator extends Validator {
39
+ validatePath(value: any, path: Path, ctx: ValidationContext): Promise<ValidationResult>;
40
+ }
41
+ export declare class TimeDurationValidator extends Validator {
42
+ validatePath(value: any, path: Path, ctx: ValidationContext): Promise<ValidationResult>;
43
+ }
44
+ export declare const Vluxon: {
45
+ localDate: typeof localDate;
46
+ localTime: typeof localTime;
47
+ localDateTime: typeof localDateTime;
48
+ dateTime: typeof dateTime;
49
+ dateTimeUtc: typeof dateTimeUtc;
50
+ dateTimeMillis: typeof dateTimeMillis;
51
+ dateTimeMillisUtc: typeof dateTimeMillisUtc;
52
+ dateTimeFromISO: typeof dateTimeFromISO;
53
+ dateTimeFromRFC2822: typeof dateTimeFromRFC2822;
54
+ dateTimeFromHTTP: typeof dateTimeFromHTTP;
55
+ dateTimeFromSQL: typeof dateTimeFromSQL;
56
+ dateTimeFromSeconds: typeof dateTimeFromSeconds;
57
+ dateTimeFromMillis: typeof dateTimeFromMillis;
58
+ duration: () => DurationValidator;
59
+ timeDuration: () => TimeDurationValidator;
60
+ };
61
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Vluxon.js';
2
+ export * from './luxon.js';
@@ -0,0 +1,122 @@
1
+ import { DateTime, DateTimeJSOptions, DateTimeOptions, Zone } from 'luxon';
2
+ export type LuxonDateTimeInput = DateTime | LuxonDateTime;
3
+ export declare abstract class LuxonDateTime {
4
+ readonly dateTime: DateTime;
5
+ constructor(input: LuxonDateTimeInput);
6
+ protected abstract normalize(dateTime: DateTime): DateTime;
7
+ apply<R>(fn: (dateTime: DateTime) => R): R;
8
+ valueOf(): number;
9
+ as<T extends LuxonDateTime>(type: {
10
+ new (...args: any[]): T;
11
+ }): T;
12
+ equals(other: any): boolean;
13
+ toString(): string;
14
+ abstract wrap(fn: (dateTime: DateTime) => DateTime): LuxonDateTime;
15
+ abstract toJSON(): string;
16
+ }
17
+ export declare class LocalDateLuxon extends LuxonDateTime {
18
+ static readonly format = "yyyy-MM-dd";
19
+ constructor(input: LuxonDateTimeInput);
20
+ static nowLocal(options?: DateTimeJSOptions): LocalDateLuxon;
21
+ static nowUtc(): LocalDateLuxon;
22
+ static fromISO(value: string, options?: DateTimeOptions): LocalDateLuxon;
23
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): LocalDateLuxon;
24
+ static fromJSDate(date: Date, options?: {
25
+ zone?: string | Zone;
26
+ }): LocalDateLuxon;
27
+ static fromMillis(millis: number, options?: DateTimeJSOptions): LocalDateLuxon;
28
+ protected normalize(dateTime: DateTime): DateTime;
29
+ wrap(fn: (dateTime: DateTime) => DateTime): LocalDateLuxon;
30
+ toJSON(): string;
31
+ }
32
+ export declare class LocalTimeLuxon extends LuxonDateTime {
33
+ static readonly format = "HH:mm:ss";
34
+ constructor(input: LuxonDateTimeInput);
35
+ static nowLocal(options?: DateTimeJSOptions): LocalTimeLuxon;
36
+ static nowUtc(): LocalTimeLuxon;
37
+ static fromISO(value: string, options?: DateTimeOptions): LocalTimeLuxon;
38
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): LocalTimeLuxon;
39
+ static fromJSDate(date: Date, options?: {
40
+ zone?: string | Zone;
41
+ }): LocalTimeLuxon;
42
+ static fromMillis(millis: number, options?: DateTimeJSOptions): LocalTimeLuxon;
43
+ protected normalize(dateTime: DateTime): DateTime;
44
+ wrap(fn: (dateTime: DateTime) => DateTime): LocalTimeLuxon;
45
+ toJSON(): string;
46
+ }
47
+ export declare class LocalDateTimeLuxon extends LuxonDateTime {
48
+ static readonly format = "yyyy-MM-dd'T'HH:mm:ss";
49
+ constructor(input: LuxonDateTimeInput);
50
+ setZone(zone: Zone): DateTimeLuxon;
51
+ static nowLocal(options?: DateTimeJSOptions): LocalDateTimeLuxon;
52
+ static nowUtc(): LocalDateTimeLuxon;
53
+ static fromISO(value: string, options?: DateTimeOptions): LocalDateTimeLuxon;
54
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): LocalDateTimeLuxon;
55
+ static fromJSDate(date: Date, options?: {
56
+ zone?: string | Zone;
57
+ }): LocalDateTimeLuxon;
58
+ static fromMillis(millis: number, options?: DateTimeJSOptions): LocalDateTimeLuxon;
59
+ protected normalize(dateTime: DateTime): DateTime;
60
+ wrap(fn: (dateTime: DateTime) => DateTime): LocalDateTimeLuxon;
61
+ toJSON(): string;
62
+ }
63
+ export declare class DateTimeLuxon extends LuxonDateTime {
64
+ static readonly format = "yyyy-MM-dd'T'HH:mm:ss";
65
+ static readonly formatTz: string;
66
+ constructor(input: LuxonDateTimeInput);
67
+ setZone(zone: Zone): DateTimeLuxon;
68
+ static now(options?: DateTimeJSOptions): DateTimeLuxon;
69
+ static fromISO(value: string, options?: DateTimeOptions): DateTimeLuxon;
70
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): DateTimeLuxon;
71
+ static fromJSDate(date: Date, options?: {
72
+ zone?: string | Zone;
73
+ }): DateTimeLuxon;
74
+ static fromMillis(millis: number, options?: DateTimeJSOptions): DateTimeLuxon;
75
+ protected normalize(dateTime: DateTime): DateTime;
76
+ wrap(fn: (dateTime: DateTime) => DateTime): DateTimeLuxon;
77
+ toJSON(): string;
78
+ }
79
+ export declare class DateTimeUtcLuxon extends LuxonDateTime {
80
+ constructor(input: LuxonDateTimeInput);
81
+ setZone(zone: Zone): DateTimeLuxon;
82
+ static now(): DateTimeUtcLuxon;
83
+ static fromISO(value: string, options?: DateTimeOptions): DateTimeUtcLuxon;
84
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): DateTimeUtcLuxon;
85
+ static fromJSDate(date: Date, options?: {
86
+ zone?: string | Zone;
87
+ }): DateTimeUtcLuxon;
88
+ static fromMillis(millis: number, options?: DateTimeJSOptions): DateTimeUtcLuxon;
89
+ protected normalize(dateTime: DateTime): DateTime;
90
+ wrap(fn: (dateTime: DateTime) => DateTime): DateTimeUtcLuxon;
91
+ toJSON(): string;
92
+ }
93
+ export declare class DateTimeMillisLuxon extends LuxonDateTime {
94
+ static readonly format = "yyyy-MM-dd'T'HH:mm:ss.SSS";
95
+ static readonly formatTz: string;
96
+ constructor(input: LuxonDateTimeInput);
97
+ setZone(zone: Zone): DateTimeMillisLuxon;
98
+ static now(options?: DateTimeJSOptions): DateTimeMillisLuxon;
99
+ static fromISO(value: string, options?: DateTimeOptions): DateTimeMillisLuxon;
100
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): DateTimeMillisLuxon;
101
+ static fromJSDate(date: Date, options?: {
102
+ zone?: string | Zone;
103
+ }): DateTimeMillisLuxon;
104
+ static fromMillis(millis: number, options?: DateTimeJSOptions): DateTimeMillisLuxon;
105
+ protected normalize(dateTime: DateTime): DateTime;
106
+ wrap(fn: (dateTime: DateTime) => DateTime): DateTimeMillisLuxon;
107
+ toJSON(): string;
108
+ }
109
+ export declare class DateTimeMillisUtcLuxon extends LuxonDateTime {
110
+ constructor(input: LuxonDateTimeInput);
111
+ setZone(zone: Zone): DateTimeMillisLuxon;
112
+ static now(): DateTimeMillisUtcLuxon;
113
+ static fromISO(value: string, options?: DateTimeOptions): DateTimeMillisUtcLuxon;
114
+ static fromFormat(value: string, format: string, options?: DateTimeOptions): DateTimeMillisUtcLuxon;
115
+ static fromJSDate(date: Date, options?: {
116
+ zone?: string | Zone;
117
+ }): DateTimeMillisUtcLuxon;
118
+ static fromMillis(millis: number, options?: DateTimeJSOptions): DateTimeMillisUtcLuxon;
119
+ protected normalize(dateTime: DateTime): DateTime;
120
+ wrap(fn: (dateTime: DateTime) => DateTime): DateTimeMillisUtcLuxon;
121
+ toJSON(): string;
122
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../path/dist/cjs/path.d.ts","../../path/dist/cjs/matchers.d.ts","../../path/dist/cjs/pathmatcher.d.ts","../../path/dist/cjs/projection.d.ts","../../path/dist/cjs/index.d.ts","../../core/dist/cjs/validators.d.ts","../../core/dist/cjs/schema.d.ts","../../core/dist/cjs/v.d.ts","../../core/dist/cjs/index.d.ts","../../../node_modules/@types/luxon/src/zone.d.ts","../../../node_modules/@types/luxon/src/settings.d.ts","../../../node_modules/@types/luxon/src/_util.d.ts","../../../node_modules/@types/luxon/src/misc.d.ts","../../../node_modules/@types/luxon/src/duration.d.ts","../../../node_modules/@types/luxon/src/interval.d.ts","../../../node_modules/@types/luxon/src/datetime.d.ts","../../../node_modules/@types/luxon/src/info.d.ts","../../../node_modules/@types/luxon/src/luxon.d.ts","../../../node_modules/@types/luxon/index.d.ts","../src/luxon.ts","../src/vluxon.ts","../src/index.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@types/chai-subset/index.d.ts","../../../node_modules/@types/color-name/index.d.ts","../../../node_modules/@types/deep-equal/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/json5/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/moo/index.d.ts","../../../node_modules/@types/nearley/index.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/uuid-validate/index.d.ts"],"fileInfos":[{"version":"2ac9cdcfb8f8875c18d14ec5796a8b029c426f73ad6dc3ffb580c228b58d1c44","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"09226e53d1cfda217317074a97724da3e71e2c545e18774484b61562afc53cd2","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"8b41361862022eb72fcc8a7f34680ac842aca802cf4bc1f915e8c620c9ce4331","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"bc496ef4377553e461efcf7cc5a5a57cf59f9962aea06b5e722d54a36bf66ea1","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"f35a831e4f0fe3b3697f4a0fe0e3caa7624c92b78afbecaf142c0f93abfaf379","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"e69c2a812df71addd97629b25fef907cceec74e5e83fae9ee812dcb35a9add47","267d5cc229b2a7932566cdc02282e0359e644a500311faf743a92703cbdc6905","d6c2af1a0c2760cedc92775327462ebf35e186c293706bf7b7f8c42b8570f946","d4b99fb2393b80a976a107797b9ac5e2e5b6d39e3c55151c520de76e86010980","e8a5d7c71a42e00944e2426648c9bec5a104f7b5009fc8f3cdb9faa2db46bb57","9f479f15e40ffe28484a98b144156b2bfb900a1be6410aa298bcbb4f2ad66b68","a9e0fa778b717702fe62fadff258bf144264946c5890bca523efe048f340bf73","6f54f1fcbceee5923581b17c994bbefb6bf4ffc2c5b84203f0230fd5a1daa390","43ed6d6bdcde046d712f303b7b186ce6a7c36f404550c6d87ea23b6bed56f0c4","5339f84dfcb7b04aa1c2b4d7713d6128039381447f07abc2e48d36685e2eef44","fb35a61a39c933d31b5b2549d906b2c932a1486622958586f662dbd4b2fe72e6","24e2728268be1ad2407bab004549d2753a49b2acb0f117a04c4e28ffb3ecdd4f","aff159b14eba59afe98a88fe6f57881ba02895fb9763512dda9083497bdcd0e6","b6bc775d112a7761a50594fc589aeaa8893c139ffe3db2b4999756e17f367a8d","0b8f398b88a43f8bf29a50920e7ddef19c06c3008b351e7047e9613d7195c638","25d0e0fe3731bc85c7bd2ef7f7e1faf4f5201be1c10ff3a19e1afa6ec4568669","26080058b725ac0b480241751255b4391f722263778e84e66a62068705aafd3c","46afbf46c3d62eac2afead3a2011d506637bf4f2c05e1fd64bbf7e2bb2947b7c","02f634f868780eaaff5e2d3fb4570dac8e7f018a8650bb9a0ac1deb4915df8d1",{"version":"2411e324d2cc0bc82dfdc76768204f2a707ff34d8ef7eef571237fa26aa18d17","signature":"bb24451f190b5f4e9a675efbcd7f1af1aff7a5111095f22b18cc5103c2ba828e"},{"version":"0c9eaa0a808c2d4cf51507f1da156d667a414f6062aac9e184f9baaa5fc8d9b4","signature":"7f685a1cf808b25e3a4c6ca48088ba0652191b55c0aa763b2c89ab7ce2069ff9"},"5760f609071b025ad30c31dd9cde9badcf19b243318b82fb17e3a86ff8e0c256",{"version":"648c383d6cea51b7dce41935a906920d1256df3fc600c2094120080e03281e2a","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e","2e345cb6511f4c4c60c274df6626c94f3182939034f06cdf414bfbccc584f822","b7b0f360867e85305ac700e4c6f084d45adfa417a8f5d964b6f609f99ee92772","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","3602dfff3072caea42f23a9b63fb34a7b0c95a62b93ce2add5fe6b159447845e","7a3a840d2d933c48b6cbe80e3c74ab4f874314953457ac387759a251cab01d56","1be422477101fb35ce8c78fb19f763a5ad6aa7204d60b56ca26ceb55ccec67b8","09df3b4f1c937f02e7fee2836d4c4d7a63e66db70fd4d4e97126f4542cc21d9d","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","adda9e3915c6bf15e360356a41d950881a51dbe44f9a6088155836b040820663","b4855526ac5a822d6e0005e4b62ee49c599bf89897e4109135283d660e60291c","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","80ad053918e96087d9da8d092ff9f90520c9fc199c8bfd9340266dd8f38f364e","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","d70119390aece1794bf4988f10ea750d13455f5286977d35027d43dd2e9841cf",{"version":"4d719cfab49ae4045d15cb6bed0f38ad3d7d6eb7f277d2603502a0f862ca3182","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"62486c25ff70799e9faac5c6108820969617daeb6e65644c212d03cdb5902a3c","affectsGlobalScope":true},"546ab07e19116d935ad982e76a223275b53bff7771dab94f433b7ab04652936e","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"aefb5a4a209f756b580eb53ea771cca8aad411603926f307a5e5b8ec6b16dcf6","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","f5a8b7ec4b798c88679194a8ebc25dcb6f5368e6e5811fcda9fe12b0d445b8db","b86e1a45b29437f3a99bad4147cb9fe2357617e8008c0484568e5bb5138d6e13","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","42c431e7965b641106b5e25ab3283aa4865ca7bb9909610a2abfa6226e4348be","0b7e732af0a9599be28c091d6bd1cb22c856ec0d415d4749c087c3881ca07a56","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"8d6138a264ddc6f94f16e99d4e117a2d6eb31b217891cf091b6437a2f114d561","affectsGlobalScope":true},"3b4c85eea12187de9929a76792b98406e8778ce575caca8c574f06da82622c54","f788131a39c81e0c9b9e463645dd7132b5bc1beb609b0e31e5c1ceaea378b4df","0c236069ce7bded4f6774946e928e4b3601894d294054af47a553f7abcafe2c1","21894466693f64957b9bd4c80fa3ec7fdfd4efa9d1861e070aca23f10220c9b2","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","ad8848c289c0b633452e58179f46edccd14b5a0fe90ebce411f79ff040b803e0",{"version":"5d4ef3f46c7f9d62f7c964f9f9ccdd293be99fb3dcc66c983f2aea7430e3c7c6","affectsGlobalScope":true},"91f8b5abcdff8f9ecb9656b9852878718416fb7700b2c4fad8331e5b97c080bb","59d8f064f86a4a2be03b33c0efcc9e7a268ad27b22f82dce16899f3364f70ba8","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"f49fb15c4aa06b65b0dce4db4584bfd8a9f74644baef1511b404dc95be34af00","affectsGlobalScope":true},{"version":"d48009cbe8a30a504031cc82e1286f78fed33b7a42abf7602c23b5547b382563","affectsGlobalScope":true},"7aaeb5e62f90e1b2be0fc4844df78cdb1be15c22b427bc6c39d57308785b8f10","3ba30205a029ebc0c91d7b1ab4da73f6277d730ca1fc6692d5a9144c6772c76b","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"24ba151e213906027e2b1f5223d33575a3612b0234a0e2b56119520bbe0e594b","affectsGlobalScope":true},{"version":"cbf046714f3a3ba2544957e1973ac94aa819fa8aa668846fa8de47eb1c41b0b2","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eae74e3d50820f37c72c0679fed959cd1e63c98f6a146a55b8c4361582fa6a52","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"aed89e3c18f4c659ee8153a76560dffda23e2d801e1e60d7a67abd84bc555f8d","affectsGlobalScope":true},{"version":"0ed13c80faeb2b7160bffb4926ff299c468e67a37a645b3ae0917ba0db633c1b","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","2f940651c2f30e6b29f8743fae3f40b7b1c03615184f837132b56ea75edad08b","5749c327c3f789f658072f8340786966c8b05ea124a56c1d8d60e04649495a4d",{"version":"c9d62b2a51b2ff166314d8be84f6881a7fcbccd37612442cf1c70d27d5352f50","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d3f4c342fb62f348f25f54b473b0ab7371828cbf637134194fa9cdf04856f87b","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","f5b3e0557ad67f756a329f9a0e9d0e46bde1f46a5a0f16dfa1d9d26bdcb6019d"],"root":[[77,79]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"downlevelIteration":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./cjs","rootDir":"../src","strict":true,"target":9},"fileIdsList":[[80,169],[169],[75,169],[68,169],[67,69,71,72,76,169],[69,70,73,169],[67,70,73,169],[69,71,73,169],[67,68,70,71,72,73,74,169],[67,73,169],[69,169],[90,169],[126,169],[127,132,160,169],[128,139,140,147,157,168,169],[128,129,139,147,169],[130,169],[131,132,140,148,169],[132,157,165,169],[133,135,139,147,169],[134,169],[135,136,169],[139,169],[137,139,169],[126,139,169],[139,140,141,157,168,169],[139,140,141,154,157,160,169],[124,169,173],[135,139,142,147,157,168,169],[139,140,142,143,147,157,165,168,169],[142,144,157,165,168,169],[90,91,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],[139,145,169],[146,168,169,173],[135,139,147,157,169],[148,169],[149,169],[126,150,169],[151,167,169,173],[152,169],[153,169],[139,154,155,169],[154,156,169,171],[127,139,157,158,159,160,169],[127,157,159,169],[157,158,169],[160,169],[161,169],[126,157,169],[139,163,164,169],[163,164,169],[132,147,157,165,169],[166,169],[147,167,169],[127,142,153,168,169],[132,169],[157,169,170],[146,169,171],[169,172],[127,132,139,141,150,157,168,169,171,173],[157,169,174],[101,105,168,169],[101,157,168,169],[96,169],[98,101,165,168,169],[147,165,169],[169,176],[96,169,176],[98,101,147,168,169],[93,94,97,100,127,139,157,168,169],[93,99,169],[97,101,127,160,168,169,176],[127,169,176],[117,127,169,176],[95,96,169,176],[101,169],[95,96,97,98,99,100,101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,118,119,120,121,122,123,169],[101,108,109,169],[99,101,109,110,169],[100,169],[93,96,101,169],[101,105,109,110,169],[105,169],[99,101,104,168,169],[93,98,99,101,105,108,169],[127,157,169],[96,101,117,127,169,173,176],[63,65,169],[62,63,169],[62,63,64,169],[62,169],[77,78,169],[76,169],[62,66,76,77,169],[58,59,60,61,169],[58,169],[58,59,169],[58,60,169],[76],[62,63,66,76,77]],"referencedMap":[[81,1],[80,2],[82,2],[83,2],[84,2],[85,2],[76,3],[69,4],[73,5],[71,6],[74,7],[72,8],[75,9],[70,2],[68,10],[67,11],[86,2],[87,2],[88,2],[89,2],[90,12],[91,12],[126,13],[127,14],[128,15],[129,16],[130,17],[131,18],[132,19],[133,20],[134,21],[135,22],[136,22],[138,23],[137,24],[139,25],[140,26],[141,27],[125,28],[175,2],[142,29],[143,30],[144,31],[176,32],[145,33],[146,34],[147,35],[148,36],[149,37],[150,38],[151,39],[152,40],[153,41],[154,42],[155,42],[156,43],[157,44],[159,45],[158,46],[160,47],[161,48],[162,49],[163,50],[164,51],[165,52],[166,53],[167,54],[168,55],[169,56],[170,57],[171,58],[172,59],[173,60],[174,61],[177,2],[178,2],[179,2],[92,2],[56,2],[57,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[20,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[35,2],[32,2],[33,2],[34,2],[36,2],[7,2],[37,2],[42,2],[43,2],[38,2],[39,2],[40,2],[41,2],[8,2],[47,2],[44,2],[45,2],[46,2],[48,2],[9,2],[49,2],[50,2],[51,2],[54,2],[52,2],[53,2],[1,2],[55,2],[108,62],[115,63],[107,62],[122,64],[99,65],[98,66],[121,67],[116,68],[119,69],[101,70],[100,71],[96,72],[95,73],[118,74],[97,75],[102,76],[103,2],[106,76],[93,2],[124,77],[123,76],[110,78],[111,79],[113,80],[109,81],[112,82],[117,67],[104,83],[105,84],[114,85],[94,86],[120,87],[66,88],[64,89],[65,90],[63,91],[79,92],[77,93],[78,94],[62,95],[59,96],[58,2],[60,97],[61,98]],"exportedModulesMap":[[81,1],[80,2],[82,2],[83,2],[84,2],[85,2],[76,3],[69,4],[73,5],[71,6],[74,7],[72,8],[75,9],[70,2],[68,10],[67,11],[86,2],[87,2],[88,2],[89,2],[90,12],[91,12],[126,13],[127,14],[128,15],[129,16],[130,17],[131,18],[132,19],[133,20],[134,21],[135,22],[136,22],[138,23],[137,24],[139,25],[140,26],[141,27],[125,28],[175,2],[142,29],[143,30],[144,31],[176,32],[145,33],[146,34],[147,35],[148,36],[149,37],[150,38],[151,39],[152,40],[153,41],[154,42],[155,42],[156,43],[157,44],[159,45],[158,46],[160,47],[161,48],[162,49],[163,50],[164,51],[165,52],[166,53],[167,54],[168,55],[169,56],[170,57],[171,58],[172,59],[173,60],[174,61],[177,2],[178,2],[179,2],[92,2],[56,2],[57,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[20,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[35,2],[32,2],[33,2],[34,2],[36,2],[7,2],[37,2],[42,2],[43,2],[38,2],[39,2],[40,2],[41,2],[8,2],[47,2],[44,2],[45,2],[46,2],[48,2],[9,2],[49,2],[50,2],[51,2],[54,2],[52,2],[53,2],[1,2],[55,2],[108,62],[115,63],[107,62],[122,64],[99,65],[98,66],[121,67],[116,68],[119,69],[101,70],[100,71],[96,72],[95,73],[118,74],[97,75],[102,76],[103,2],[106,76],[93,2],[124,77],[123,76],[110,78],[111,79],[113,80],[109,81],[112,82],[117,67],[104,83],[105,84],[114,85],[94,86],[120,87],[66,88],[64,89],[65,90],[63,91],[79,92],[77,99],[78,100],[62,95],[59,96],[58,2],[60,97],[61,98]],"semanticDiagnosticsPerFile":[81,80,82,83,84,85,76,69,73,71,74,72,75,70,68,67,86,87,88,89,90,91,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,125,175,142,143,144,176,145,146,147,148,149,150,151,152,153,154,155,156,157,159,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,177,178,179,92,56,57,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,54,52,53,1,55,108,115,107,122,99,98,121,116,119,101,100,96,95,118,97,102,103,106,93,124,123,110,111,113,109,112,117,104,105,114,94,120,66,64,65,63,79,77,78,62,59,58,60,61],"latestChangedDtsFile":"./cjs/index.d.ts"},"version":"5.2.2"}
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "@finnair/v-validation-luxon",
3
- "version": "5.0.1",
3
+ "version": "5.2.0",
4
4
  "private": false,
5
5
  "description": "Luxon validators",
6
- "type": "module",
6
+ "main": "./dist/cjs/index.js",
7
+ "module": "./dist/cjs/index.js",
8
+ "types": "./dist/cjs/index.d.ts",
7
9
  "exports": {
8
10
  ".": {
11
+ "require": {
12
+ "types": "./dist/cjs/index.d.ts",
13
+ "default": "./dist/cjs/index.js"
14
+ },
9
15
  "import": {
10
- "types": "./dist/index.d.ts",
11
- "default": "./dist/index.js"
16
+ "types": "./dist/esm/index.d.ts",
17
+ "default": "./dist/esm/index.js"
12
18
  }
13
19
  }
14
20
  },
@@ -29,14 +35,18 @@
29
35
  "luxon"
30
36
  ],
31
37
  "scripts": {
32
- "build": "tsc -b ."
33
- },
34
- "dependencies": {
35
- "@finnair/path": "^5.0.1",
36
- "@finnair/v-validation": "^5.0.1"
38
+ "build": "yarn build:cjs && yarn build:esm",
39
+ "build:cjs": "tsc -b tsconfig.cjs.json && cp ../../package.cjs.json dist/cjs/package.json",
40
+ "build:esm": "tsc -b . && cp ../../package.esm.json dist/esm/package.json"
37
41
  },
38
42
  "peerDependencies": {
39
- "luxon": "^3.0.0"
43
+ "@finnair/path": "^5.1.0",
44
+ "@finnair/v-validation": "^5.1.0",
45
+ "luxon": "^3.4.0"
46
+ },
47
+ "devDependencies": {
48
+ "@finnair/path": "^5.2.0",
49
+ "@finnair/v-validation": "^5.2.0"
40
50
  },
41
- "gitHead": "002badde317763fb6ec6a0350b0043d04cc07163"
51
+ "gitHead": "563d677caefeb2a9c68006bd3076bb9c3cc66baf"
42
52
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "module": "commonjs",
6
+ "outDir": "dist/cjs"
7
+ },
8
+ "exclude": ["dist", "**/*.spec.ts"]
9
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes