@tsed/objection 6.102.6 → 6.102.8-rc.3
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/lib/cjs/domain/interfaces.js +3 -0
- package/lib/cjs/domain/interfaces.js.map +1 -0
- package/lib/cjs/index.js +10 -8
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/package.json +3 -0
- package/lib/esm/components/createBooleanColumn.js +1 -1
- package/lib/esm/components/createIdColumn.js +1 -1
- package/lib/esm/components/createNumberColumn.js +1 -1
- package/lib/esm/components/createStringColumn.js +1 -1
- package/lib/esm/decorators/decimal.js +1 -1
- package/lib/esm/decorators/entity.js +1 -1
- package/lib/esm/decorators/idColumn.js +2 -2
- package/lib/esm/domain/interfaces.js +2 -0
- package/lib/esm/domain/interfaces.js.map +1 -0
- package/lib/esm/index.js +19 -17
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/package.json +3 -0
- package/lib/esm/services/ObjectionConnection.js +1 -1
- package/lib/esm/utils/createColumns.js +6 -6
- package/lib/types/domain/interfaces.d.ts +8 -0
- package/lib/types/index.d.ts +10 -12
- package/package.json +19 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/domain/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {Knex} from \"knex\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n knex: Knex.Config;\n }\n }\n}\n"]}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file Automatically generated by barrelsby.
|
|
4
|
+
*/
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const tslib_1 = require("tslib");
|
|
4
|
-
// components
|
|
5
|
-
(0, tslib_1.__exportStar)(require("./components/createStringColumn"), exports);
|
|
6
|
-
(0, tslib_1.__exportStar)(require("./components/createIdColumn"), exports);
|
|
7
7
|
(0, tslib_1.__exportStar)(require("./components/createBooleanColumn"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./components/createIdColumn"), exports);
|
|
8
9
|
(0, tslib_1.__exportStar)(require("./components/createNumberColumn"), exports);
|
|
9
|
-
|
|
10
|
-
(0, tslib_1.__exportStar)(require("./decorators/
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./components/createStringColumn"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./decorators/columnOptions"), exports);
|
|
11
12
|
(0, tslib_1.__exportStar)(require("./decorators/decimal"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./decorators/entity"), exports);
|
|
12
14
|
(0, tslib_1.__exportStar)(require("./decorators/idColumn"), exports);
|
|
13
|
-
(0, tslib_1.__exportStar)(require("./decorators/columnOptions"), exports);
|
|
14
15
|
(0, tslib_1.__exportStar)(require("./domain/ColumnOpts"), exports);
|
|
15
|
-
|
|
16
|
+
(0, tslib_1.__exportStar)(require("./domain/interfaces"), exports);
|
|
17
|
+
(0, tslib_1.__exportStar)(require("./services/ColumnTypesContainer"), exports);
|
|
16
18
|
(0, tslib_1.__exportStar)(require("./services/ObjectionConnection"), exports);
|
|
17
|
-
// utils
|
|
18
19
|
(0, tslib_1.__exportStar)(require("./utils/connect"), exports);
|
|
19
20
|
(0, tslib_1.__exportStar)(require("./utils/createColumns"), exports);
|
|
21
|
+
(0, tslib_1.__exportStar)(require("./utils/defineStaticGetter"), exports);
|
|
20
22
|
(0, tslib_1.__exportStar)(require("./utils/getColumnCtx"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAAiD;AACjD,2EAA4C;AAC5C,+EAAgD;AAChD,+EAAgD;AAChD,0EAA2C;AAC3C,oEAAqC;AACrC,mEAAoC;AACpC,qEAAsC;AACtC,mEAAoC;AACpC,mEAAoC;AACpC,+EAAgD;AAChD,8EAA+C;AAC/C,+DAAgC;AAChC,qEAAsC;AACtC,0EAA2C;AAC3C,oEAAqC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components/createBooleanColumn\";\nexport * from \"./components/createIdColumn\";\nexport * from \"./components/createNumberColumn\";\nexport * from \"./components/createStringColumn\";\nexport * from \"./decorators/columnOptions\";\nexport * from \"./decorators/decimal\";\nexport * from \"./decorators/entity\";\nexport * from \"./decorators/idColumn\";\nexport * from \"./domain/ColumnOpts\";\nexport * from \"./domain/interfaces\";\nexport * from \"./services/ColumnTypesContainer\";\nexport * from \"./services/ObjectionConnection\";\nexport * from \"./utils/connect\";\nexport * from \"./utils/createColumns\";\nexport * from \"./utils/defineStaticGetter\";\nexport * from \"./utils/getColumnCtx\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDecorators } from "@tsed/core";
|
|
2
2
|
import { Property } from "@tsed/schema";
|
|
3
|
-
import { defineStaticGetter } from "../utils/defineStaticGetter";
|
|
4
|
-
import { ColumnOptions } from "./columnOptions";
|
|
3
|
+
import { defineStaticGetter } from "../utils/defineStaticGetter.js";
|
|
4
|
+
import { ColumnOptions } from "./columnOptions.js";
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
* @param type
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/domain/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {Knex} from \"knex\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n knex: Knex.Config;\n }\n }\n}\n"]}
|
package/lib/esm/index.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * from "./components/createBooleanColumn";
|
|
5
|
-
export * from "./components/
|
|
6
|
-
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./decorators/
|
|
9
|
-
export * from "./decorators/
|
|
10
|
-
export * from "./decorators/
|
|
11
|
-
export * from "./
|
|
12
|
-
|
|
13
|
-
export * from "./
|
|
14
|
-
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./utils/
|
|
17
|
-
export * from "./utils/
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
export * from "./components/createBooleanColumn.js";
|
|
5
|
+
export * from "./components/createIdColumn.js";
|
|
6
|
+
export * from "./components/createNumberColumn.js";
|
|
7
|
+
export * from "./components/createStringColumn.js";
|
|
8
|
+
export * from "./decorators/columnOptions.js";
|
|
9
|
+
export * from "./decorators/decimal.js";
|
|
10
|
+
export * from "./decorators/entity.js";
|
|
11
|
+
export * from "./decorators/idColumn.js";
|
|
12
|
+
export * from "./domain/ColumnOpts.js";
|
|
13
|
+
export * from "./domain/interfaces.js";
|
|
14
|
+
export * from "./services/ColumnTypesContainer.js";
|
|
15
|
+
export * from "./services/ObjectionConnection.js";
|
|
16
|
+
export * from "./utils/connect.js";
|
|
17
|
+
export * from "./utils/createColumns.js";
|
|
18
|
+
export * from "./utils/defineStaticGetter.js";
|
|
19
|
+
export * from "./utils/getColumnCtx.js";
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./components/createBooleanColumn\";\nexport * from \"./components/createIdColumn\";\nexport * from \"./components/createNumberColumn\";\nexport * from \"./components/createStringColumn\";\nexport * from \"./decorators/columnOptions\";\nexport * from \"./decorators/decimal\";\nexport * from \"./decorators/entity\";\nexport * from \"./decorators/idColumn\";\nexport * from \"./domain/ColumnOpts\";\nexport * from \"./domain/interfaces\";\nexport * from \"./services/ColumnTypesContainer\";\nexport * from \"./services/ObjectionConnection\";\nexport * from \"./utils/connect\";\nexport * from \"./utils/createColumns\";\nexport * from \"./utils/defineStaticGetter\";\nexport * from \"./utils/getColumnCtx\";\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration, registerProvider } from "@tsed/di";
|
|
2
|
-
import { createConnection } from "../utils/connect";
|
|
2
|
+
import { createConnection } from "../utils/connect.js";
|
|
3
3
|
export const OBJECTION_CONNECTION = Symbol.for("DEFAULT_CONNECTION");
|
|
4
4
|
registerProvider({
|
|
5
5
|
provide: OBJECTION_CONNECTION,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getProperties } from "@tsed/schema";
|
|
2
|
-
import "../components/createBooleanColumn";
|
|
3
|
-
import "../components/createIdColumn";
|
|
4
|
-
import "../components/createNumberColumn";
|
|
5
|
-
import "../components/createStringColumn";
|
|
6
|
-
import { ColumnTypesContainer } from "../services/ColumnTypesContainer";
|
|
7
|
-
import { getColumnCtx } from "./getColumnCtx";
|
|
2
|
+
import "../components/createBooleanColumn.js";
|
|
3
|
+
import "../components/createIdColumn.js";
|
|
4
|
+
import "../components/createNumberColumn.js";
|
|
5
|
+
import "../components/createStringColumn.js";
|
|
6
|
+
import { ColumnTypesContainer } from "../services/ColumnTypesContainer.js";
|
|
7
|
+
import { getColumnCtx } from "./getColumnCtx.js";
|
|
8
8
|
/**
|
|
9
9
|
* @ignore
|
|
10
10
|
*/
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface Configuration {
|
|
5
|
-
knex: Knex.Config;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export * from "./components/createStringColumn";
|
|
10
|
-
export * from "./components/createIdColumn";
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
11
4
|
export * from "./components/createBooleanColumn";
|
|
5
|
+
export * from "./components/createIdColumn";
|
|
12
6
|
export * from "./components/createNumberColumn";
|
|
13
|
-
export * from "./
|
|
7
|
+
export * from "./components/createStringColumn";
|
|
8
|
+
export * from "./decorators/columnOptions";
|
|
14
9
|
export * from "./decorators/decimal";
|
|
10
|
+
export * from "./decorators/entity";
|
|
15
11
|
export * from "./decorators/idColumn";
|
|
16
|
-
export * from "./decorators/columnOptions";
|
|
17
12
|
export * from "./domain/ColumnOpts";
|
|
13
|
+
export * from "./domain/interfaces";
|
|
14
|
+
export * from "./services/ColumnTypesContainer";
|
|
18
15
|
export * from "./services/ObjectionConnection";
|
|
19
16
|
export * from "./utils/connect";
|
|
20
17
|
export * from "./utils/createColumns";
|
|
18
|
+
export * from "./utils/defineStaticGetter";
|
|
21
19
|
export * from "./utils/getColumnCtx";
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/objection",
|
|
3
|
-
"version": "6.102.
|
|
3
|
+
"version": "6.102.8-rc.3",
|
|
4
4
|
"description": "Objection.js package for Ts.ED framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
|
+
"module": "./lib/esm/index.js",
|
|
8
9
|
"typings": "./lib/types/index.d.ts",
|
|
9
10
|
"exports": {
|
|
10
11
|
"types": "./lib/types/index.d.ts",
|
|
@@ -13,20 +14,21 @@
|
|
|
13
14
|
"default": "./lib/esm/index.js"
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
|
-
"build": "yarn run build:esm && yarn run build:cjs",
|
|
17
|
+
"build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
|
|
17
18
|
"build:cjs": "tsc --build tsconfig.compile.json",
|
|
18
19
|
"build:esm": "tsc --build tsconfig.compile.esm.json",
|
|
20
|
+
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
|
|
19
21
|
"test": "cross-env NODE_ENV=test yarn jest"
|
|
20
22
|
},
|
|
21
23
|
"dependencies": {
|
|
22
24
|
"tslib": "2.2.0"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
|
-
"@tsed/ajv": "6.102.
|
|
26
|
-
"@tsed/core": "6.102.
|
|
27
|
-
"@tsed/di": "6.102.
|
|
28
|
-
"@tsed/json-mapper": "6.102.
|
|
29
|
-
"@tsed/schema": "6.102.
|
|
27
|
+
"@tsed/ajv": "6.102.8-rc.3",
|
|
28
|
+
"@tsed/core": "6.102.8-rc.3",
|
|
29
|
+
"@tsed/di": "6.102.8-rc.3",
|
|
30
|
+
"@tsed/json-mapper": "6.102.8-rc.3",
|
|
31
|
+
"@tsed/schema": "6.102.8-rc.3",
|
|
30
32
|
"knex": "^0.95.11",
|
|
31
33
|
"mssql": "^7.2.1",
|
|
32
34
|
"mysql": "^2.18.1",
|
|
@@ -38,11 +40,11 @@
|
|
|
38
40
|
"sqlite3": "^5.0.2"
|
|
39
41
|
},
|
|
40
42
|
"peerDependencies": {
|
|
41
|
-
"@tsed/ajv": "^6.102.
|
|
42
|
-
"@tsed/core": "^6.102.
|
|
43
|
-
"@tsed/di": "^6.102.
|
|
44
|
-
"@tsed/json-mapper": "^6.102.
|
|
45
|
-
"@tsed/schema": "^6.102.
|
|
43
|
+
"@tsed/ajv": "^6.102.8-rc.3",
|
|
44
|
+
"@tsed/core": "^6.102.8-rc.3",
|
|
45
|
+
"@tsed/di": "^6.102.8-rc.3",
|
|
46
|
+
"@tsed/json-mapper": "^6.102.8-rc.3",
|
|
47
|
+
"@tsed/schema": "^6.102.8-rc.3",
|
|
46
48
|
"knex": ">=0.94.0",
|
|
47
49
|
"objection": ">=2.0.0"
|
|
48
50
|
},
|
|
@@ -50,7 +52,10 @@
|
|
|
50
52
|
"bugs": {
|
|
51
53
|
"url": "https://github.com/tsedio/tsed/issues"
|
|
52
54
|
},
|
|
53
|
-
"homepage": "https://github.com/tsedio/tsed/tree/
|
|
55
|
+
"homepage": "https://github.com/tsedio/tsed/tree/rc/packages/orm/objection",
|
|
54
56
|
"author": "Romain Lenzotti",
|
|
55
|
-
"license": "MIT"
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"tag": "rc"
|
|
60
|
+
}
|
|
56
61
|
}
|