@warlock.js/core 4.0.170 → 4.0.171
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,23 @@
|
|
|
1
|
+
import { type Router } from "../router";
|
|
1
2
|
export declare const app: {
|
|
3
|
+
/**
|
|
4
|
+
* Socket Io Instance
|
|
5
|
+
* Available only if socket.io config file exists
|
|
6
|
+
*/
|
|
2
7
|
readonly socket: Server;
|
|
8
|
+
/**
|
|
9
|
+
* HTTP Server Instance
|
|
10
|
+
* Available only if http config file exists
|
|
11
|
+
*/
|
|
3
12
|
readonly http: FastifyInstance;
|
|
4
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Router Instance
|
|
15
|
+
*/
|
|
16
|
+
readonly router: Router;
|
|
17
|
+
/**
|
|
18
|
+
* Database Instance
|
|
19
|
+
* Available only if database config file exists
|
|
20
|
+
*/
|
|
5
21
|
readonly database: DataSource;
|
|
6
22
|
};
|
|
7
23
|
//# 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":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,eAAO,MAAM,GAAG;IACd;;;OAGG;;IAIH;;;OAGG;;IAIH;;OAEG;;IAIH;;;OAGG;;CAIJ,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":"8CAMa,MAAA,GAAG,GAAG;AACjB;;;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.171",
|
|
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.171",
|
|
35
|
+
"@warlock.js/cache": "4.0.171",
|
|
36
|
+
"@warlock.js/cascade": "4.0.171",
|
|
37
|
+
"@warlock.js/context": "4.0.171",
|
|
38
|
+
"@warlock.js/logger": "4.0.171",
|
|
39
|
+
"@warlock.js/seal": "4.0.171",
|
|
40
40
|
"axios": "^1.14.0",
|
|
41
41
|
"chokidar": "^5.0.0",
|
|
42
42
|
"dayjs": "^1.11.19",
|