badmfck-api-server 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ async function Initializer(services) {
43
43
  exports.Initializer = Initializer;
44
44
  class APIService extends BaseService_1.BaseService {
45
45
  static nextLogID = 0;
46
- version = "1.2.0";
46
+ version = "1.2.1";
47
47
  options;
48
48
  netLog = [];
49
49
  constructor(options) {
@@ -28,7 +28,7 @@ export interface MysqlQueryField {
28
28
  useInReplace?: boolean;
29
29
  _parsedValue?: string | number | boolean | null;
30
30
  }
31
- declare class MysqlService extends BaseService {
31
+ export declare class MysqlService extends BaseService {
32
32
  reconnectionTimeout: number;
33
33
  reconnecting: boolean;
34
34
  pool: Pool | null;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MysqlService = void 0;
6
7
  const mysql_1 = __importDefault(require("mysql"));
7
8
  const BaseService_1 = require("./BaseService");
8
9
  const badmfck_signal_1 = require("badmfck-signal");
@@ -245,4 +246,5 @@ class MysqlService extends BaseService_1.BaseService {
245
246
  });
246
247
  }
247
248
  }
249
+ exports.MysqlService = MysqlService;
248
250
  exports.default = MysqlService;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import { APIService, Initializer } from "./apiServer/APIService";
2
2
  import { LocalRequest } from "./apiServer/LocalRequest";
3
- export { APIService, Initializer, LocalRequest };
3
+ import { MysqlService } from "./apiServer/MysqlService";
4
+ export { APIService, Initializer, LocalRequest, MysqlService };
package/dist/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalRequest = exports.Initializer = exports.APIService = void 0;
3
+ exports.MysqlService = exports.LocalRequest = exports.Initializer = exports.APIService = void 0;
4
4
  const APIService_1 = require("./apiServer/APIService");
5
5
  Object.defineProperty(exports, "APIService", { enumerable: true, get: function () { return APIService_1.APIService; } });
6
6
  Object.defineProperty(exports, "Initializer", { enumerable: true, get: function () { return APIService_1.Initializer; } });
7
7
  const LocalRequest_1 = require("./apiServer/LocalRequest");
8
8
  Object.defineProperty(exports, "LocalRequest", { enumerable: true, get: function () { return LocalRequest_1.LocalRequest; } });
9
+ const MysqlService_1 = require("./apiServer/MysqlService");
10
+ Object.defineProperty(exports, "MysqlService", { enumerable: true, get: function () { return MysqlService_1.MysqlService; } });
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "type": "module",
7
8
  "scripts": {
8
9
  "prepublish": "tsc",
9
10
  "build": "tsc",