@biorate/sequelize 2.0.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@ exports.SequelizeConnector = exports.Op = exports.Transaction = exports.QueryTyp
24
24
  const inversion_1 = require("@biorate/inversion");
25
25
  const connector_1 = require("@biorate/connector");
26
26
  const sequelize_typescript_1 = require("sequelize-typescript");
27
- const lodash_1 = require("lodash");
27
+ const lodash_es_1 = require("lodash-es");
28
28
  const errors_1 = require("./errors");
29
29
  __exportStar(require("./errors"), exports);
30
30
  __exportStar(require("./interfaces"), exports);
@@ -53,7 +53,7 @@ let SequelizeConnector = class SequelizeConnector extends connector_1.Connector
53
53
  }
54
54
  async query(sql, options = {}) {
55
55
  const name = options?.connection;
56
- (0, lodash_1.omit)(options, 'connection');
56
+ (0, lodash_es_1.omit)(options, 'connection');
57
57
  const connection = this.connection(name);
58
58
  if (!connection)
59
59
  throw new errors_1.UndefinedConnectionError(name);
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { injectable } from '@biorate/inversion';
8
8
  import { Connector } from '@biorate/connector';
9
9
  import { Sequelize } from 'sequelize-typescript';
10
- import { omit } from 'lodash';
10
+ import { omit } from 'lodash-es';
11
11
  import { SequelizeCantConnectError, UndefinedConnectionError } from './errors.js';
12
12
  export * from './errors.js';
13
13
  export * from './interfaces.js';
@@ -9,7 +9,7 @@ export { QueryTypes, QueryOptions, QueryOptionsWithType, Transaction, Transactio
9
9
  export declare class SequelizeConnector extends Connector<ISequelizeConfig, ISequelizeConnection> {
10
10
  private '#connections';
11
11
  private '#current';
12
- protected readonly namespace = "Sequelize";
12
+ protected readonly namespace: string;
13
13
  protected readonly models: {
14
14
  [key: string]: IModels;
15
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biorate/sequelize",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "Sequelize ORM connector",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -18,21 +18,6 @@
18
18
  "README.md",
19
19
  "LICENSE"
20
20
  ],
21
- "scripts": {
22
- "clean": "cleanup dist",
23
- "build:cjs": "npx tsc -p ./tsconfig.build.cjs.json",
24
- "build:esm": "npx tsc -p ./tsconfig.build.esm.json",
25
- "build:types": "npx tsc -p ./tsconfig.build.types.json",
26
- "build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
27
- "postbuild:cjs": "node ../../../.scripts/write-package-type.js dist/cjs commonjs",
28
- "postbuild:esm": "tsc-esm-fix --tsconfig=./tsconfig.build.esm.json --target=./dist/esm && node ../../../.scripts/write-package-type.js dist/esm module",
29
- "format": "prettier --check src",
30
- "lint": "eslint src --ext .ts",
31
- "format:fix": "prettier --write src",
32
- "lint:fix": "eslint src --ext .ts --fix",
33
- "test": "npx vitest run --coverage",
34
- "prepublishOnly": "pnpm run build"
35
- },
36
21
  "repository": {
37
22
  "type": "git",
38
23
  "url": "git+https://github.com/biorate/core.git",
@@ -48,18 +33,32 @@
48
33
  ],
49
34
  "author": "llevkin",
50
35
  "license": "MIT",
51
- "gitHead": "e4a489040e6c207cd1d27640d4cdc7a1dae4e8d0",
36
+ "gitHead": "fdd6dbd61368f7a9f9deb3b72243b19ecb3767a6",
52
37
  "peerDependencies": {
53
38
  "sequelize": "6.37.3",
54
39
  "sequelize-typescript": "2.1.6"
55
40
  },
56
41
  "dependencies": {
57
- "@biorate/config": "3.0.1",
58
- "@biorate/connector": "3.0.1",
59
- "@biorate/errors": "3.0.0",
60
- "@biorate/inversion": "3.0.1"
42
+ "@biorate/config": "3.2.0",
43
+ "@biorate/errors": "3.1.0",
44
+ "@biorate/connector": "3.1.0",
45
+ "@biorate/inversion": "3.1.0"
61
46
  },
62
47
  "devDependencies": {
63
48
  "sqlite3": "5.0.7"
49
+ },
50
+ "scripts": {
51
+ "clean": "cleanup dist",
52
+ "build:cjs": "npx tsc -p ./tsconfig.build.cjs.json",
53
+ "build:esm": "npx tsc -p ./tsconfig.build.esm.json",
54
+ "build:types": "npx tsc -p ./tsconfig.build.types.json",
55
+ "build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
56
+ "postbuild:cjs": "node ../../../.scripts/write-package-type.js dist/cjs commonjs",
57
+ "postbuild:esm": "tsc-esm-fix --tsconfig=./tsconfig.build.esm.json --target=./dist/esm && node ../../../.scripts/write-package-type.js dist/esm module",
58
+ "format": "prettier --check src",
59
+ "lint": "eslint src --ext .ts",
60
+ "format:fix": "prettier --write src",
61
+ "lint:fix": "eslint src --ext .ts --fix",
62
+ "test": "npx vitest run --coverage"
64
63
  }
65
- }
64
+ }