@finnair/v-validation-moment 5.0.1 → 5.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.1.0](https://github.com/finnair/v-validation/compare/v5.0.1...v5.1.0) (2023-11-16)
7
+
8
+
9
+ ### Features
10
+
11
+ * support both ESM and CommonJS ([#96](https://github.com/finnair/v-validation/issues/96)) ([c32a104](https://github.com/finnair/v-validation/commit/c32a1040cd2e0412005cf9e6ff869569ab194950))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.0.1](https://github.com/finnair/v-validation/compare/v5.0.0...v5.0.1) (2023-10-13)
7
18
 
8
19
 
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Vmoment = exports.timeMoment = exports.dateTimeMillisUtcMoment = exports.dateTimeMillisMoment = exports.dateTimeUtcMoment = exports.dateTimeMoment = exports.dateUtcMoment = exports.dateMoment = exports.DurationValidator = exports.MomentValidator = void 0;
7
+ const v_validation_1 = require("@finnair/v-validation");
8
+ const moment_1 = __importDefault(require("moment"));
9
+ class MomentValidator extends v_validation_1.Validator {
10
+ type;
11
+ parse;
12
+ constructor(type, parse) {
13
+ super();
14
+ this.type = type;
15
+ this.parse = parse;
16
+ Object.freeze(this);
17
+ }
18
+ async validatePath(value, path, ctx) {
19
+ if ((0, v_validation_1.isNullOrUndefined)(value)) {
20
+ return ctx.failure(v_validation_1.defaultViolations.notNull(path), value);
21
+ }
22
+ if ((0, v_validation_1.isString)(value) || moment_1.default.isMoment(value)) {
23
+ const convertedValue = this.parse(value);
24
+ if (convertedValue.isValid()) {
25
+ return ctx.success(convertedValue);
26
+ }
27
+ }
28
+ return ctx.failure(v_validation_1.defaultViolations.date(value, path, this.type), value);
29
+ }
30
+ }
31
+ exports.MomentValidator = MomentValidator;
32
+ 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)?)?$/;
33
+ class DurationValidator extends v_validation_1.Validator {
34
+ async validatePath(value, path, ctx) {
35
+ if ((0, v_validation_1.isNullOrUndefined)(value)) {
36
+ return ctx.failure(v_validation_1.defaultViolations.notNull(path), value);
37
+ }
38
+ if (((0, v_validation_1.isString)(value) && durationPattern.test(value)) || moment_1.default.isDuration(value)) {
39
+ const convertedValue = moment_1.default.duration(value);
40
+ if (convertedValue.isValid()) {
41
+ return ctx.success(convertedValue);
42
+ }
43
+ }
44
+ return ctx.failure(new v_validation_1.TypeMismatch(path, 'Duration', value), value);
45
+ }
46
+ }
47
+ exports.DurationValidator = DurationValidator;
48
+ function maybeDateFormat(value, dateFormat) {
49
+ return (0, v_validation_1.isString)(value) ? dateFormat : undefined;
50
+ }
51
+ const dateFormat = 'YYYY-MM-DD';
52
+ function dateMoment(value) {
53
+ return Object.setPrototypeOf((0, moment_1.default)(value, maybeDateFormat(value, dateFormat), true), dateMoment.prototype);
54
+ }
55
+ exports.dateMoment = dateMoment;
56
+ Object.setPrototypeOf(dateMoment.prototype, moment_1.default.prototype);
57
+ Object.setPrototypeOf(dateMoment, moment_1.default);
58
+ dateMoment.prototype.toJSON = function toJSON() {
59
+ return this.format(dateFormat);
60
+ };
61
+ dateMoment.prototype.clone = function clone() {
62
+ return dateMoment(this);
63
+ };
64
+ function dateUtcMoment(value) {
65
+ return Object.setPrototypeOf(moment_1.default.utc(value, maybeDateFormat(value, dateFormat), true), dateUtcMoment.prototype);
66
+ }
67
+ exports.dateUtcMoment = dateUtcMoment;
68
+ Object.setPrototypeOf(dateUtcMoment.prototype, moment_1.default.prototype);
69
+ Object.setPrototypeOf(dateUtcMoment, moment_1.default);
70
+ dateUtcMoment.prototype.toJSON = function toJSON() {
71
+ return this.format(dateFormat);
72
+ };
73
+ dateUtcMoment.prototype.clone = function clone() {
74
+ return dateUtcMoment(this);
75
+ };
76
+ const dateTimeFormat = 'YYYY-MM-DDTHH:mm:ss';
77
+ const dateTimeFormatTz = dateTimeFormat + 'Z';
78
+ function dateTimeMoment(value) {
79
+ return Object.setPrototypeOf(moment_1.default.parseZone(value, maybeDateFormat(value, dateTimeFormatTz), true), dateTimeMoment.prototype);
80
+ }
81
+ exports.dateTimeMoment = dateTimeMoment;
82
+ Object.setPrototypeOf(dateTimeMoment.prototype, moment_1.default.prototype);
83
+ Object.setPrototypeOf(dateTimeMoment, moment_1.default);
84
+ dateTimeMoment.prototype.toJSON = function toJSON() {
85
+ if (this.utcOffset() === 0) {
86
+ return this.format(dateTimeFormat) + 'Z';
87
+ }
88
+ return this.format(dateTimeFormatTz);
89
+ };
90
+ dateTimeMoment.prototype.clone = function clone() {
91
+ return dateTimeMoment(this);
92
+ };
93
+ function dateTimeUtcMoment(value) {
94
+ return Object.setPrototypeOf(moment_1.default.utc(value, maybeDateFormat(value, dateTimeFormatTz), true), dateTimeUtcMoment.prototype);
95
+ }
96
+ exports.dateTimeUtcMoment = dateTimeUtcMoment;
97
+ Object.setPrototypeOf(dateTimeUtcMoment.prototype, moment_1.default.prototype);
98
+ Object.setPrototypeOf(dateTimeUtcMoment, moment_1.default);
99
+ dateTimeUtcMoment.prototype.toJSON = function toJSON() {
100
+ return this.format(dateTimeFormat) + 'Z';
101
+ };
102
+ dateTimeUtcMoment.prototype.clone = function clone() {
103
+ return dateTimeUtcMoment(this);
104
+ };
105
+ dateTimeUtcMoment.prototype.utcOffset = function utcOffset(offset) {
106
+ if (offset === undefined) {
107
+ return moment_1.default.prototype.utcOffset.call(this);
108
+ }
109
+ const copy = dateTimeMoment(this);
110
+ copy.utcOffset(offset);
111
+ return copy;
112
+ };
113
+ const dateTimeMillisFormat = 'YYYY-MM-DDTHH:mm:ss.SSS';
114
+ const dateTimeMillisFormatTz = dateTimeMillisFormat + 'Z';
115
+ function dateTimeMillisMoment(value) {
116
+ return Object.setPrototypeOf(moment_1.default.parseZone(value, maybeDateFormat(value, dateTimeMillisFormatTz), true), dateTimeMillisMoment.prototype);
117
+ }
118
+ exports.dateTimeMillisMoment = dateTimeMillisMoment;
119
+ Object.setPrototypeOf(dateTimeMillisMoment.prototype, moment_1.default.prototype);
120
+ Object.setPrototypeOf(dateTimeMillisMoment, moment_1.default);
121
+ dateTimeMillisMoment.prototype.toJSON = function toJSON() {
122
+ if (this.utcOffset() === 0) {
123
+ return this.format(dateTimeMillisFormat) + 'Z';
124
+ }
125
+ return this.format(dateTimeMillisFormatTz);
126
+ };
127
+ dateTimeMillisMoment.prototype.clone = function clone() {
128
+ return dateTimeMillisMoment(this);
129
+ };
130
+ function dateTimeMillisUtcMoment(value) {
131
+ return Object.setPrototypeOf(moment_1.default.utc(value, maybeDateFormat(value, dateTimeMillisFormatTz), true), dateTimeMillisUtcMoment.prototype);
132
+ }
133
+ exports.dateTimeMillisUtcMoment = dateTimeMillisUtcMoment;
134
+ Object.setPrototypeOf(dateTimeMillisUtcMoment.prototype, moment_1.default.prototype);
135
+ Object.setPrototypeOf(dateTimeMillisUtcMoment, moment_1.default);
136
+ dateTimeMillisUtcMoment.prototype.toJSON = function toJSON() {
137
+ return this.format(dateTimeMillisFormat) + 'Z';
138
+ };
139
+ dateTimeMillisUtcMoment.prototype.clone = function clone() {
140
+ return dateTimeMillisUtcMoment(this);
141
+ };
142
+ dateTimeMillisUtcMoment.prototype.utcOffset = function utcOffset(offset) {
143
+ if (offset === undefined) {
144
+ return moment_1.default.prototype.utcOffset.call(this);
145
+ }
146
+ const copy = dateTimeMillisMoment(this);
147
+ copy.utcOffset(offset);
148
+ return copy;
149
+ };
150
+ const timeFormat = 'HH:mm:ss';
151
+ function timeMoment(value) {
152
+ return Object.setPrototypeOf(moment_1.default.parseZone(value, maybeDateFormat(value, timeFormat), true), timeMoment.prototype);
153
+ }
154
+ exports.timeMoment = timeMoment;
155
+ Object.setPrototypeOf(timeMoment.prototype, moment_1.default.prototype);
156
+ Object.setPrototypeOf(timeMoment, moment_1.default);
157
+ timeMoment.prototype.toJSON = function toJSON() {
158
+ return this.format(timeFormat);
159
+ };
160
+ timeMoment.prototype.clone = function clone() {
161
+ return timeMoment(this);
162
+ };
163
+ const dateValidator = new MomentValidator('Date', dateMoment), dateUtcValidator = new MomentValidator('Date', dateUtcMoment), dateTimeValidator = new MomentValidator('DateTime', dateTimeMoment), dateTimeUtcValidator = new MomentValidator('DateTime', dateTimeUtcMoment), dateTimeMillisValidator = new MomentValidator('DateTimeMillis', dateTimeMillisMoment), dateTimeMillisUtcValidator = new MomentValidator('DateTimeMillis', dateTimeMillisUtcMoment), timeValidator = new MomentValidator('Time', timeMoment), durationValidator = new DurationValidator();
164
+ exports.Vmoment = {
165
+ date: () => dateValidator,
166
+ dateUtc: () => dateUtcValidator,
167
+ dateTime: () => dateTimeValidator,
168
+ dateTimeUtc: () => dateTimeUtcValidator,
169
+ dateTimeMillis: () => dateTimeMillisValidator,
170
+ dateTimeMillisUtc: () => dateTimeMillisUtcValidator,
171
+ time: () => timeValidator,
172
+ duration: () => durationValidator,
173
+ };
174
+ Object.freeze(exports.Vmoment);
@@ -0,0 +1,17 @@
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("./Vmoment.js"), exports);
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,29 @@
1
+ import { Validator, ValidationContext, ValidationResult } from '@finnair/v-validation';
2
+ import { Path } from '@finnair/path';
3
+ import { Moment, MomentInput } from 'moment';
4
+ export declare class MomentValidator extends Validator {
5
+ readonly type: string;
6
+ readonly parse: (value?: MomentInput) => Moment;
7
+ constructor(type: string, parse: (value?: MomentInput) => Moment);
8
+ validatePath(value: any, path: Path, ctx: ValidationContext): Promise<ValidationResult>;
9
+ }
10
+ export declare class DurationValidator extends Validator {
11
+ validatePath(value: any, path: Path, ctx: ValidationContext): Promise<ValidationResult>;
12
+ }
13
+ export declare function dateMoment(value?: MomentInput): Moment;
14
+ export declare function dateUtcMoment(value?: MomentInput): Moment;
15
+ export declare function dateTimeMoment(value?: MomentInput): Moment;
16
+ export declare function dateTimeUtcMoment(value?: MomentInput): Moment;
17
+ export declare function dateTimeMillisMoment(value?: MomentInput): Moment;
18
+ export declare function dateTimeMillisUtcMoment(value?: MomentInput): Moment;
19
+ export declare function timeMoment(value?: MomentInput): Moment;
20
+ export declare const Vmoment: {
21
+ date: () => MomentValidator;
22
+ dateUtc: () => MomentValidator;
23
+ dateTime: () => MomentValidator;
24
+ dateTimeUtc: () => MomentValidator;
25
+ dateTimeMillis: () => MomentValidator;
26
+ dateTimeMillisUtc: () => MomentValidator;
27
+ time: () => MomentValidator;
28
+ duration: () => DurationValidator;
29
+ };
@@ -0,0 +1 @@
1
+ export * from './Vmoment.js';
@@ -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/moment/ts3.1-typings/moment.d.ts","../src/vmoment.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/luxon/src/zone.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/settings.d.ts","../../../node_modules/@types/luxon/src/luxon.d.ts","../../../node_modules/@types/luxon/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","4051f6311deb0ce6052329eeb1cd4b1b104378fe52f882f483130bea75f92197",{"version":"3713006387f1bb080e972c63768a0e81f7032bd401abba6814a59c88425583e4","signature":"37f3d0bb913ba3e830e21405d50b536a9bec559ad89dd8ba1b2cb19709b4b3b3"},"dea1e97b408a464612c408945e208a9e68629d5b62d8539ef564d9928660ae65",{"version":"648c383d6cea51b7dce41935a906920d1256df3fc600c2094120080e03281e2a","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e","2e345cb6511f4c4c60c274df6626c94f3182939034f06cdf414bfbccc584f822","b7b0f360867e85305ac700e4c6f084d45adfa417a8f5d964b6f609f99ee92772","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","45938045285af93edb0065d83c44410e18b34fd1285b5ce46e025a46d5042a46","52ed17fe2c0a4bb27a4f13e99234b3d1f364dc27f9bd7964946d5ec62792a0cc","347c99f9511fb30c62af9a051ac54ac1a4b851f73cd9f5b0834ba2d2d4006c45","2f007f7338e8e2fe4691511ab9564fa8924d2ed4294f195bc4848a43bba8c004","d1a198a52f14bc491d502b9319a7bda1f5b2c187a2b094bfee3b94df36796721","ed4be5a31cd8dbb8e31ccde91e7b8c1552eb191c4787d19ed028763577674772","d40e7cb322841e538e686b8a39f05e8b3e0b6d5b7c6687efa69f0cbf9124c4ec","c5641bb951da5d5252e7d8a806ec3c84f42555b5bd6a0879dbf1c7df1b8bd850","501df3ff1166189ef3611db2d498048e6d6783eb8c4ae29d04d79f6caef0308a","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":[68,69],"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":[[70,168],[168],[83,168],[76,78,79,84,168],[77,80,168],[76,77,168],[78,80,168],[76,77,78,79,80,81,82,168],[76,168],[89,168],[125,168],[126,131,159,168],[127,138,139,146,156,167,168],[127,128,138,146,168],[129,168],[130,131,139,147,168],[131,156,164,168],[132,134,138,146,168],[133,168],[134,135,168],[138,168],[136,138,168],[125,138,168],[138,139,140,156,167,168],[138,139,140,153,156,159,168],[123,168,172],[134,138,141,146,156,167,168],[138,139,141,142,146,156,164,167,168],[141,143,156,164,167,168],[89,90,124,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],[138,144,168],[145,167,168,172],[134,138,146,156,168],[147,168],[148,168],[125,149,168],[150,166,168,172],[151,168],[152,168],[138,153,154,168],[153,155,168,170],[126,138,156,157,158,159,168],[126,156,158,168],[156,157,168],[159,168],[160,168],[125,156,168],[138,162,163,168],[162,163,168],[131,146,156,164,168],[165,168],[146,166,168],[126,141,152,167,168],[131,168],[156,168,169],[145,168,170],[168,171],[126,131,138,140,149,156,167,168,170,172],[156,168,173],[100,104,167,168],[100,156,167,168],[95,168],[97,100,164,167,168],[146,164,168],[168,175],[95,168,175],[97,100,146,167,168],[92,93,96,99,126,138,156,167,168],[92,98,168],[96,100,126,159,167,168,175],[126,168,175],[116,126,168,175],[94,95,168,175],[100,168],[94,95,96,97,98,99,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,117,118,119,120,121,122,168],[100,107,108,168],[98,100,108,109,168],[99,168],[92,95,100,168],[100,104,108,109,168],[104,168],[98,100,103,167,168],[92,97,98,100,104,107,168],[126,156,168],[95,100,116,126,168,172,175],[63,65,168],[62,63,168],[62,63,64,168],[62,168],[68,168],[62,66,67,168],[58,59,60,61,168],[58,168],[58,59,168],[58,60,168],[62,66,67]],"referencedMap":[[71,1],[70,2],[72,2],[73,2],[74,2],[75,2],[84,3],[80,4],[78,5],[81,6],[79,7],[83,8],[77,2],[82,9],[76,2],[85,2],[86,2],[87,2],[88,2],[89,10],[90,10],[125,11],[126,12],[127,13],[128,14],[129,15],[130,16],[131,17],[132,18],[133,19],[134,20],[135,20],[137,21],[136,22],[138,23],[139,24],[140,25],[124,26],[174,2],[141,27],[142,28],[143,29],[175,30],[144,31],[145,32],[146,33],[147,34],[148,35],[149,36],[150,37],[151,38],[152,39],[153,40],[154,40],[155,41],[156,42],[158,43],[157,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[167,53],[168,54],[169,55],[170,56],[171,57],[172,58],[173,59],[176,2],[177,2],[178,2],[91,2],[67,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],[107,60],[114,61],[106,60],[121,62],[98,63],[97,64],[120,65],[115,66],[118,67],[100,68],[99,69],[95,70],[94,71],[117,72],[96,73],[101,74],[102,2],[105,74],[92,2],[123,75],[122,74],[109,76],[110,77],[112,78],[108,79],[111,80],[116,65],[103,81],[104,82],[113,83],[93,84],[119,85],[66,86],[64,87],[65,88],[63,89],[69,90],[68,91],[62,92],[59,93],[58,2],[60,94],[61,95]],"exportedModulesMap":[[71,1],[70,2],[72,2],[73,2],[74,2],[75,2],[84,3],[80,4],[78,5],[81,6],[79,7],[83,8],[77,2],[82,9],[76,2],[85,2],[86,2],[87,2],[88,2],[89,10],[90,10],[125,11],[126,12],[127,13],[128,14],[129,15],[130,16],[131,17],[132,18],[133,19],[134,20],[135,20],[137,21],[136,22],[138,23],[139,24],[140,25],[124,26],[174,2],[141,27],[142,28],[143,29],[175,30],[144,31],[145,32],[146,33],[147,34],[148,35],[149,36],[150,37],[151,38],[152,39],[153,40],[154,40],[155,41],[156,42],[158,43],[157,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[167,53],[168,54],[169,55],[170,56],[171,57],[172,58],[173,59],[176,2],[177,2],[178,2],[91,2],[67,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],[107,60],[114,61],[106,60],[121,62],[98,63],[97,64],[120,65],[115,66],[118,67],[100,68],[99,69],[95,70],[94,71],[117,72],[96,73],[101,74],[102,2],[105,74],[92,2],[123,75],[122,74],[109,76],[110,77],[112,78],[108,79],[111,80],[116,65],[103,81],[104,82],[113,83],[93,84],[119,85],[66,86],[64,87],[65,88],[63,89],[69,90],[68,96],[62,92],[59,93],[58,2],[60,94],[61,95]],"semanticDiagnosticsPerFile":[71,70,72,73,74,75,84,80,78,81,79,83,77,82,76,85,86,87,88,89,90,125,126,127,128,129,130,131,132,133,134,135,137,136,138,139,140,124,174,141,142,143,175,144,145,146,147,148,149,150,151,152,153,154,155,156,158,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,176,177,178,91,67,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,107,114,106,121,98,97,120,115,118,100,99,95,94,117,96,101,102,105,92,123,122,109,110,112,108,111,116,103,104,113,93,119,66,64,65,63,69,68,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-moment",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "private": false,
5
5
  "description": "Moment 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,16 @@
29
35
  "moment"
30
36
  ],
31
37
  "scripts": {
32
- "build": "tsc -b ."
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"
33
41
  },
34
42
  "dependencies": {
35
- "@finnair/path": "^5.0.1",
36
- "@finnair/v-validation": "^5.0.1"
43
+ "@finnair/path": "^5.1.0",
44
+ "@finnair/v-validation": "^5.1.0"
37
45
  },
38
46
  "peerDependencies": {
39
47
  "moment": "^2.29.1"
40
48
  },
41
- "gitHead": "002badde317763fb6ec6a0350b0043d04cc07163"
49
+ "gitHead": "fdba98ed7487efbd1d54c6bfbc85805b45a65299"
42
50
  }
@@ -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