axiodb 1.0.17 → 1.1.0

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 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)().then((r) => console.log(r));
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,
@@ -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,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACxC,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"}
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"}
@@ -1 +1 @@
1
- export default function startWebServer(): Promise<void>;
1
+ export default function startWebServer(): void;
@@ -1,13 +1,4 @@
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
  };
@@ -19,21 +10,18 @@ const Keys_1 = require("../config/Keys/Keys");
19
10
  const path_1 = __importDefault(require("path"));
20
11
  const static_1 = __importDefault(require("@fastify/static"));
21
12
  function startWebServer() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- const Server = (0, fastify_1.default)({ logger: false });
24
- Server.register(static_1.default, {
25
- root: path_1.default.resolve(process.cwd(), "public"),
26
- prefix: "/public/",
27
- });
28
- Server.listen({ port: Keys_1.WebServer.ServerPORT }, (err, address) => {
29
- if (err) {
30
- Server.log.error(err);
31
- outers_1.Console.red("Failed to start the server", err);
32
- process.exit(1);
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
- });
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":";;;;;;;;;;;;;;AAMA,iCAmBC;AAzBD,sDAA8B;AAC9B,mCAAiC;AACjC,8CAAmE;AACnE,gDAAwB;AACxB,6DAA4C;AAE5C,SAA8B,cAAc;;QAC1C,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,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC;YAC3C,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QAGH,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,gBAAe,CAAC,UAAU,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YACnE,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"}
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.17",
3
+ "version": "1.1.0",
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
+ }