Skip to content

Commit

Permalink
Fix sequelize/types/lib/hooks path (#1202)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump sequelize from 6.8.0 to 6.16.1

Bumps [sequelize](https://github.com/sequelize/sequelize) from 6.8.0 to 6.16.1.
- [Release notes](https://github.com/sequelize/sequelize/releases)
- [Commits](sequelize/sequelize@v6.8.0...v6.16.1)

---
updated-dependencies:
- dependency-name: sequelize
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix:  Cannot find module 'sequelize/types/lib/hooks'  wrong path fix

'types/lib' folder was removed in sequelize verstion >= 6

* test: [test/specs/instance.spec.ts] - Model.reload() method is return Model,
Deprecated: Operator Aliases

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mystylelee <[email protected]>
  • Loading branch information
3 people authored Feb 11, 2022
1 parent 9f1d033 commit ab45c14
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 97 deletions.
212 changes: 139 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"prettyjson": "1.2.1",
"reflect-metadata": "0.1.13",
"release-it": "14.11.6",
"sequelize": "6.8.0",
"sequelize": "6.16.1",
"sinon": "11.1.2",
"sinon-chai": "3.7.0",
"source-map-support": "0.5.20",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/shared/hook-meta.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HookOptions } from './hook-options';
import { SequelizeHooks } from 'sequelize/types/lib/hooks';
import { SequelizeHooks } from 'sequelize/types/hooks';

export interface HookMeta {
hookType: keyof SequelizeHooks;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/shared/hooks-service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'reflect-metadata';
import { HookMeta } from './hook-meta';
import { HookOptions } from './hook-options';
import { SequelizeHooks } from 'sequelize/types/lib/hooks';
import { SequelizeHooks } from 'sequelize/types/hooks';
import { ModelCtor } from '../../model/model/model';

const HOOKS_KEY = 'sequelize:hooks';
Expand Down
Loading

0 comments on commit ab45c14

Please sign in to comment.