@warlock.js/core 4.0.170 → 4.0.174
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/esm/application/app.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type DataSource } from "@warlock.js/cascade";
|
|
2
|
+
import { type FastifyInstance } from "fastify";
|
|
3
|
+
import { type Server } from "socket.io";
|
|
4
|
+
import { type Router } from "../router";
|
|
5
|
+
type RuntimeApplication = {
|
|
6
|
+
socket: Server;
|
|
7
|
+
http: FastifyInstance;
|
|
8
|
+
router: Router;
|
|
9
|
+
database: DataSource;
|
|
6
10
|
};
|
|
11
|
+
export declare const app: RuntimeApplication;
|
|
12
|
+
export {};
|
|
7
13
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/application/app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/application/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,kBA4BjB,CAAC"}
|
package/esm/application/app.js
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
import {container}from'../container/index.js';const app = {
|
|
2
|
+
/**
|
|
3
|
+
* Socket Io Instance
|
|
4
|
+
* Available only if socket.io config file exists
|
|
5
|
+
*/
|
|
2
6
|
get socket() {
|
|
3
7
|
return container.get("socket");
|
|
4
8
|
},
|
|
9
|
+
/**
|
|
10
|
+
* HTTP Server Instance
|
|
11
|
+
* Available only if http config file exists
|
|
12
|
+
*/
|
|
5
13
|
get http() {
|
|
6
14
|
return container.get("http.server");
|
|
7
15
|
},
|
|
16
|
+
/**
|
|
17
|
+
* Router Instance
|
|
18
|
+
*/
|
|
8
19
|
get router() {
|
|
9
20
|
return container.get("router");
|
|
10
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* Database Instance
|
|
24
|
+
* Available only if database config file exists
|
|
25
|
+
*/
|
|
11
26
|
get database() {
|
|
12
27
|
return container.get("database.source");
|
|
13
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sources":["../../src/application/app.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.js","sources":["../../src/application/app.ts"],"sourcesContent":[null],"names":[],"mappings":"8CAaa,MAAA,GAAG,GAAuB;AACrC;;;AAGG;AACH,IAAA,IAAI,MAAM,GAAA;AACR,QAAA,OAAO,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KAChC;AACD;;;AAGG;AACH,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;KACrC;AACD;;AAEG;AACH,IAAA,IAAI,MAAM,GAAA;AACR,QAAA,OAAO,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KAChC;AACD;;;AAGG;AACH,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,OAAO,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;KACzC;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warlock.js/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.174",
|
|
4
4
|
"description": "A robust nodejs framework for building blazing fast applications",
|
|
5
5
|
"main": "./esm/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"pluralize-esm": "^9.0.5",
|
|
32
32
|
"@mongez/supportive-is": "^2.0.4",
|
|
33
33
|
"@mongez/time-wizard": "^1.0.6",
|
|
34
|
-
"@warlock.js/auth": "4.0.
|
|
35
|
-
"@warlock.js/cache": "4.0.
|
|
36
|
-
"@warlock.js/cascade": "4.0.
|
|
37
|
-
"@warlock.js/context": "4.0.
|
|
38
|
-
"@warlock.js/logger": "4.0.
|
|
39
|
-
"@warlock.js/seal": "4.0.
|
|
34
|
+
"@warlock.js/auth": "4.0.174",
|
|
35
|
+
"@warlock.js/cache": "4.0.174",
|
|
36
|
+
"@warlock.js/cascade": "4.0.174",
|
|
37
|
+
"@warlock.js/context": "4.0.174",
|
|
38
|
+
"@warlock.js/logger": "4.0.174",
|
|
39
|
+
"@warlock.js/seal": "4.0.174",
|
|
40
40
|
"axios": "^1.14.0",
|
|
41
41
|
"chokidar": "^5.0.0",
|
|
42
42
|
"dayjs": "^1.11.19",
|