sequelize-typescript-generator 13.2.0 → 13.3.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/README.md +42 -3
- package/build/bin/cli.js +2 -2
- package/build/builders/ModelBuilder.d.ts +2 -1
- package/build/builders/ModelBuilder.js +8 -3
- package/build/builders/nativeWiring.d.ts +2 -1
- package/build/builders/nativeWiring.js +9 -3
- package/build/builders/sharedTypesIndexExports.d.ts +11 -0
- package/build/builders/sharedTypesIndexExports.js +15 -0
- package/build/builders/utils.d.ts +7 -0
- package/build/builders/utils.js +9 -0
- package/build/dialects/Dialect.js +2 -17
- package/build/dialects/tableFilters.d.ts +31 -0
- package/build/dialects/tableFilters.js +45 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* [Prerequisites](#prerequisites)
|
|
12
12
|
* [Installation](#installation)
|
|
13
13
|
* [CLI usage](#cli-usage)
|
|
14
|
+
* [Filtering tables](#filtering-tables)
|
|
14
15
|
* [Output formats](#output-formats)
|
|
15
16
|
* [Native format](#native-format)
|
|
16
17
|
* [Decorators format](#decorators-format)
|
|
@@ -130,8 +131,12 @@ Options:
|
|
|
130
131
|
- mssql [string] [required]
|
|
131
132
|
-u, --username Database username [string]
|
|
132
133
|
-x, --password Database password [string]
|
|
133
|
-
-t, --tables Comma-separated names of tables to process
|
|
134
|
-
|
|
134
|
+
-t, --tables Comma-separated names of tables to process. Names
|
|
135
|
+
may contain * wildcards (e.g. 'user_*'), matched
|
|
136
|
+
case-insensitively [string]
|
|
137
|
+
-T, --skip-tables Comma-separated names of tables to skip. Names may
|
|
138
|
+
contain * wildcards (e.g. 'audit_*,tmp_*'),
|
|
139
|
+
matched case-insensitively [string]
|
|
135
140
|
-i, --indices Include index annotations in the generated models
|
|
136
141
|
[boolean]
|
|
137
142
|
-o, --out-dir Output directory. Default:
|
|
@@ -198,6 +203,24 @@ Global usage example:
|
|
|
198
203
|
stg -D mysql -h localhost -p 3306 -d myDatabase -u myUsername -x myPassword --indices --dialect-options-file path/to/dialectOptions.json --case camel --out-dir models --clean
|
|
199
204
|
```
|
|
200
205
|
|
|
206
|
+
### Filtering tables
|
|
207
|
+
`-t` / `--tables` generates only the listed tables and `-T` / `--skip-tables` generates every table except the
|
|
208
|
+
listed ones. Both take a comma-separated list whose entries are exact table names or patterns containing `*`
|
|
209
|
+
wildcards, freely mixed. A `*` matches any sequence of characters, including none. Names and patterns are
|
|
210
|
+
matched case-insensitively. When both options are given, a table is generated if it matches `--tables` and
|
|
211
|
+
does not match `--skip-tables`. Quote the list so the shell does not expand the `*`:
|
|
212
|
+
|
|
213
|
+
```shell
|
|
214
|
+
# Only the users table and every table starting with "order_"
|
|
215
|
+
stg -D postgres -d myDatabase -u myUsername -x myPassword -t 'users,order_*'
|
|
216
|
+
|
|
217
|
+
# Every table except the audit and temporary ones
|
|
218
|
+
stg -D postgres -d myDatabase -u myUsername -x myPassword -T 'audit_*,tmp_*'
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
The same entries are accepted by the `tables` and `skipTables` metadata options in
|
|
222
|
+
[programmatic usage](#programmatic-usage). On MySQL and MariaDB, filters apply to views as well.
|
|
223
|
+
|
|
201
224
|
## Output formats
|
|
202
225
|
The generator emits models in one of two formats, selected with `-F` / `--format` (or the `format`
|
|
203
226
|
option in [programmatic usage](#programmatic-usage)):
|
|
@@ -302,6 +325,22 @@ export function initModels(sequelize: Sequelize) {
|
|
|
302
325
|
export type Models = ReturnType<typeof initModels>;
|
|
303
326
|
```
|
|
304
327
|
|
|
328
|
+
The `index.ts` barrel re-exports every model file and `initModels`, plus the shared type files emitted
|
|
329
|
+
next to the models whenever they are generated: `jsonType.ts` (the `Json` type of JSON columns) and
|
|
330
|
+
`enums.ts` (the [enum](#enums) shared types). Shared type files are re-exported type-only, so the barrel
|
|
331
|
+
stays safe under `isolatedModules` and `verbatimModuleSyntax`:
|
|
332
|
+
|
|
333
|
+
```ts
|
|
334
|
+
export * from "./races";
|
|
335
|
+
export * from "./units";
|
|
336
|
+
// ... other models
|
|
337
|
+
export type * from "./jsonType";
|
|
338
|
+
export type * from "./enums";
|
|
339
|
+
export * from "./initModels";
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
The decorators format emits the same barrel without the `initModels` re-export.
|
|
343
|
+
|
|
305
344
|
Wire the models against a `Sequelize` instance and use them straight away:
|
|
306
345
|
|
|
307
346
|
```ts
|
|
@@ -1626,7 +1665,7 @@ export type PlanTier = "free" | "pro" | "enterprise";
|
|
|
1626
1665
|
```
|
|
1627
1666
|
|
|
1628
1667
|
Models import the shared types they use with a type-only import (`import type { PlanTier } from "./enums";`)
|
|
1629
|
-
and type enum columns with them. The data type is `ENUM` with the database labels in database order,
|
|
1668
|
+
and type enum columns with them; the `index.ts` barrel re-exports them (`export type * from "./enums";`). The data type is `ENUM` with the database labels in database order,
|
|
1630
1669
|
and enum arrays are typed as arrays of the shared type with an `ARRAY` of `ENUM` data type:
|
|
1631
1670
|
|
|
1632
1671
|
```ts
|
package/build/bin/cli.js
CHANGED
|
@@ -54,12 +54,12 @@ export const cli = async () => {
|
|
|
54
54
|
.option('t', {
|
|
55
55
|
alias: aliasesMap.TABLES,
|
|
56
56
|
string: true,
|
|
57
|
-
describe: `Comma-separated names of tables to process`,
|
|
57
|
+
describe: `Comma-separated names of tables to process. Names may contain * wildcards (e.g. 'user_*'), matched case-insensitively`,
|
|
58
58
|
})
|
|
59
59
|
.option('T', {
|
|
60
60
|
alias: aliasesMap.SKIP_TABLES,
|
|
61
61
|
string: true,
|
|
62
|
-
describe: `Comma-separated names of tables to skip`,
|
|
62
|
+
describe: `Comma-separated names of tables to skip. Names may contain * wildcards (e.g. 'audit_*,tmp_*'), matched case-insensitively`,
|
|
63
63
|
})
|
|
64
64
|
.option('i', {
|
|
65
65
|
alias: aliasesMap.INDICES,
|
|
@@ -54,7 +54,8 @@ export declare class ModelBuilder extends Builder {
|
|
|
54
54
|
*/
|
|
55
55
|
private static buildTableClassDeclaration;
|
|
56
56
|
/**
|
|
57
|
-
* Build main index file
|
|
57
|
+
* Build main index file: every model file, then the shared type files the
|
|
58
|
+
* models use (type-only)
|
|
58
59
|
* @param {ITableMetadata[]} tablesMetadata
|
|
59
60
|
* @returns {string}
|
|
60
61
|
*/
|
|
@@ -13,6 +13,7 @@ import { attachColumnCommentJsDoc, buildDataTypeExpression, nodeToString, create
|
|
|
13
13
|
import { buildJsonTypeImport, JSON_SUPPORT_FILE_NAME, JSON_TYPE_NAME, renderJsonSupportFile, tableHasJsonColumn, tablesHaveJsonColumn, warnJsonSupportFileNameCollision, } from './jsonSupport.js';
|
|
14
14
|
import { assignSharedEnumTypeNames, buildEnumColumnTypeNode, buildEnumTypesImport, ENUM_SUPPORT_FILE_NAME, renderEnumSupportFile, tablesHaveSharedEnumType, warnEnumSupportFileNameCollision, } from './enumSupport.js';
|
|
15
15
|
import { indexTablesByModelName } from './nativeAttributes.js';
|
|
16
|
+
import { buildSharedTypesIndexExports } from './sharedTypesIndexExports.js';
|
|
16
17
|
import { collectSequelizeImports } from './nativeAssociations.js';
|
|
17
18
|
import { UNMAPPED_TS_TYPE_BY_FORMAT, warnUnmappedTypes } from './unmappedTypes.js';
|
|
18
19
|
import { loadTypeOverrides } from './typeOverridesParser.js';
|
|
@@ -315,13 +316,17 @@ export class ModelBuilder extends Builder {
|
|
|
315
316
|
return generatedCode;
|
|
316
317
|
}
|
|
317
318
|
/**
|
|
318
|
-
* Build main index file
|
|
319
|
+
* Build main index file: every model file, then the shared type files the
|
|
320
|
+
* models use (type-only)
|
|
319
321
|
* @param {ITableMetadata[]} tablesMetadata
|
|
320
322
|
* @returns {string}
|
|
321
323
|
*/
|
|
322
324
|
static buildIndexExports(tablesMetadata) {
|
|
323
|
-
return
|
|
324
|
-
.map(t =>
|
|
325
|
+
return [
|
|
326
|
+
...Object.values(tablesMetadata).map(t => generateIndexExport(t.name)),
|
|
327
|
+
...buildSharedTypesIndexExports(tablesMetadata),
|
|
328
|
+
]
|
|
329
|
+
.map(exportDeclaration => nodeToString(exportDeclaration))
|
|
325
330
|
.join('\n');
|
|
326
331
|
}
|
|
327
332
|
/**
|
|
@@ -44,7 +44,8 @@ export declare const buildModelsTypeAlias: () => ts.TypeAliasDeclaration;
|
|
|
44
44
|
*/
|
|
45
45
|
export declare const renderInitModelsFile: (tablesMetadata: ITablesMetadata, tablesByModel: ReadonlyMap<string, ITableMetadata>) => string;
|
|
46
46
|
/**
|
|
47
|
-
* Render the `index.ts` barrel re-exporting every model file
|
|
47
|
+
* Render the `index.ts` barrel re-exporting every model file, the shared type
|
|
48
|
+
* files the models use (type-only) and the wiring file.
|
|
48
49
|
* @param {ITablesMetadata} tablesMetadata
|
|
49
50
|
* @returns {string}
|
|
50
51
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
2
|
import { createGenericTypeReference, generateIndexExport, generateNamedImports, nodeToString, } from './utils.js';
|
|
3
3
|
import { resolveAssociationWiring, } from './nativeAssociations.js';
|
|
4
|
+
import { buildSharedTypesIndexExports } from './sharedTypesIndexExports.js';
|
|
4
5
|
/**
|
|
5
6
|
* Build the `<model>.initModel(sequelize);` statement wiring a model into the
|
|
6
7
|
* shared connection.
|
|
@@ -98,11 +99,16 @@ export const renderInitModelsFile = (tablesMetadata, tablesByModel) => {
|
|
|
98
99
|
return code;
|
|
99
100
|
};
|
|
100
101
|
/**
|
|
101
|
-
* Render the `index.ts` barrel re-exporting every model file
|
|
102
|
+
* Render the `index.ts` barrel re-exporting every model file, the shared type
|
|
103
|
+
* files the models use (type-only) and the wiring file.
|
|
102
104
|
* @param {ITablesMetadata} tablesMetadata
|
|
103
105
|
* @returns {string}
|
|
104
106
|
*/
|
|
105
107
|
export const renderNativeIndexFile = (tablesMetadata) => {
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
+
const exports = [
|
|
109
|
+
...Object.values(tablesMetadata).map(table => generateIndexExport(table.name)),
|
|
110
|
+
...buildSharedTypesIndexExports(tablesMetadata),
|
|
111
|
+
generateIndexExport('initModels'),
|
|
112
|
+
];
|
|
113
|
+
return exports.map(exportDeclaration => nodeToString(exportDeclaration)).join('\n');
|
|
108
114
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as ts from 'typescript';
|
|
2
|
+
import type { ITablesMetadata } from '../dialects/Dialect.js';
|
|
3
|
+
/**
|
|
4
|
+
* Build the type-only index re-exports of the shared type files emitted next to
|
|
5
|
+
* the models: the `Json` support file when a column uses the `Json` type, then
|
|
6
|
+
* the enum support file when a column uses an enum shared type. A file that is
|
|
7
|
+
* not emitted gets no re-export.
|
|
8
|
+
* @param {ITablesMetadata} tablesMetadata
|
|
9
|
+
* @returns {ts.ExportDeclaration[]}
|
|
10
|
+
*/
|
|
11
|
+
export declare const buildSharedTypesIndexExports: (tablesMetadata: ITablesMetadata) => ts.ExportDeclaration[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { generateTypeOnlyIndexExport } from './utils.js';
|
|
2
|
+
import { JSON_SUPPORT_FILE_BASENAME, tablesHaveJsonColumn } from './jsonSupport.js';
|
|
3
|
+
import { ENUM_SUPPORT_FILE_BASENAME, tablesHaveSharedEnumType } from './enumSupport.js';
|
|
4
|
+
/**
|
|
5
|
+
* Build the type-only index re-exports of the shared type files emitted next to
|
|
6
|
+
* the models: the `Json` support file when a column uses the `Json` type, then
|
|
7
|
+
* the enum support file when a column uses an enum shared type. A file that is
|
|
8
|
+
* not emitted gets no re-export.
|
|
9
|
+
* @param {ITablesMetadata} tablesMetadata
|
|
10
|
+
* @returns {ts.ExportDeclaration[]}
|
|
11
|
+
*/
|
|
12
|
+
export const buildSharedTypesIndexExports = (tablesMetadata) => [
|
|
13
|
+
...tablesHaveJsonColumn(tablesMetadata) ? [generateTypeOnlyIndexExport(JSON_SUPPORT_FILE_BASENAME)] : [],
|
|
14
|
+
...tablesHaveSharedEnumType(tablesMetadata) ? [generateTypeOnlyIndexExport(ENUM_SUPPORT_FILE_BASENAME)] : [],
|
|
15
|
+
];
|
|
@@ -111,6 +111,13 @@ export declare const buildDataTypeExpression: (dataType: ISequelizeDataType, nam
|
|
|
111
111
|
* @returns {ts.ExportDeclaration}
|
|
112
112
|
*/
|
|
113
113
|
export declare const generateIndexExport: (modelFileName: string) => ts.ExportDeclaration;
|
|
114
|
+
/**
|
|
115
|
+
* Generate the type-only re-export of a shared type file for the index file,
|
|
116
|
+
* e.g. `export type * from "./enums";`
|
|
117
|
+
* @param {string} fileBaseName
|
|
118
|
+
* @returns {ts.ExportDeclaration}
|
|
119
|
+
*/
|
|
120
|
+
export declare const generateTypeOnlyIndexExport: (fileBaseName: string) => ts.ExportDeclaration;
|
|
114
121
|
/**
|
|
115
122
|
* Generate object literal decorator
|
|
116
123
|
* @param {string} decoratorIdentifier
|
package/build/builders/utils.js
CHANGED
|
@@ -203,6 +203,15 @@ export const buildDataTypeExpression = (dataType, namespace) => {
|
|
|
203
203
|
export const generateIndexExport = (modelFileName) => {
|
|
204
204
|
return ts.factory.createExportDeclaration(undefined, false, undefined, ts.factory.createStringLiteral(`./${modelFileName}`));
|
|
205
205
|
};
|
|
206
|
+
/**
|
|
207
|
+
* Generate the type-only re-export of a shared type file for the index file,
|
|
208
|
+
* e.g. `export type * from "./enums";`
|
|
209
|
+
* @param {string} fileBaseName
|
|
210
|
+
* @returns {ts.ExportDeclaration}
|
|
211
|
+
*/
|
|
212
|
+
export const generateTypeOnlyIndexExport = (fileBaseName) => {
|
|
213
|
+
return ts.factory.createExportDeclaration(undefined, true, undefined, ts.factory.createStringLiteral(`./${fileBaseName}`));
|
|
214
|
+
};
|
|
206
215
|
/**
|
|
207
216
|
* Generate object literal decorator
|
|
208
217
|
* @param {string} decoratorIdentifier
|
|
@@ -5,6 +5,7 @@ import { applyForeignKeyConstraintsToColumns } from './foreignKeys.js';
|
|
|
5
5
|
import { discoverAssociations, isAssociationDiscoveryEnabled } from './associationDiscovery.js';
|
|
6
6
|
import { applyAssociationsFile } from './associationsFileMerge.js';
|
|
7
7
|
import { findParanoidColumn, resolveParanoidOption } from './paranoid.js';
|
|
8
|
+
import { filterTablesByName } from './tableFilters.js';
|
|
8
9
|
export const DIALECT_NAMES = [
|
|
9
10
|
'postgres',
|
|
10
11
|
'mysql',
|
|
@@ -56,23 +57,7 @@ export class Dialect {
|
|
|
56
57
|
if (paranoidResolution.warning) {
|
|
57
58
|
console.warn('[WARNING]', paranoidResolution.warning);
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
tables = tables
|
|
61
|
-
.filter(({ name }) => {
|
|
62
|
-
if (config.metadata?.tables?.length) {
|
|
63
|
-
return config.metadata.tables.includes(name.toLowerCase());
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
}).filter(({ name }) => {
|
|
69
|
-
if (config.metadata?.skipTables?.length) {
|
|
70
|
-
return !(config.metadata.skipTables.includes(name.toLowerCase()));
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
60
|
+
tables = filterTablesByName(tables, config.metadata);
|
|
76
61
|
for (const table of tables) {
|
|
77
62
|
const { name: tableName, comment: tableComment } = table;
|
|
78
63
|
const columnsMetadata = await this.fetchColumnsMetadata(connection, config, tableName);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IConfigMetadata } from '../config/IConfig.js';
|
|
2
|
+
/**
|
|
3
|
+
* Wildcard character in a table filter pattern, matching any sequence of
|
|
4
|
+
* characters, including the empty one.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TABLE_FILTER_WILDCARD = "*";
|
|
7
|
+
/**
|
|
8
|
+
* Compile a table filter entry into a case-insensitive, fully anchored regular
|
|
9
|
+
* expression. An entry without a wildcard matches only the exact name.
|
|
10
|
+
* @param {string} pattern Exact table name or pattern containing `*` wildcards
|
|
11
|
+
* @returns {RegExp}
|
|
12
|
+
*/
|
|
13
|
+
export declare const compileTableFilterPattern: (pattern: string) => RegExp;
|
|
14
|
+
/**
|
|
15
|
+
* Build a predicate reporting whether a table name matches at least one entry
|
|
16
|
+
* of a table filter. Entries are exact names or `*` wildcard patterns, matched
|
|
17
|
+
* case-insensitively.
|
|
18
|
+
* @param {string[]} patterns
|
|
19
|
+
* @returns {(name: string) => boolean}
|
|
20
|
+
*/
|
|
21
|
+
export declare const createTableNameMatcher: (patterns: string[]) => (name: string) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Keep the tables selected by the `tables` filter and not excluded by the
|
|
24
|
+
* `skipTables` filter. An absent or empty filter selects or excludes nothing.
|
|
25
|
+
* @param {T[]} tables
|
|
26
|
+
* @param {Pick<IConfigMetadata, 'tables' | 'skipTables'> | undefined} metadata
|
|
27
|
+
* @returns {T[]}
|
|
28
|
+
*/
|
|
29
|
+
export declare const filterTablesByName: <T extends {
|
|
30
|
+
name: string;
|
|
31
|
+
}>(tables: T[], metadata: Pick<IConfigMetadata, "tables" | "skipTables"> | undefined) => T[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wildcard character in a table filter pattern, matching any sequence of
|
|
3
|
+
* characters, including the empty one.
|
|
4
|
+
*/
|
|
5
|
+
export const TABLE_FILTER_WILDCARD = '*';
|
|
6
|
+
/**
|
|
7
|
+
* Compile a table filter entry into a case-insensitive, fully anchored regular
|
|
8
|
+
* expression. An entry without a wildcard matches only the exact name.
|
|
9
|
+
* @param {string} pattern Exact table name or pattern containing `*` wildcards
|
|
10
|
+
* @returns {RegExp}
|
|
11
|
+
*/
|
|
12
|
+
export const compileTableFilterPattern = (pattern) => {
|
|
13
|
+
const source = pattern
|
|
14
|
+
.split(TABLE_FILTER_WILDCARD)
|
|
15
|
+
.map(part => part.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'))
|
|
16
|
+
.join('.*');
|
|
17
|
+
return new RegExp(`^${source}$`, 'is');
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Build a predicate reporting whether a table name matches at least one entry
|
|
21
|
+
* of a table filter. Entries are exact names or `*` wildcard patterns, matched
|
|
22
|
+
* case-insensitively.
|
|
23
|
+
* @param {string[]} patterns
|
|
24
|
+
* @returns {(name: string) => boolean}
|
|
25
|
+
*/
|
|
26
|
+
export const createTableNameMatcher = (patterns) => {
|
|
27
|
+
const regexps = patterns.map(compileTableFilterPattern);
|
|
28
|
+
return (name) => regexps.some(regexp => regexp.test(name));
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Keep the tables selected by the `tables` filter and not excluded by the
|
|
32
|
+
* `skipTables` filter. An absent or empty filter selects or excludes nothing.
|
|
33
|
+
* @param {T[]} tables
|
|
34
|
+
* @param {Pick<IConfigMetadata, 'tables' | 'skipTables'> | undefined} metadata
|
|
35
|
+
* @returns {T[]}
|
|
36
|
+
*/
|
|
37
|
+
export const filterTablesByName = (tables, metadata) => {
|
|
38
|
+
const isIncluded = metadata?.tables?.length
|
|
39
|
+
? createTableNameMatcher(metadata.tables)
|
|
40
|
+
: () => true;
|
|
41
|
+
const isSkipped = metadata?.skipTables?.length
|
|
42
|
+
? createTableNameMatcher(metadata.skipTables)
|
|
43
|
+
: () => false;
|
|
44
|
+
return tables.filter(({ name }) => isIncluded(name) && !isSkipped(name));
|
|
45
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequelize-typescript-generator",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"description": "Automatically generate type-safe Sequelize models from your source database via the TypeScript compiler API — native or sequelize-typescript (decorators) format.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -49,30 +49,30 @@
|
|
|
49
49
|
"homepage": "https://github.com/spinlud/sequelize-typescript-generator.git#readme",
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/bluebird": "^3.5.42",
|
|
52
|
-
"@types/estree": "^1.0.
|
|
52
|
+
"@types/estree": "^1.0.10",
|
|
53
53
|
"@types/jest": "^30.0.0",
|
|
54
54
|
"@types/node": "^22.13.0",
|
|
55
55
|
"@types/pluralize": "0.0.33",
|
|
56
56
|
"@types/validator": "^13.12.2",
|
|
57
57
|
"@types/yargs": "^17.0.33",
|
|
58
58
|
"jest": "^30.5.1",
|
|
59
|
-
"mariadb": "^3.
|
|
60
|
-
"mysql2": "^3.
|
|
59
|
+
"mariadb": "^3.5.5",
|
|
60
|
+
"mysql2": "^3.24.6",
|
|
61
61
|
"pg": "^8.13.1",
|
|
62
62
|
"pg-hstore": "^2.3.4",
|
|
63
63
|
"reflect-metadata": "^0.2.1",
|
|
64
64
|
"sequelize-typescript": "^2.1.6",
|
|
65
65
|
"@vscode/sqlite3": "^5.1.14-vscode",
|
|
66
|
-
"tedious": "^20.
|
|
67
|
-
"ts-jest": "^29.4.
|
|
66
|
+
"tedious": "^20.4.1",
|
|
67
|
+
"ts-jest": "^29.4.15",
|
|
68
68
|
"tsx": "^4.23.13",
|
|
69
69
|
"wkx": "^0.5.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@stylistic/eslint-plugin": "^
|
|
73
|
-
"@typescript-eslint/parser": "^8.
|
|
74
|
-
"change-case": "^4.
|
|
75
|
-
"eslint": "^10.
|
|
72
|
+
"@stylistic/eslint-plugin": "^6.0.1",
|
|
73
|
+
"@typescript-eslint/parser": "^8.73.0",
|
|
74
|
+
"change-case": "^5.4.4",
|
|
75
|
+
"eslint": "^10.15.0",
|
|
76
76
|
"pluralize": "^8.0.0",
|
|
77
77
|
"sequelize": "^6.37.5",
|
|
78
78
|
"typescript": ">=5.7 <6.1",
|