Skip to content

Commit a510eea

Browse files
committed
update deps, fix imports
1 parent 38694d2 commit a510eea

File tree

9 files changed

+791
-478
lines changed

9 files changed

+791
-478
lines changed

package-lock.json

Lines changed: 721 additions & 459 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,43 +23,44 @@
2323
"author": "imqueue.com <[email protected]>",
2424
"license": "ISC",
2525
"dependencies": {
26-
"@imqueue/js": "^1.1.3",
27-
"@imqueue/rpc": "^1.5.0",
26+
"@imqueue/core": "^1.6.8",
27+
"@imqueue/js": "^1.1.4",
28+
"@imqueue/rpc": "^1.6.5",
2829
"@types/bluebird": "^3.5.29",
2930
"@types/validator": "^12.0.1",
3031
"bluebird": "^3.7.2",
3132
"chalk": "^3.0.0",
3233
"dotenv": "^8.2.0",
33-
"pg": "^7.14.0",
34-
"sequelize": "^5.21.2",
34+
"pg": "^7.17.0",
35+
"sequelize": "^5.21.3",
3536
"sequelize-typescript": "^1.1.0",
3637
"sql-formatter": "^2.3.3",
3738
"uuid": "^3.3.3"
3839
},
3940
"devDependencies": {
40-
"@types/chai": "^4.2.6",
41+
"@types/chai": "^4.2.7",
4142
"@types/chalk": "^2.2.0",
4243
"@types/mocha": "^5.2.7",
4344
"@types/mock-require": "^2.0.0",
44-
"@types/node": "^12.12.16",
45-
"@types/pg": "^7.11.2",
45+
"@types/node": "^13.1.2",
46+
"@types/pg": "^7.14.0",
4647
"@types/sinon": "^7.5.1",
4748
"@types/uuid": "^3.4.6",
4849
"chai": "^4.2.0",
4950
"mocha": "^6.2.2",
5051
"mocha-lcov-reporter": "^1.3.0",
5152
"mock-require": "^3.0.3",
5253
"npm-scripts-help": "^0.8.0",
53-
"nyc": "^14.1.1",
54+
"nyc": "^15.0.0",
5455
"open": "^7.0.0",
5556
"reflect-metadata": "^0.1.13",
5657
"sequelize-cli": "^5.5.1",
57-
"sinon": "^7.5.0",
58+
"sinon": "^8.0.2",
5859
"source-map-support": "^0.5.16",
5960
"ts-node": "^8.5.4",
6061
"tslint": "^5.20.1",
61-
"typedoc": "^0.15.4",
62-
"typescript": "^3.7.3"
62+
"typedoc": "^0.15.6",
63+
"typescript": "^3.7.4"
6364
},
6465
"typescript": {
6566
"definitions": "index.d.ts"

src/BaseModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import {
110110
RX_MATCHER,
111111
RX_NAME_MATCHER,
112112
ViewParams,
113-
} from './decorators/columnIndex';
113+
} from './decorators';
114114
import { query } from './helpers';
115115
import sql = query.sql;
116116
import E = query.E;
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { addOptions, getOptions } from 'sequelize-typescript';
2020
export type FunctionType = (...args: any[]) => any;
2121

2222
export enum IndexMethod {
23+
// noinspection JSUnusedGlobalSymbols
2324
BTREE = 'BTREE',
2425
HASH = 'HASH',
2526
GIST = 'GIST',
@@ -29,6 +30,7 @@ export enum IndexMethod {
2930
}
3031

3132
export enum SortOrder {
33+
// noinspection JSUnusedGlobalSymbols
3234
ASC = 'ASC',
3335
DESC = 'DESC',
3436
}
@@ -86,7 +88,4 @@ function annotate(
8688
} as any);
8789
}
8890

89-
export * from './DynamicView';
90-
export * from './View';
91-
export * from './NullableIndex';
92-
export * from './AssociatedWith';
91+

src/decorators/DynamicView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function DynamicView(
5151
const viewParams = options.viewParams || {};
5252

5353
(viewDef.match(RX_MATCHER) || []).forEach(param => {
54-
const [_, name] = (param.match(RX_NAME_MATCHER) || ['', '']);
54+
const [, name] = (param.match(RX_NAME_MATCHER) || ['', '']);
5555

5656
if (typeof viewParams[name] !== 'string') {
5757
throw new TypeError(

src/decorators/Emittable.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*!
2+
* @imqueue/sequelize - Sequelize ORM refines for @imqueue
3+
*
4+
* Copyright (c) 2019, imqueue.com <[email protected]>
5+
*
6+
* Permission to use, copy, modify, and/or distribute this software for any
7+
* purpose with or without fee is hereby granted, provided that the above
8+
* copyright notice and this permission notice appear in all copies.
9+
*
10+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11+
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12+
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13+
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14+
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15+
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16+
* PERFORMANCE OF THIS SOFTWARE.
17+
*/
18+
import 'reflect-metadata';
19+
20+
// noinspection JSUnusedGlobalSymbols
21+
/**
22+
* Declares emittable model, which would have bound trigger sending
23+
* table rows change events using PostgreSQL NOTIFY command.
24+
* This is PostgreSQL only feature
25+
*/
26+
export function Emittable(target: any) {
27+
// todo: implement
28+
}

src/decorators/NullableIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1616
* PERFORMANCE OF THIS SOFTWARE.
1717
*/
18-
import { ColumnIndexOptions, FunctionType, ColumnIndex } from './columnIndex';
18+
import { ColumnIndexOptions, FunctionType, ColumnIndex } from './ColumnIndex';
1919

2020
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
2121

src/decorators/index.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*!
2+
* @imqueue/sequelize - Sequelize ORM refines for @imqueue
3+
*
4+
* Copyright (c) 2019, imqueue.com <[email protected]>
5+
*
6+
* Permission to use, copy, modify, and/or distribute this software for any
7+
* purpose with or without fee is hereby granted, provided that the above
8+
* copyright notice and this permission notice appear in all copies.
9+
*
10+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11+
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12+
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13+
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14+
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15+
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16+
* PERFORMANCE OF THIS SOFTWARE.
17+
*/
18+
export * from './DynamicView';
19+
export * from './View';
20+
export * from './NullableIndex';
21+
export * from './AssociatedWith';
22+
export * from './ColumnIndex';
23+
export * from './Emittable';

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import isOk = js.isOk;
2828
/* models exports! */
2929
export * from './BaseModel';
3030
export * from './helpers';
31-
export * from './decorators/columnIndex';
31+
export * from './decorators';
3232
export * from './types';
3333

3434
const JS_EXT_RX = /\.js$/;

0 commit comments

Comments
 (0)