@mini2/core 1.1.18 → 1.1.19
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/container.d.ts.map +1 -1
- package/dist/container.js +0 -6
- package/dist/container.js.map +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/container.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,QAAA,MAAM,SAAS,WAAkB,CAAC;AAGlC,eAAe,SAAS,CAAC"}
|
package/dist/container.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const inversify_1 = require("inversify");
|
|
7
|
-
const app_1 = __importDefault(require("./app"));
|
|
8
|
-
const types_1 = require("./types");
|
|
9
4
|
const container = new inversify_1.Container();
|
|
10
|
-
container.bind(types_1.MINI_TYPES.IApp).to(app_1.default).inSingletonScope();
|
|
11
5
|
exports.default = container;
|
|
12
6
|
//# sourceMappingURL=container.js.map
|
package/dist/container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../container.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../container.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AAEtC,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;AAGlC,kBAAe,SAAS,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import App from './app';
|
|
2
|
+
import container from './container';
|
|
3
|
+
import { IApp } from './interfaces/app.interface';
|
|
4
|
+
import { MINI_TYPES } from './types';
|
|
5
|
+
export * from 'inversify';
|
|
6
|
+
export { container };
|
|
7
|
+
export { IApp };
|
|
8
|
+
export { App };
|
|
9
|
+
export { MINI_TYPES };
|
|
4
10
|
export * from './interfaces/app.interface';
|
|
5
11
|
export * from './interfaces/authenticated.interface';
|
|
6
12
|
export * from './interfaces/config.interface';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,cAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,GAAG,EAAE,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,CAAC;AAGtB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAGlD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAG7B,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGvE,cAAc,SAAS,CAAC;AAGxB,cAAc,oBAAoB,CAAC;AAGnC,cAAc,QAAQ,CAAC;AAGvB,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,18 +17,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.HttpException = exports.
|
|
20
|
+
exports.HttpException = exports.MINI_TYPES = exports.App = exports.container = void 0;
|
|
21
|
+
const app_1 = __importDefault(require("./app"));
|
|
22
|
+
exports.App = app_1.default;
|
|
23
|
+
const container_1 = __importDefault(require("./container"));
|
|
24
|
+
exports.container = container_1.default;
|
|
25
|
+
const types_1 = require("./types");
|
|
26
|
+
Object.defineProperty(exports, "MINI_TYPES", { enumerable: true, get: function () { return types_1.MINI_TYPES; } });
|
|
21
27
|
// Main Application class
|
|
22
|
-
var app_1 = require("./app");
|
|
23
|
-
Object.defineProperty(exports, "App", { enumerable: true, get: function () { return __importDefault(app_1).default; } });
|
|
24
28
|
// Container Class ve instance için
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(exports, "Container", { enumerable: true, get: function () { return inversify_1.Container; } });
|
|
27
|
-
Object.defineProperty(exports, "inject", { enumerable: true, get: function () { return inversify_1.inject; } });
|
|
28
|
-
Object.defineProperty(exports, "injectable", { enumerable: true, get: function () { return inversify_1.injectable; } });
|
|
29
|
-
Object.defineProperty(exports, "multiInject", { enumerable: true, get: function () { return inversify_1.multiInject; } });
|
|
30
|
-
var container_1 = require("./container");
|
|
31
|
-
Object.defineProperty(exports, "container", { enumerable: true, get: function () { return __importDefault(container_1).default; } });
|
|
29
|
+
__exportStar(require("inversify"), exports);
|
|
32
30
|
// Interfaces
|
|
33
31
|
__exportStar(require("./interfaces/app.interface"), exports);
|
|
34
32
|
__exportStar(require("./interfaces/authenticated.interface"), exports);
|
|
@@ -54,4 +52,5 @@ __exportStar(require("./response-builder"), exports);
|
|
|
54
52
|
__exportStar(require("./rest"), exports);
|
|
55
53
|
// Swagger integration
|
|
56
54
|
__exportStar(require("./swagger"), exports);
|
|
55
|
+
container_1.default.bind(types_1.MINI_TYPES.IApp).to(app_1.default).inSingletonScope();
|
|
57
56
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAUf,cAVF,aAAG,CAUE;AATZ,4DAAoC;AAO3B,oBAPF,mBAAS,CAOE;AALlB,mCAAqC;AAQ5B,2FARA,kBAAU,OAQA;AAPnB,yBAAyB;AAEzB,mCAAmC;AACnC,4CAA2B;AAM3B,aAAa;AACb,6DAA2C;AAC3C,uEAAqD;AACrD,gEAA8C;AAC9C,+DAA6C;AAC7C,oEAAkD;AAElD,cAAc;AACd,yEAAuD;AACvD,sEAAoD;AACpD,sEAAoD;AAEpD,QAAQ;AACR,sDAAoC;AACpC,+CAA6B;AAE7B,aAAa;AACb,8DAA4C;AAC5C,8DAAuE;AAA9D,gIAAA,OAAO,OAAiB;AAEjC,QAAQ;AACR,0CAAwB;AAExB,mBAAmB;AACnB,qDAAmC;AAEnC,iBAAiB;AACjB,yCAAuB;AAEvB,sBAAsB;AACtB,4CAA0B;AAE1B,mBAAS,CAAC,IAAI,CAAO,kBAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,aAAG,CAAC,CAAC,gBAAgB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"description": "Mini Express Framework - Lightweight and modular Express.js framework with TypeScript support",
|
|
27
27
|
"name": "@mini2/core",
|
|
28
|
-
"version": "1.1.
|
|
28
|
+
"version": "1.1.19",
|
|
29
29
|
"author": "Mustafa Çolakoglu <mustafacolakoglu94@gmail.com> (https://github.com/mustafa-colakoglu)",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"class-transformer": "^0.5.1",
|