@tsofist/schema-forge 1.33.0 → 2.0.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/LICENSE CHANGED
@@ -1,21 +1,167 @@
1
- The MIT License (MIT)
2
-
3
1
  Copyright (c) 2024-present, Andrew Berdnikov
4
2
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
3
+ GNU LESSER GENERAL PUBLIC LICENSE
4
+ Version 3, 29 June 2007
5
+
6
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
7
+ Everyone is permitted to copy and distribute verbatim copies
8
+ of this license document, but changing it is not allowed.
9
+
10
+
11
+ This version of the GNU Lesser General Public License incorporates
12
+ the terms and conditions of version 3 of the GNU General Public
13
+ License, supplemented by the additional permissions listed below.
14
+
15
+ 0. Additional Definitions.
16
+
17
+ As used herein, "this License" refers to version 3 of the GNU Lesser
18
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
19
+ General Public License.
20
+
21
+ "The Library" refers to a covered work governed by this License,
22
+ other than an Application or a Combined Work as defined below.
23
+
24
+ An "Application" is any work that makes use of an interface provided
25
+ by the Library, but which is not otherwise based on the Library.
26
+ Defining a subclass of a class defined by the Library is deemed a mode
27
+ of using an interface provided by the Library.
28
+
29
+ A "Combined Work" is a work produced by combining or linking an
30
+ Application with the Library. The particular version of the Library
31
+ with which the Combined Work was made is also called the "Linked
32
+ Version".
33
+
34
+ The "Minimal Corresponding Source" for a Combined Work means the
35
+ Corresponding Source for the Combined Work, excluding any source code
36
+ for portions of the Combined Work that, considered in isolation, are
37
+ based on the Application, and not on the Linked Version.
38
+
39
+ The "Corresponding Application Code" for a Combined Work means the
40
+ object code and/or source code for the Application, including any data
41
+ and utility programs needed for reproducing the Combined Work from the
42
+ Application, but excluding the System Libraries of the Combined Work.
43
+
44
+ 1. Exception to Section 3 of the GNU GPL.
45
+
46
+ You may convey a covered work under sections 3 and 4 of this License
47
+ without being bound by section 3 of the GNU GPL.
48
+
49
+ 2. Conveying Modified Versions.
50
+
51
+ If you modify a copy of the Library, and, in your modifications, a
52
+ facility refers to a function or data to be supplied by an Application
53
+ that uses the facility (other than as an argument passed when the
54
+ facility is invoked), then you may convey a copy of the modified
55
+ version:
56
+
57
+ a) under this License, provided that you make a good faith effort to
58
+ ensure that, in the event an Application does not supply the
59
+ function or data, the facility still operates, and performs
60
+ whatever part of its purpose remains meaningful, or
61
+
62
+ b) under the GNU GPL, with none of the additional permissions of
63
+ this License applicable to that copy.
64
+
65
+ 3. Object Code Incorporating Material from Library Header Files.
66
+
67
+ The object code form of an Application may incorporate material from
68
+ a header file that is part of the Library. You may convey such object
69
+ code under terms of your choice, provided that, if the incorporated
70
+ material is not limited to numerical parameters, data structure
71
+ layouts and accessors, or small macros, inline functions and templates
72
+ (ten or fewer lines in length), you do both of the following:
73
+
74
+ a) Give prominent notice with each copy of the object code that the
75
+ Library is used in it and that the Library and its use are
76
+ covered by this License.
77
+
78
+ b) Accompany the object code with a copy of the GNU GPL and this license
79
+ document.
80
+
81
+ 4. Combined Works.
82
+
83
+ You may convey a Combined Work under terms of your choice that,
84
+ taken together, effectively do not restrict modification of the
85
+ portions of the Library contained in the Combined Work and reverse
86
+ engineering for debugging such modifications, if you also do each of
87
+ the following:
88
+
89
+ a) Give prominent notice with each copy of the Combined Work that
90
+ the Library is used in it and that the Library and its use are
91
+ covered by this License.
92
+
93
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
94
+ document.
95
+
96
+ c) For a Combined Work that displays copyright notices during
97
+ execution, include the copyright notice for the Library among
98
+ these notices, as well as a reference directing the user to the
99
+ copies of the GNU GPL and this license document.
100
+
101
+ d) Do one of the following:
102
+
103
+ 0) Convey the Minimal Corresponding Source under the terms of this
104
+ License, and the Corresponding Application Code in a form
105
+ suitable for, and under terms that permit, the user to
106
+ recombine or relink the Application with a modified version of
107
+ the Linked Version to produce a modified Combined Work, in the
108
+ manner specified by section 6 of the GNU GPL for conveying
109
+ Corresponding Source.
110
+
111
+ 1) Use a suitable shared library mechanism for linking with the
112
+ Library. A suitable mechanism is one that (a) uses at run time
113
+ a copy of the Library already present on the user's computer
114
+ system, and (b) will operate properly with a modified version
115
+ of the Library that is interface-compatible with the Linked
116
+ Version.
117
+
118
+ e) Provide Installation Information, but only if you would otherwise
119
+ be required to provide such information under section 6 of the
120
+ GNU GPL, and only to the extent that such information is
121
+ necessary to install and execute a modified version of the
122
+ Combined Work produced by recombining or relinking the
123
+ Application with a modified version of the Linked Version. (If
124
+ you use option 4d0, the Installation Information must accompany
125
+ the Minimal Corresponding Source and Corresponding Application
126
+ Code. If you use option 4d1, you must provide the Installation
127
+ Information in the manner specified by section 6 of the GNU GPL
128
+ for conveying Corresponding Source.)
129
+
130
+ 5. Combined Libraries.
131
+
132
+ You may place library facilities that are a work based on the
133
+ Library side by side in a single library together with other library
134
+ facilities that are not Applications and are not covered by this
135
+ License, and convey such a combined library under terms of your
136
+ choice, if you do both of the following:
137
+
138
+ a) Accompany the combined library with a copy of the same work based
139
+ on the Library, uncombined with any other library facilities,
140
+ conveyed under the terms of this License.
141
+
142
+ b) Give prominent notice with the combined library that part of it
143
+ is a work based on the Library, and explaining where to find the
144
+ accompanying uncombined form of the same work.
145
+
146
+ 6. Revised Versions of the GNU Lesser General Public License.
147
+
148
+ The Free Software Foundation may publish revised and/or new versions
149
+ of the GNU Lesser General Public License from time to time. Such new
150
+ versions will be similar in spirit to the present version, but may
151
+ differ in detail to address new problems or concerns.
152
+
153
+ Each version is given a distinguishing version number. If the
154
+ Library as you received it specifies that a certain numbered version
155
+ of the GNU Lesser General Public License "or any later version"
156
+ applies to it, you have the option of following the terms and
157
+ conditions either of that published version or of any later version
158
+ published by the Free Software Foundation. If the Library as you
159
+ received it does not specify a version number of the GNU Lesser
160
+ General Public License, you may choose any version of the GNU Lesser
161
+ General Public License ever published by the Free Software Foundation.
162
+
163
+ If the Library as you received it specifies that a proxy can decide
164
+ whether future versions of the GNU Lesser General Public License shall
165
+ apply, that proxy's public statement of acceptance of any version is
166
+ permanent authorization for you to choose that version for the
167
+ Library.
package/README.md CHANGED
@@ -18,3 +18,7 @@ Main idea is to create type descriptions by whose schemes in the future it will
18
18
  ## Validator
19
19
 
20
20
  todo
21
+
22
+
23
+ #### License
24
+ This project is licensed under the **LGPL-3.0** License – see the [LICENSE](LICENSE) file for details.
@@ -4,6 +4,8 @@ exports.createFakeGeneratorHost = createFakeGeneratorHost;
4
4
  exports.generateFakeData = generateFakeData;
5
5
  const fakerModule = require("@faker-js/faker");
6
6
  const as_array_1 = require("@tsofist/stem/lib/as-array");
7
+ const native_date_1 = require("@tsofist/stem/lib/cldr/date-time/native-date");
8
+ const types_1 = require("@tsofist/stem/lib/cldr/date-time/types");
7
9
  const entries_1 = require("@tsofist/stem/lib/object/entries");
8
10
  const substr_1 = require("@tsofist/stem/lib/string/substr");
9
11
  const json_schema_faker_1 = require("json-schema-faker");
@@ -33,9 +35,6 @@ function createFakeGeneratorHost(source, options = {}) {
33
35
  ...options,
34
36
  resolveJsonPath: false,
35
37
  });
36
- generator.format('iso-time', () => {
37
- return (0, substr_1.substr)(faker.date.anytime(), 'T', '.');
38
- });
39
38
  return {
40
39
  rebuild,
41
40
  generator,
@@ -81,6 +80,32 @@ const EmbeddedModules = [
81
80
  return `${origin}/${pathParts.join('/')}`;
82
81
  },
83
82
  },
83
+ cldr: {
84
+ /** FakerModule: cldr.localDateTime */
85
+ localDateTime() {
86
+ return (0, native_date_1.dateToTypedString)(new Date(), types_1.ISODateTimeType.LocalDateTime, true);
87
+ },
88
+ /** FakerModule: cldr.localDate */
89
+ localDate() {
90
+ return (0, native_date_1.dateToTypedString)(new Date(), types_1.ISODateTimeType.LocalDate);
91
+ },
92
+ /** FakerModule: cldr.localTime */
93
+ localTime() {
94
+ return (0, native_date_1.dateToTypedString)(new Date(), types_1.ISODateTimeType.LocalTime, true);
95
+ },
96
+ /** FakerModule: cldr.zuluDateTime */
97
+ zuluDateTime() {
98
+ return (0, native_date_1.dateToTypedString)(new Date(), types_1.ISODateTimeType.ZuluDateTime);
99
+ },
100
+ /** FakerModule: cldr.zuluDate */
101
+ zuluDate() {
102
+ return (0, native_date_1.dateToTypedString)(new Date(), types_1.ISODateTimeType.ZuluDate);
103
+ },
104
+ /** FakerModule: cldr.zuluTime */
105
+ zuluTime() {
106
+ return (0, native_date_1.dateToTypedString)(new Date(), types_1.ISODateTimeType.ZuluTime);
107
+ },
108
+ },
84
109
  }),
85
110
  ];
86
111
  function proxyFakerDateModule(obj) {
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const guards_1 = require("@tsofist/stem/lib/number/guards");
3
+ const guards_1 = require("@tsofist/stem/lib/cldr/date-time/guards");
4
+ const types_1 = require("@tsofist/stem/lib/cldr/date-time/types");
5
+ const enum_1 = require("@tsofist/stem/lib/enum");
6
+ const guards_2 = require("@tsofist/stem/lib/number/guards");
7
+ const entries_1 = require("@tsofist/stem/lib/object/entries");
8
+ const camel_1 = require("@tsofist/stem/lib/string/case/camel");
4
9
  const fake_generator_1 = require("./fake-generator");
5
10
  const validator_1 = require("./validator");
6
11
  /* eslint-disable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-argument */
@@ -122,7 +127,7 @@ describe('generateFakeData', () => {
122
127
  },
123
128
  time: {
124
129
  type: 'string',
125
- format: 'iso-time',
130
+ faker: 'cldr.localTime',
126
131
  },
127
132
  refs: {
128
133
  type: 'object',
@@ -156,16 +161,35 @@ describe('generateFakeData', () => {
156
161
  },
157
162
  },
158
163
  };
164
+ const testSchema4 = {
165
+ $schema: 'http://json-schema.org/draft-07/schema#',
166
+ $id: 'test-4',
167
+ definitions: {
168
+ CLDR: {
169
+ type: 'object',
170
+ properties: {},
171
+ },
172
+ },
173
+ };
174
+ {
175
+ for (const name of (0, enum_1.extractEnumKeys)(types_1.ISODateTimeType)) {
176
+ const method = (0, camel_1.camelCase)(name);
177
+ testSchema4.definitions.CLDR.properties[name] = {
178
+ type: 'string',
179
+ faker: `cldr.${method}`,
180
+ };
181
+ }
182
+ }
159
183
  let validator;
160
184
  beforeEach(() => {
161
- validator = (0, validator_1.createSchemaForgeValidator)({ schemas: [testSchema1, testSchema2, testSchema3] }, true);
185
+ validator = (0, validator_1.createSchemaForgeValidator)({ schemas: [testSchema1, testSchema2, testSchema3, testSchema4] }, true);
162
186
  });
163
187
  it('default behavior', async () => {
164
188
  {
165
189
  const data = await (0, fake_generator_1.generateFakeData)(validator, 'test-1#/definitions/Int');
166
190
  expect(data).toBeDefined();
167
191
  expect(data).toBeGreaterThanOrEqual(0);
168
- expect((0, guards_1.isInt)(data)).toStrictEqual(true);
192
+ expect((0, guards_2.isInt)(data)).toStrictEqual(true);
169
193
  }
170
194
  {
171
195
  const data = await (0, fake_generator_1.generateFakeData)(validator, 'test-2#/definitions/Url');
@@ -178,7 +202,7 @@ describe('generateFakeData', () => {
178
202
  const data = await (0, fake_generator_1.generateFakeData)(validator, source);
179
203
  expect(data).toBeDefined();
180
204
  expect(data).toBeGreaterThanOrEqual(0);
181
- expect((0, guards_1.isInt)(data)).toStrictEqual(true);
205
+ expect((0, guards_2.isInt)(data)).toStrictEqual(true);
182
206
  expect(validator.validateBySchema(source, data).valid).toStrictEqual(true);
183
207
  });
184
208
  it('complex, nested data should be handled correctly', async () => {
@@ -234,4 +258,21 @@ describe('generateFakeData', () => {
234
258
  expect(validator.validateBySchema(source, data).valid).toStrictEqual(true);
235
259
  }
236
260
  });
261
+ it('should handle CLDR formats', async () => {
262
+ const data = await (0, fake_generator_1.generateFakeData)(validator, 'test-4#/definitions/CLDR');
263
+ const guards = {
264
+ [types_1.ISODateTimeType.LocalDate]: guards_1.isLocalISODateString,
265
+ [types_1.ISODateTimeType.LocalTime]: guards_1.isLocalISOTimeString,
266
+ [types_1.ISODateTimeType.LocalDateTime]: guards_1.isLocalISODateTimeString,
267
+ [types_1.ISODateTimeType.ZuluDate]: guards_1.isZuluISODateString,
268
+ [types_1.ISODateTimeType.ZuluTime]: guards_1.isZuluISOTimeString,
269
+ [types_1.ISODateTimeType.ZuluDateTime]: guards_1.isZuluISODateTimeString,
270
+ };
271
+ expect(data).toBeDefined();
272
+ for (const [name, value] of (0, entries_1.entries)(data)) {
273
+ const g = guards[types_1.ISODateTimeType[name]];
274
+ expect(g).toBeDefined();
275
+ expect(g(value)).toStrictEqual(true);
276
+ }
277
+ });
237
278
  });
@@ -162,7 +162,7 @@ function processAPIInterfaceDeclaration(statement, context) {
162
162
  const interfaceDesc = (0, tsc_1.readJSDocDescription)(statement, allowUseFallbackDescription);
163
163
  const interfaceDeprecated = (0, typescript_1.getTextOfJSDocComment)((0, typescript_1.getJSDocDeprecatedTag)(statement)?.comment);
164
164
  function onSignature(method, memberName, memberDescription, deprecated) {
165
- const minArgsNum = method.parameters.filter((param) => !param.questionToken).length;
165
+ const minArgsNum = countRequiredParams(method.parameters);
166
166
  const maxArgsNum = method.parameters.length;
167
167
  const argsNames = [];
168
168
  const argsTypesText = method.parameters
@@ -199,7 +199,7 @@ function processAPIInterfaceDeclaration(statement, context) {
199
199
  ` * @description Arguments for ${comment} ${argsNames.length ? `(${argsNamesText})` : ''}`,
200
200
  ` * @comment ${comment}`,
201
201
  ` *`,
202
- minArgsNum > 0 ? ` * @minItems ${minArgsNum}` : ` *`,
202
+ ` * @minItems ${minArgsNum}`,
203
203
  ` * @maxItems ${maxArgsNum}`,
204
204
  ` */`,
205
205
  `export type ${definitionNameArgs} = readonly [\n${argsTypesText}\n];`,
@@ -290,3 +290,14 @@ function processAPIInterfaceDeclaration(statement, context) {
290
290
  context.fileContent.push(interfaceText.stringify('\n'));
291
291
  }
292
292
  }
293
+ function countRequiredParams(params) {
294
+ let result = 0;
295
+ for (const param of params) {
296
+ if (param.questionToken != null)
297
+ break;
298
+ if (param.dotDotDotToken != null)
299
+ (0, error_1.raise)('Rest arguments are not supported yet');
300
+ result++;
301
+ }
302
+ return result;
303
+ }
@@ -276,6 +276,38 @@ describe('generator for a3', () => {
276
276
  expect(props.propWithGeneric).toBeTruthy();
277
277
  expect(props.propWithGeneric.$ref).toStrictEqual('#/definitions/NonEmptyString');
278
278
  });
279
+ it('optional args in API methods should works', () => {
280
+ {
281
+ const props = forgeSchemaResult.schema.definitions?.API_methodG0_Args;
282
+ expect(props).toBeTruthy();
283
+ expect(props.minItems).toStrictEqual(0);
284
+ expect(props.maxItems).toStrictEqual(1);
285
+ }
286
+ {
287
+ const props = forgeSchemaResult.schema.definitions?.API_methodG1_Args;
288
+ expect(props).toBeTruthy();
289
+ expect(props.minItems).toStrictEqual(0);
290
+ expect(props.maxItems).toStrictEqual(2);
291
+ }
292
+ {
293
+ const props = forgeSchemaResult.schema.definitions?.API_methodG2_Args;
294
+ expect(props).toBeTruthy();
295
+ expect(props.minItems).toStrictEqual(1);
296
+ expect(props.maxItems).toStrictEqual(2);
297
+ }
298
+ // {
299
+ // const props = forgeSchemaResult!.schema.definitions?.API_methodG3_Args;
300
+ // expect(props).toBeTruthy();
301
+ // expect(props.minItems).toStrictEqual(0);
302
+ // expect(props.maxItems).toBeUndefined();
303
+ // }
304
+ // {
305
+ // const props = forgeSchemaResult!.schema.definitions?.API_methodG4_Args;
306
+ // expect(props).toBeTruthy();
307
+ // expect(props.minItems).toStrictEqual(1);
308
+ // expect(props.maxItems).toBeUndefined();
309
+ // }
310
+ });
279
311
  it('extends should works', () => {
280
312
  const props = forgeSchemaResult.schema.definitions?.BAPI_InterfaceDeclaration.properties;
281
313
  expect(props).toBeTruthy();
@@ -290,6 +322,9 @@ describe('generator for a3', () => {
290
322
  'methodE1',
291
323
  'methodE2',
292
324
  'methodF',
325
+ 'methodG0',
326
+ 'methodG1',
327
+ 'methodG2',
293
328
  'methodY',
294
329
  ]);
295
330
  });
@@ -4,7 +4,22 @@ import { SchemaDefinitionInfo, SchemaForgeDefinitionRef, SchemaForgeValidationCo
4
4
  export type SchemaForgeValidator = ReturnType<typeof createSchemaForgeValidator>;
5
5
  export declare function createSchemaForgeValidator(engineOptions?: Options, useAdditionalFormats?: boolean): {
6
6
  readonly rev: number;
7
- clone: (options?: Omit<Options, "schemas">, onSchema?: (value: SchemaObject) => SchemaObject) => any;
7
+ clone: (options?: Omit<Options, "schemas">, onSchema?: (value: SchemaObject) => SchemaObject) => {
8
+ readonly rev: number;
9
+ clone: /*elided*/ any;
10
+ removeSchema: (schemaIdentity?: AnySchema | SchemaForgeDefinitionRef | RegExp) => void;
11
+ hasValidator: (ref: SchemaForgeDefinitionRef) => boolean;
12
+ getValidator: <TData = unknown>(ref: SchemaForgeDefinitionRef | AnySchema) => SchemaForgeValidationFunction<TData> | undefined;
13
+ getSchema: (ref: SchemaForgeDefinitionRef) => AnySchema | undefined;
14
+ getRootSchema: (schemaId: string) => (SchemaObject & {
15
+ definitions?: AnySchema;
16
+ }) | undefined;
17
+ addSchema: (schema: Schema[]) => void;
18
+ validateBySchema: (ref: SchemaForgeDefinitionRef, data: unknown, instancePath?: string) => SchemaForgeValidationResult;
19
+ checkBySchema: <T = unknown, Ctx extends SchemaForgeValidationContextBase = SchemaForgeValidationContextBase>(ref: SchemaForgeDefinitionRef, data: unknown, context?: Ctx) => data is T;
20
+ validationErrorsText: (errors: Nullable<SchemaForgeValidationReport>, options?: ErrorsTextOptions) => string;
21
+ listDefinitions: (predicate?: (info: SchemaDefinitionInfo) => boolean) => SchemaDefinitionInfo[];
22
+ };
8
23
  removeSchema: (schemaIdentity?: AnySchema | SchemaForgeDefinitionRef | RegExp) => void;
9
24
  hasValidator: (ref: SchemaForgeDefinitionRef) => boolean;
10
25
  getValidator: <TData = unknown>(ref: SchemaForgeDefinitionRef | AnySchema) => SchemaForgeValidationFunction<TData> | undefined;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tsofist/schema-forge",
3
- "version": "1.33.0",
3
+ "version": "2.0.0",
4
4
  "description": "Generate JSON schema from TypeScript types",
5
5
  "author": "Andrew Berdnikov <tsofistgudmen@gmail.com>",
6
- "license": "MIT",
6
+ "license": "LGPL-3.0",
7
7
  "main": "lib/types",
8
8
  "types": "lib/types",
9
9
  "type": "commonjs",
@@ -20,8 +20,8 @@
20
20
  "test:watch": "jest --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@faker-js/faker": "^9.2.0",
24
- "@tsofist/stem": "^1.44.1",
23
+ "@faker-js/faker": "^9.4.0",
24
+ "@tsofist/stem": "^2.0.0",
25
25
  "ajv": "^8.17.1",
26
26
  "ajv-formats": "^3.0.1",
27
27
  "json-schema-faker": "^0.5.8",
@@ -29,15 +29,15 @@
29
29
  "tslib": "^2.8.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@tsofist/web-buddy": "^1.20.1",
32
+ "@tsofist/web-buddy": "^1.21.0",
33
33
  "@types/jest": "^29.5.14",
34
- "@types/node": "^20.17.8",
34
+ "@types/node": "^20.17.17",
35
35
  "@types/supertest": "^6.0.2",
36
36
  "jest": "^29.7.0",
37
37
  "rimraf": "^6.0.1",
38
38
  "supertest": "^7.0.0",
39
39
  "ts-jest": "^29.2.5",
40
- "typescript": "~5.6.3"
40
+ "typescript": "~5.7.3"
41
41
  },
42
42
  "publishConfig": {
43
43
  "registry": "https://registry.npmjs.org/",