@pristine-ts/mysql 0.0.339 → 0.0.340
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/lib/cjs/configs/mysql.config.js +0 -30
- package/dist/lib/cjs/configs/mysql.config.js.map +1 -1
- package/dist/lib/cjs/mysql.module.js +10 -2
- package/dist/lib/cjs/mysql.module.js.map +1 -1
- package/dist/lib/esm/configs/mysql.config.js +1 -29
- package/dist/lib/esm/configs/mysql.config.js.map +1 -1
- package/dist/lib/esm/mysql.module.js +10 -2
- package/dist/lib/esm/mysql.module.js.map +1 -1
- package/dist/types/configs/mysql.config.d.ts +9 -10
- package/package.json +9 -9
|
@@ -1,33 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MysqlConfig = void 0;
|
|
13
|
-
const tsyringe_1 = require("tsyringe");
|
|
14
|
-
const common_1 = require("@pristine-ts/common");
|
|
15
|
-
let MysqlConfig = class MysqlConfig {
|
|
16
|
-
constructor(uniqueKeyname, host, port, user, password, connectionLimit, debug, database) {
|
|
17
|
-
this.uniqueKeyname = uniqueKeyname;
|
|
18
|
-
this.host = host;
|
|
19
|
-
this.port = port;
|
|
20
|
-
this.user = user;
|
|
21
|
-
this.password = password;
|
|
22
|
-
this.connectionLimit = connectionLimit;
|
|
23
|
-
this.debug = debug;
|
|
24
|
-
this.database = database;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.MysqlConfig = MysqlConfig;
|
|
28
|
-
exports.MysqlConfig = MysqlConfig = __decorate([
|
|
29
|
-
(0, common_1.tag)(common_1.ServiceDefinitionTagEnum.MysqlConfig),
|
|
30
|
-
(0, tsyringe_1.injectable)(),
|
|
31
|
-
__metadata("design:paramtypes", [String, String, Number, String, String, Number, Boolean, String])
|
|
32
|
-
], MysqlConfig);
|
|
33
3
|
//# sourceMappingURL=mysql.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.config.js","sourceRoot":"","sources":["../../../../src/configs/mysql.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mysql.config.js","sourceRoot":"","sources":["../../../../src/configs/mysql.config.ts"],"names":[],"mappings":""}
|
|
@@ -18,7 +18,6 @@ exports.MysqlModule = void 0;
|
|
|
18
18
|
const common_1 = require("@pristine-ts/common");
|
|
19
19
|
const configuration_1 = require("@pristine-ts/configuration");
|
|
20
20
|
const mysql_module_keyname_1 = require("./mysql.module.keyname");
|
|
21
|
-
const mysql_config_1 = require("./configs/mysql.config");
|
|
22
21
|
__exportStar(require("./clients/clients"), exports);
|
|
23
22
|
__exportStar(require("./config-providers/config-providers"), exports);
|
|
24
23
|
__exportStar(require("./configs/configs"), exports);
|
|
@@ -38,7 +37,16 @@ exports.MysqlModule = {
|
|
|
38
37
|
providerRegistrations: [
|
|
39
38
|
{
|
|
40
39
|
token: common_1.ServiceDefinitionTagEnum.MysqlConfig,
|
|
41
|
-
useValue:
|
|
40
|
+
useValue: {
|
|
41
|
+
uniqueKeyname: "__default__",
|
|
42
|
+
host: "",
|
|
43
|
+
port: 0,
|
|
44
|
+
user: "",
|
|
45
|
+
password: "",
|
|
46
|
+
connectionLimit: 0,
|
|
47
|
+
debug: false,
|
|
48
|
+
database: "",
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
]
|
|
44
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.module.js","sourceRoot":"","sources":["../../../src/mysql.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA4F;AAC5F,8DAKoC;AACpC,iEAA0D;
|
|
1
|
+
{"version":3,"file":"mysql.module.js","sourceRoot":"","sources":["../../../src/mysql.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA4F;AAC5F,8DAKoC;AACpC,iEAA0D;AAK1D,oDAAkC;AAClC,sEAAoD;AACpD,oDAAkC;AAClC,0DAAwC;AACxC,gDAA8B;AAC9B,0DAAwC;AACxC,0DAAwC;AACxC,gDAA8B;AAE9B,yDAAuC;AAE1B,QAAA,WAAW,GAAoB;IACxC,OAAO,EAAE,yCAAkB;IAC3B,aAAa,EAAE;QACX,qBAAY;QACZ,mCAAmB;KACtB;IACD,wBAAwB,EAAE,EACzB;IACD,qBAAqB,EAAE;QACnB;YACI,KAAK,EAAE,iCAAwB,CAAC,WAAW;YAC3C,QAAQ,EAAE;gBACN,aAAa,EAAE,aAAa;gBAC5B,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,EAAE;gBACZ,eAAe,EAAE,CAAC;gBAClB,KAAK,EAAE,KAAK;gBACZ,QAAQ,EAAE,EAAE;aACf;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { injectable } from "tsyringe";
|
|
11
|
-
import { ServiceDefinitionTagEnum, tag } from "@pristine-ts/common";
|
|
12
|
-
let MysqlConfig = class MysqlConfig {
|
|
13
|
-
constructor(uniqueKeyname, host, port, user, password, connectionLimit, debug, database) {
|
|
14
|
-
this.uniqueKeyname = uniqueKeyname;
|
|
15
|
-
this.host = host;
|
|
16
|
-
this.port = port;
|
|
17
|
-
this.user = user;
|
|
18
|
-
this.password = password;
|
|
19
|
-
this.connectionLimit = connectionLimit;
|
|
20
|
-
this.debug = debug;
|
|
21
|
-
this.database = database;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
MysqlConfig = __decorate([
|
|
25
|
-
tag(ServiceDefinitionTagEnum.MysqlConfig),
|
|
26
|
-
injectable(),
|
|
27
|
-
__metadata("design:paramtypes", [String, String, Number, String, String, Number, Boolean, String])
|
|
28
|
-
], MysqlConfig);
|
|
29
|
-
export { MysqlConfig };
|
|
1
|
+
export {};
|
|
30
2
|
//# sourceMappingURL=mysql.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.config.js","sourceRoot":"","sources":["../../../../src/configs/mysql.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mysql.config.js","sourceRoot":"","sources":["../../../../src/configs/mysql.config.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CommonModule, ServiceDefinitionTagEnum } from "@pristine-ts/common";
|
|
2
2
|
import { ConfigurationModule } from "@pristine-ts/configuration";
|
|
3
3
|
import { MysqlModuleKeyname } from "./mysql.module.keyname";
|
|
4
|
-
import { MysqlConfig } from "./configs/mysql.config";
|
|
5
4
|
export * from "./clients/clients";
|
|
6
5
|
export * from "./config-providers/config-providers";
|
|
7
6
|
export * from "./configs/configs";
|
|
@@ -21,7 +20,16 @@ export const MysqlModule = {
|
|
|
21
20
|
providerRegistrations: [
|
|
22
21
|
{
|
|
23
22
|
token: ServiceDefinitionTagEnum.MysqlConfig,
|
|
24
|
-
useValue:
|
|
23
|
+
useValue: {
|
|
24
|
+
uniqueKeyname: "__default__",
|
|
25
|
+
host: "",
|
|
26
|
+
port: 0,
|
|
27
|
+
user: "",
|
|
28
|
+
password: "",
|
|
29
|
+
connectionLimit: 0,
|
|
30
|
+
debug: false,
|
|
31
|
+
database: "",
|
|
32
|
+
}
|
|
25
33
|
}
|
|
26
34
|
]
|
|
27
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.module.js","sourceRoot":"","sources":["../../../src/mysql.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAmB,wBAAwB,EAAC,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAEH,mBAAmB,EAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"mysql.module.js","sourceRoot":"","sources":["../../../src/mysql.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAmB,wBAAwB,EAAC,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAEH,mBAAmB,EAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAK1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAE9B,cAAc,wBAAwB,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAoB;IACxC,OAAO,EAAE,kBAAkB;IAC3B,aAAa,EAAE;QACX,YAAY;QACZ,mBAAmB;KACtB;IACD,wBAAwB,EAAE,EACzB;IACD,qBAAqB,EAAE;QACnB;YACI,KAAK,EAAE,wBAAwB,CAAC,WAAW;YAC3C,QAAQ,EAAE;gBACN,aAAa,EAAE,aAAa;gBAC5B,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,EAAE;gBACZ,eAAe,EAAE,CAAC;gBAClB,KAAK,EAAE,KAAK;gBACZ,QAAQ,EAAE,EAAE;aACf;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(uniqueKeyname: string, host: string, port: number, user: string, password: string, connectionLimit: number, debug: boolean, database: string);
|
|
1
|
+
export interface MysqlConfig {
|
|
2
|
+
uniqueKeyname: string;
|
|
3
|
+
host: string;
|
|
4
|
+
port: number;
|
|
5
|
+
user: string;
|
|
6
|
+
password: string;
|
|
7
|
+
connectionLimit: number;
|
|
8
|
+
debug: boolean;
|
|
9
|
+
database: string;
|
|
11
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/mysql",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.340",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/mysql.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/mysql.module.js",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pristine-ts/common": "^0.0.
|
|
24
|
-
"@pristine-ts/core": "^0.0.
|
|
25
|
-
"@pristine-ts/data-mapping": "^0.0.
|
|
26
|
-
"@pristine-ts/data-mapping-common": "^0.0.
|
|
23
|
+
"@pristine-ts/common": "^0.0.340",
|
|
24
|
+
"@pristine-ts/core": "^0.0.340",
|
|
25
|
+
"@pristine-ts/data-mapping": "^0.0.340",
|
|
26
|
+
"@pristine-ts/data-mapping-common": "^0.0.340",
|
|
27
27
|
"@pristine-ts/metadata": "^1.0.6",
|
|
28
|
-
"@pristine-ts/mysql-common": "^0.0.
|
|
29
|
-
"@pristine-ts/security": "^0.0.
|
|
30
|
-
"@pristine-ts/telemetry": "^0.0.
|
|
28
|
+
"@pristine-ts/mysql-common": "^0.0.340",
|
|
29
|
+
"@pristine-ts/security": "^0.0.340",
|
|
30
|
+
"@pristine-ts/telemetry": "^0.0.340",
|
|
31
31
|
"mysql2": "^3.10.0",
|
|
32
32
|
"tsyringe": "^4.8.0"
|
|
33
33
|
},
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"src/*.{js,ts}"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "1ddbbf50423b5536ab5affb0e275d1966c4eee98"
|
|
69
69
|
}
|