axiodb 1.0.16 → 1.0.18
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/lib/config/DB.js +1 -1
- package/lib/config/DB.js.map +1 -1
- package/lib/config/Keys/Keys.d.ts +3 -0
- package/lib/config/Keys/Keys.js +5 -1
- package/lib/config/Keys/Keys.js.map +1 -1
- package/lib/server/Fastify.d.ts +1 -1
- package/lib/server/Fastify.js +15 -27
- package/lib/server/Fastify.js.map +1 -1
- package/package.json +2 -2
- package/lib/server/Keys/Keys.d.ts +0 -3
- package/lib/server/Keys/Keys.js +0 -8
- package/lib/server/Keys/Keys.js.map +0 -1
package/lib/config/DB.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.schemaValidate = validator_models_1.default;
|
|
|
12
12
|
const Indexation_operation_1 = __importDefault(require("../Operation/Indexation.operation"));
|
|
13
13
|
exports.Configure = Indexation_operation_1.default;
|
|
14
14
|
const Fastify_1 = __importDefault(require("../server/Fastify"));
|
|
15
|
-
(0, Fastify_1.default)()
|
|
15
|
+
(0, Fastify_1.default)();
|
|
16
16
|
new Indexation_operation_1.default(Keys_1.General.DBMS_Name).CreateTreeRoot().then((r) => console.log(r));
|
|
17
17
|
exports.default = {
|
|
18
18
|
SchemaTypes: DataTypes_models_1.SchemaTypes,
|
package/lib/config/DB.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AACA,sCAAsC;AACtC,iEAAyD;AAWhD,4FAXA,8BAAW,OAWA;AAVpB,kFAAwD;AAUlC,yBAVf,0BAAc,CAUe;AATpC,6FAA0D;AASpB,oBAT/B,8BAAS,CAS+B;AAP/C,gEAA0C;AAG1C,IAAA,iBAAS,GAAE,CAAC
|
|
1
|
+
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AACA,sCAAsC;AACtC,iEAAyD;AAWhD,4FAXA,8BAAW,OAWA;AAVpB,kFAAwD;AAUlC,yBAVf,0BAAc,CAUe;AATpC,6FAA0D;AASpB,oBAT/B,8BAAS,CAS+B;AAP/C,gEAA0C;AAG1C,IAAA,iBAAS,GAAE,CAAC;AACZ,IAAI,8BAAS,CAAC,cAAO,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAM9E,kBAAe;IACb,WAAW,EAAX,8BAAW;IACX,cAAc,EAAd,0BAAc;IACd,SAAS,EAAT,8BAAS;CACV,CAAC"}
|
package/lib/config/Keys/Keys.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.General = void 0;
|
|
3
|
+
exports.WebServer = exports.General = void 0;
|
|
4
4
|
var General;
|
|
5
5
|
(function (General) {
|
|
6
6
|
General["DBMS_Name"] = "AxioDB";
|
|
7
7
|
General["DBMS_File_EXT"] = ".axiodb";
|
|
8
8
|
})(General || (exports.General = General = {}));
|
|
9
|
+
var WebServer;
|
|
10
|
+
(function (WebServer) {
|
|
11
|
+
WebServer[WebServer["ServerPORT"] = 2025] = "ServerPORT";
|
|
12
|
+
})(WebServer || (exports.WebServer = WebServer = {}));
|
|
9
13
|
//# sourceMappingURL=Keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Keys.js","sourceRoot":"","sources":["../../../source/config/Keys/Keys.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,+BAAoB,CAAA;IACpB,oCAAyB,CAAA;AAC3B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB"}
|
|
1
|
+
{"version":3,"file":"Keys.js","sourceRoot":"","sources":["../../../source/config/Keys/Keys.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,+BAAoB,CAAA;IACpB,oCAAyB,CAAA;AAC3B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAGD,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,wDAAiB,CAAA;AACnB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB"}
|
package/lib/server/Fastify.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function startWebServer(): void;
|
package/lib/server/Fastify.js
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
4
|
};
|
|
14
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.default =
|
|
6
|
+
exports.default = startWebServer;
|
|
16
7
|
const fastify_1 = __importDefault(require("fastify"));
|
|
17
8
|
const outers_1 = require("outers");
|
|
9
|
+
const Keys_1 = require("../config/Keys/Keys");
|
|
18
10
|
const path_1 = __importDefault(require("path"));
|
|
19
11
|
const static_1 = __importDefault(require("@fastify/static"));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
Server.log.info(`AxioDB Web Interface is listening on ${address}`);
|
|
35
|
-
outers_1.Console.green("Web Interface Server is running on", address);
|
|
36
|
-
});
|
|
12
|
+
function startWebServer() {
|
|
13
|
+
const Server = (0, fastify_1.default)({ logger: false });
|
|
14
|
+
Server.register(static_1.default, {
|
|
15
|
+
root: path_1.default.resolve(process.cwd(), "public"),
|
|
16
|
+
prefix: "/public/",
|
|
17
|
+
});
|
|
18
|
+
Server.listen({ port: Keys_1.WebServer.ServerPORT }, (err, address) => {
|
|
19
|
+
if (err) {
|
|
20
|
+
Server.log.error(err);
|
|
21
|
+
outers_1.Console.red("Failed to start the server", err);
|
|
22
|
+
}
|
|
23
|
+
Server.log.info(`AxioDB Web Interface is listening on ${address}`);
|
|
24
|
+
outers_1.Console.green("Web Interface Server is running on", address);
|
|
37
25
|
});
|
|
38
26
|
}
|
|
39
27
|
//# sourceMappingURL=Fastify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fastify.js","sourceRoot":"","sources":["../../source/server/Fastify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Fastify.js","sourceRoot":"","sources":["../../source/server/Fastify.ts"],"names":[],"mappings":";;;;;AAmBA,iCAkBC;AArCD,sDAA8B;AAC9B,mCAAiC;AACjC,8CAAmE;AACnE,gDAAwB;AACxB,6DAA4C;AAe5C,SAAwB,cAAc;IACpC,MAAM,MAAM,GAAG,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAG1C,MAAM,CAAC,QAAQ,CAAC,gBAAa,EAAE;QAC7B,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC;QAC3C,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC;IAGH,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,gBAAe,CAAC,UAAU,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QACnE,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,gBAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;QACjD,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yCAAyC,OAAO,EAAE,CAAC,CAAC;QACpE,gBAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "A fast, lightweight, and scalable open-source DBMS for modern apps. Supports JSON-based data storage, simple APIs, and secure data management. Ideal for projects needing efficient and flexible database solutions.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"typescript": "^5.6.2",
|
|
53
53
|
"typescript-eslint": "^8.8.0"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|
package/lib/server/Keys/Keys.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.General = void 0;
|
|
4
|
-
var General;
|
|
5
|
-
(function (General) {
|
|
6
|
-
General[General["PORT"] = 27018] = "PORT";
|
|
7
|
-
})(General || (exports.General = General = {}));
|
|
8
|
-
//# sourceMappingURL=Keys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Keys.js","sourceRoot":"","sources":["../../../source/server/Keys/Keys.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,yCAAY,CAAA;AACd,CAAC,EAFW,OAAO,uBAAP,OAAO,QAElB"}
|