axiodb 1.0.2 → 1.0.3
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/Operation/Indexation.operation.js +3 -2
- package/lib/Operation/Indexation.operation.js.map +1 -1
- package/lib/Web/Fastify.js +6 -6
- package/lib/Web/Fastify.js.map +1 -1
- package/lib/Web/Router/Router.d.ts +0 -0
- package/lib/Web/Router/Router.js +2 -0
- package/lib/Web/Router/Router.js.map +1 -0
- package/lib/config/DB.d.ts +0 -2
- package/lib/config/DB.js +1 -3
- package/lib/config/DB.js.map +1 -1
- package/lib/config/Keys/Keys.d.ts +4 -0
- package/lib/config/Keys/Keys.js +9 -0
- package/lib/config/Keys/Keys.js.map +1 -0
- package/package.json +1 -1
|
@@ -25,13 +25,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
var _Configure_encryptionKey;
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
const DB_1 = require("../config/DB");
|
|
28
|
+
const Keys_1 = require("../config/Keys/Keys");
|
|
28
29
|
const path_1 = __importDefault(require("path"));
|
|
29
30
|
class Configure {
|
|
30
|
-
constructor(Schema, isEncrypted = false, ClusterName =
|
|
31
|
+
constructor(Schema, isEncrypted = false, ClusterName = Keys_1.General.DBMS_Name) {
|
|
31
32
|
_Configure_encryptionKey.set(this, void 0);
|
|
32
33
|
this.Schema = Schema;
|
|
33
34
|
this.isEncrypted = isEncrypted;
|
|
34
|
-
__classPrivateFieldSet(this, _Configure_encryptionKey,
|
|
35
|
+
__classPrivateFieldSet(this, _Configure_encryptionKey, Keys_1.General.DBMS_Name, "f");
|
|
35
36
|
this.clusterName = ClusterName;
|
|
36
37
|
this.currentPATH = path_1.default.resolve(".");
|
|
37
38
|
this.CreateTreeRoot();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Indexation.operation.js","sourceRoot":"","sources":["../../source/Operation/Indexation.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,
|
|
1
|
+
{"version":3,"file":"Indexation.operation.js","sourceRoot":"","sources":["../../source/Operation/Indexation.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qCAA6C;AAC7C,8CAA8C;AAC9C,gDAAwB;AAExB,MAAqB,SAAS;IAQ5B,YACE,MAAoB,EACpB,WAAW,GAAG,KAAK,EACnB,cAAsB,cAAO,CAAC,SAAS;QAPzC,2CAAuB;QASrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,uBAAA,IAAI,4BAAkB,cAAO,CAAC,SAAS,MAAA,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAGM,SAAS;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEM,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAEM,gBAAgB;QACrB,OAAO,uBAAA,IAAI,gCAAe,CAAC;IAC7B,CAAC;IAEM,gBAAgB,CAAC,GAAW;QACjC,uBAAA,IAAI,4BAAkB,GAAG,MAAA,CAAC;IAC5B,CAAC;IAEM,mBAAmB,CAAC,MAAe;QACxC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;IAEM,gBAAgB;QACrB,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE;YACxB,UAAU,EAAE;gBACV,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE;gBAC/B,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE;aAC7B;SACF,CAAC;IACJ,CAAC;IAWa,cAAc;;YAC1B,MAAM,IAAI,kBAAa,EAAE,CAAC,eAAe,CACvC,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,EAAE,CAC1C,CAAC;QACJ,CAAC;KAAA;CACF;;kBAlEoB,SAAS"}
|
package/lib/Web/Fastify.js
CHANGED
|
@@ -24,24 +24,24 @@ function WebServer() {
|
|
|
24
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const Server = (0, fastify_1.default)({ logger: false });
|
|
26
26
|
Server.register(static_1.default, {
|
|
27
|
-
root: path_1.default.join(__dirname,
|
|
28
|
-
prefix:
|
|
27
|
+
root: path_1.default.join(__dirname, "public"),
|
|
28
|
+
prefix: "/public/",
|
|
29
29
|
});
|
|
30
30
|
Server.register(view_1.default, {
|
|
31
31
|
engine: {
|
|
32
32
|
ejs: ejs_1.default,
|
|
33
33
|
},
|
|
34
|
-
root: path_1.default.join(__dirname,
|
|
35
|
-
viewExt:
|
|
34
|
+
root: path_1.default.join(__dirname, "Views"),
|
|
35
|
+
viewExt: "ejs",
|
|
36
36
|
});
|
|
37
37
|
Server.listen({ port: Keys_1.General.PORT }, (err, address) => {
|
|
38
38
|
if (err) {
|
|
39
39
|
Server.log.error(err);
|
|
40
|
-
outers_1.Console.red(
|
|
40
|
+
outers_1.Console.red("Failed to start the server", err);
|
|
41
41
|
process.exit(1);
|
|
42
42
|
}
|
|
43
43
|
Server.log.info(`AxioDB Web Interface is listening on ${address}`);
|
|
44
|
-
outers_1.Console.green(
|
|
44
|
+
outers_1.Console.green("Web Interface Server is running on", address);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
package/lib/Web/Fastify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fastify.js","sourceRoot":"","sources":["../../source/Web/Fastify.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Fastify.js","sourceRoot":"","sources":["../../source/Web/Fastify.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,4BA4BC;AAtCD,sDAA8B;AAC9B,mCAAiC;AACjC,gDAAwB;AACxB,6DAA4C;AAC5C,yDAAwC;AACxC,8CAAsB;AAGtB,sCAAsC;AAEtC,SAA8B,SAAS;;QACrC,MAAM,MAAM,GAAG,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAG1C,MAAM,CAAC,QAAQ,CAAC,gBAAa,EAAE;YAC7B,IAAI,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;YACpC,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QAGH,MAAM,CAAC,QAAQ,CAAC,cAAW,EAAE;YAC3B,MAAM,EAAE;gBACN,GAAG,EAAE,aAAG;aACT;YACD,IAAI,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;YACnC,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QAGH,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,cAAO,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YACrD,IAAI,GAAG,EAAE,CAAC;gBACR,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACtB,gBAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;gBAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yCAAyC,OAAO,EAAE,CAAC,CAAC;YACpE,gBAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;IACL,CAAC;CAAA"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Router.js","sourceRoot":"","sources":["../../../source/Web/Router/Router.ts"],"names":[],"mappings":""}
|
package/lib/config/DB.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import schemaValidate from "../Models/validator.models";
|
|
|
3
3
|
import FileManager from "../Storage/FileManager";
|
|
4
4
|
import FolderManager from "../Storage/FolderManager";
|
|
5
5
|
import Configure from "../Operation/Indexation.operation";
|
|
6
|
-
export declare const DBMS_Name = "AxioDB";
|
|
7
|
-
export declare const DBMS_File_EXT = ".axiodb";
|
|
8
6
|
export { SchemaTypes, schemaValidate, FileManager, FolderManager, Configure };
|
|
9
7
|
declare const _default: {
|
|
10
8
|
SchemaTypes: {
|
package/lib/config/DB.js
CHANGED
|
@@ -3,7 +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.Configure = exports.FolderManager = exports.FileManager = exports.schemaValidate = exports.SchemaTypes =
|
|
6
|
+
exports.Configure = exports.FolderManager = exports.FileManager = exports.schemaValidate = exports.SchemaTypes = void 0;
|
|
7
7
|
const DataTypes_models_1 = require("../Models/DataTypes.models");
|
|
8
8
|
Object.defineProperty(exports, "SchemaTypes", { enumerable: true, get: function () { return DataTypes_models_1.SchemaTypes; } });
|
|
9
9
|
const validator_models_1 = __importDefault(require("../Models/validator.models"));
|
|
@@ -16,8 +16,6 @@ const Indexation_operation_1 = __importDefault(require("../Operation/Indexation.
|
|
|
16
16
|
exports.Configure = Indexation_operation_1.default;
|
|
17
17
|
const Fastify_1 = __importDefault(require("../Web/Fastify"));
|
|
18
18
|
(0, Fastify_1.default)();
|
|
19
|
-
exports.DBMS_Name = "AxioDB";
|
|
20
|
-
exports.DBMS_File_EXT = ".axiodb";
|
|
21
19
|
exports.default = {
|
|
22
20
|
SchemaTypes: DataTypes_models_1.SchemaTypes,
|
|
23
21
|
schemaValidate: validator_models_1.default,
|
package/lib/config/DB.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AACA,iEAAyD;
|
|
1
|
+
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AACA,iEAAyD;AAWhD,4FAXA,8BAAW,OAWA;AAVpB,kFAAwD;AAUlC,yBAVf,0BAAc,CAUe;AATpC,yEAAiD;AASX,sBAT/B,qBAAW,CAS+B;AARjD,6EAAqD;AAQF,wBAR5C,uBAAa,CAQ4C;AAPhE,6FAA0D;AAOQ,oBAP3D,8BAAS,CAO2D;AAJ3E,6DAAuC;AACvC,IAAA,iBAAS,GAAE,CAAC;AAMZ,kBAAe;IACb,WAAW,EAAX,8BAAW;IACX,cAAc,EAAd,0BAAc;IACd,WAAW,EAAX,qBAAW;IACX,SAAS,EAAT,8BAAS;IACT,aAAa,EAAb,uBAAa;CACd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.General = void 0;
|
|
4
|
+
var General;
|
|
5
|
+
(function (General) {
|
|
6
|
+
General["DBMS_Name"] = "AxioDB";
|
|
7
|
+
General["DBMS_File_EXT"] = ".axiodb";
|
|
8
|
+
})(General || (exports.General = General = {}));
|
|
9
|
+
//# sourceMappingURL=Keys.js.map
|
|
@@ -0,0 +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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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",
|