@gapi/sequelize 1.8.169 → 1.8.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -5
- package/dist/sequelize.interface.d.ts +2 -2
- package/eslint.config.mjs +38 -0
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/src/sequelize.interface.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -13,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
17
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
18
|
};
|
|
15
19
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
21
|
};
|
|
18
22
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19
23
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -49,9 +53,9 @@ let SequelizeModule = SequelizeModule_1 = class SequelizeModule {
|
|
|
49
53
|
};
|
|
50
54
|
}
|
|
51
55
|
};
|
|
52
|
-
SequelizeModule = SequelizeModule_1 = __decorate([
|
|
53
|
-
core_1.Module()
|
|
54
|
-
], SequelizeModule);
|
|
55
56
|
exports.SequelizeModule = SequelizeModule;
|
|
57
|
+
exports.SequelizeModule = SequelizeModule = SequelizeModule_1 = __decorate([
|
|
58
|
+
(0, core_1.Module)()
|
|
59
|
+
], SequelizeModule);
|
|
56
60
|
__exportStar(require("./sequelize.interface"), exports);
|
|
57
61
|
__exportStar(require("./sequelize-config.service"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SequelizeOptions } from 'sequelize-typescript';
|
|
2
1
|
import { Dialect } from 'sequelize/types';
|
|
2
|
+
import { SequelizeOptions } from 'sequelize-typescript';
|
|
3
3
|
export declare class SequelizeConfig implements SequelizeOptions {
|
|
4
4
|
dialect?: Dialect;
|
|
5
5
|
host?: string;
|
|
@@ -13,6 +13,6 @@ export declare class SequelizeConfig implements SequelizeOptions {
|
|
|
13
13
|
database?: string;
|
|
14
14
|
force?: boolean;
|
|
15
15
|
modifyFunctions?: {
|
|
16
|
-
sync?: () =>
|
|
16
|
+
sync?: () => void;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
2
|
+
import tsParser from '@typescript-eslint/parser';
|
|
3
|
+
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
4
|
+
import prettierPlugin from 'eslint-plugin-prettier';
|
|
5
|
+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
6
|
+
import prettierConfig from 'eslint-config-prettier';
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
globalIgnores(['dist/*']),
|
|
10
|
+
{
|
|
11
|
+
files: ['./src/**/*.ts', './src/**/*.tsx'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parser: tsParser,
|
|
14
|
+
ecmaVersion: 2018,
|
|
15
|
+
sourceType: 'module',
|
|
16
|
+
},
|
|
17
|
+
plugins: {
|
|
18
|
+
'@typescript-eslint': tsPlugin,
|
|
19
|
+
prettier: prettierPlugin,
|
|
20
|
+
'simple-import-sort': simpleImportSort, // ✅ MUST MATCH RULE PREFIX
|
|
21
|
+
},
|
|
22
|
+
rules: {
|
|
23
|
+
...tsPlugin.configs.recommended.rules,
|
|
24
|
+
...prettierConfig.rules,
|
|
25
|
+
|
|
26
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
27
|
+
'@typescript-eslint/camelcase': 'off',
|
|
28
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
29
|
+
|
|
30
|
+
'simple-import-sort/imports': 'error',
|
|
31
|
+
'simple-import-sort/exports': 'error',
|
|
32
|
+
'sort-imports': 'off',
|
|
33
|
+
'import/order': 'off',
|
|
34
|
+
|
|
35
|
+
'prettier/prettier': 'error',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/sequelize",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.171",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi-sequelize.git"
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"sequelize-typescript": "^1.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@rxdi/core": "^0.7.
|
|
39
|
+
"@rxdi/core": "^0.7.194"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Module, ModuleWithServices } from '@rxdi/core';
|
|
2
2
|
import { Sequelize } from 'sequelize-typescript';
|
|
3
3
|
|
|
4
|
-
import { SEQUELIZE } from './sequelize-config.service';
|
|
5
4
|
import { SequelizeConfig } from './sequelize.interface';
|
|
5
|
+
import { SEQUELIZE } from './sequelize-config.service';
|
|
6
6
|
|
|
7
7
|
@Module()
|
|
8
8
|
export class SequelizeModule {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { SequelizeOptions } from 'sequelize-typescript';
|
|
3
2
|
import { Dialect } from 'sequelize/types';
|
|
3
|
+
import { SequelizeOptions } from 'sequelize-typescript';
|
|
4
4
|
|
|
5
5
|
export class SequelizeConfig implements SequelizeOptions {
|
|
6
6
|
dialect?: Dialect;
|
|
@@ -15,6 +15,6 @@ export class SequelizeConfig implements SequelizeOptions {
|
|
|
15
15
|
database?: string;
|
|
16
16
|
force?: boolean;
|
|
17
17
|
modifyFunctions?: {
|
|
18
|
-
sync?: () =>
|
|
18
|
+
sync?: () => void;
|
|
19
19
|
} = {};
|
|
20
20
|
}
|