axiodb 2.13.48 → 2.13.50
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/server/config/keys.js +1 -1
- package/lib/server/config/keys.js.map +1 -1
- package/lib/server/config/server.js +16 -14
- package/lib/server/config/server.js.map +1 -1
- package/lib/server/public/AxioControl/.vite/ssr-manifest.json +13 -13
- package/lib/server/public/DONT_TOUCH_THIS_FILE.js.map +1 -1
- package/package.json +1 -1
- package/a.js +0 -3
|
@@ -9,5 +9,5 @@ var ServerKeys;
|
|
|
9
9
|
(function (ServerKeys) {
|
|
10
10
|
ServerKeys[ServerKeys["PORT"] = 27018] = "PORT";
|
|
11
11
|
})(ServerKeys || (exports.ServerKeys = ServerKeys = {}));
|
|
12
|
-
exports.staticPath = path_1.default.resolve(__dirname,
|
|
12
|
+
exports.staticPath = path_1.default.resolve(__dirname, "../public/AxioControl");
|
|
13
13
|
//# sourceMappingURL=keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../source/server/config/keys.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,IAAY,UAEX;AAFD,WAAY,UAAU;
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../source/server/config/keys.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,+CAAY,CAAA;AACd,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAEY,QAAA,UAAU,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC"}
|
|
@@ -24,19 +24,19 @@ function createAxioDBControlServer() {
|
|
|
24
24
|
const AxioDBControlServer = (0, fastify_1.default)({
|
|
25
25
|
logger: false, // Disable default logging
|
|
26
26
|
trustProxy: true, // Trust the reverse proxy headers
|
|
27
|
-
bodyLimit: 52428800 // Set body limit to 50MB
|
|
27
|
+
bodyLimit: 52428800, // Set body limit to 50MB
|
|
28
28
|
});
|
|
29
29
|
// Attach Middlewares
|
|
30
30
|
yield AxioDBControlServer.register(cors_1.default, {
|
|
31
|
-
origin:
|
|
32
|
-
methods: [
|
|
33
|
-
allowedHeaders: [
|
|
31
|
+
origin: "*", // Allow all origins
|
|
32
|
+
methods: ["GET", "HEAD", "PUT", "PATCH", "POST", "DELETE"], // Allow specific methods
|
|
33
|
+
allowedHeaders: ["Content-Type", "Authorization"], // Allow specific headers
|
|
34
34
|
credentials: true, // Allow credentials
|
|
35
|
-
exposedHeaders: [
|
|
36
|
-
maxAge: 86400 // Cache preflight response for 24 hours
|
|
35
|
+
exposedHeaders: ["Content-Length", "X-Requested-With"], // Expose specific headers
|
|
36
|
+
maxAge: 86400, // Cache preflight response for 24 hours
|
|
37
37
|
});
|
|
38
38
|
// Configure JSON parsing
|
|
39
|
-
AxioDBControlServer.addContentTypeParser(
|
|
39
|
+
AxioDBControlServer.addContentTypeParser("application/json", { parseAs: "string", bodyLimit: 52428800 }, (req, body, done) => {
|
|
40
40
|
try {
|
|
41
41
|
const json = JSON.parse(body);
|
|
42
42
|
done(null, json);
|
|
@@ -49,17 +49,20 @@ function createAxioDBControlServer() {
|
|
|
49
49
|
// Serve static files first (JS, CSS, images)
|
|
50
50
|
yield AxioDBControlServer.register(static_1.default, {
|
|
51
51
|
root: keys_1.staticPath,
|
|
52
|
-
prefix:
|
|
53
|
-
decorateReply: false
|
|
52
|
+
prefix: "/",
|
|
53
|
+
decorateReply: false,
|
|
54
54
|
});
|
|
55
55
|
// Serve React app for all other routes as SPA fallback
|
|
56
|
-
AxioDBControlServer.get(
|
|
57
|
-
const indexPath = path_1.default.join(keys_1.staticPath,
|
|
56
|
+
AxioDBControlServer.get("/", (request, reply) => __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const indexPath = path_1.default.join(keys_1.staticPath, "index.html");
|
|
58
58
|
const stream = fs_1.default.createReadStream(indexPath);
|
|
59
|
-
return reply.type(
|
|
59
|
+
return reply.type("text/html").send(stream);
|
|
60
60
|
}));
|
|
61
61
|
try {
|
|
62
|
-
yield AxioDBControlServer.listen({
|
|
62
|
+
yield AxioDBControlServer.listen({
|
|
63
|
+
port: keys_1.ServerKeys.PORT,
|
|
64
|
+
host: "0.0.0.0",
|
|
65
|
+
});
|
|
63
66
|
console.log(`AxioDB Control Server is running on http://localhost:${keys_1.ServerKeys.PORT}`);
|
|
64
67
|
}
|
|
65
68
|
catch (err) {
|
|
@@ -68,5 +71,4 @@ function createAxioDBControlServer() {
|
|
|
68
71
|
}
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
|
-
;
|
|
72
74
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../source/server/config/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../source/server/config/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,4CA2DC;AAlED,sDAA8B;AAC9B,yDAAwC;AACxC,6DAA4C;AAC5C,gDAAwB;AACxB,4CAAoB;AACpB,iCAAgD;AAEhD,SAA8B,yBAAyB;;QACrD,MAAM,mBAAmB,GAAG,IAAA,iBAAO,EAAC;YAClC,MAAM,EAAE,KAAK,EAAE,0BAA0B;YACzC,UAAU,EAAE,IAAI,EAAE,kCAAkC;YACpD,SAAS,EAAE,QAAQ,EAAE,yBAAyB;SAC/C,CAAC,CAAC;QAEH,qBAAqB;QACrB,MAAM,mBAAmB,CAAC,QAAQ,CAAC,cAAW,EAAE;YAC9C,MAAM,EAAE,GAAG,EAAE,oBAAoB;YACjC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,yBAAyB;YACrF,cAAc,EAAE,CAAC,cAAc,EAAE,eAA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AAU,CAAC,IAAI;gBACrB,IAAI,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,OAAO,CAAC,GAAG,CACT,wDAAwD,iBAAU,CAAC,IAAI,EAAE,CAC1E,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"\u0000/home/
|
|
3
|
-
"\u0000/home/
|
|
4
|
-
"\u0000/home/
|
|
5
|
-
"\u0000/home/
|
|
6
|
-
"\u0000/home/
|
|
7
|
-
"\u0000/home/
|
|
8
|
-
"\u0000/home/
|
|
9
|
-
"\u0000/home/
|
|
10
|
-
"\u0000/home/
|
|
11
|
-
"\u0000/home/
|
|
12
|
-
"\u0000/home/
|
|
13
|
-
"\u0000/home/
|
|
14
|
-
"\u0000/home/
|
|
2
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react-dom/cjs/react-dom-client.production.js?commonjs-exports": [],
|
|
3
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react-dom/cjs/react-dom.production.js?commonjs-exports": [],
|
|
4
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react-dom/client.js?commonjs-es-import": [],
|
|
5
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react-dom/client.js?commonjs-module": [],
|
|
6
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react-dom/index.js?commonjs-module": [],
|
|
7
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react/cjs/react-jsx-runtime.production.js?commonjs-exports": [],
|
|
8
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react/cjs/react.production.js?commonjs-exports": [],
|
|
9
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react/index.js?commonjs-es-import": [],
|
|
10
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react/index.js?commonjs-module": [],
|
|
11
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react/jsx-runtime.js?commonjs-es-import": [],
|
|
12
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/react/jsx-runtime.js?commonjs-module": [],
|
|
13
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/scheduler/cjs/scheduler.production.js?commonjs-exports": [],
|
|
14
|
+
"\u0000/home/runner/work/AxioDB/AxioDB/GUI/node_modules/scheduler/index.js?commonjs-module": [],
|
|
15
15
|
"\u0000vite/modulepreload-polyfill.js": [],
|
|
16
16
|
"index.html": [],
|
|
17
17
|
"node_modules/react-dom/cjs/react-dom-client.production.js": [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DONT_TOUCH_THIS_FILE.js","sourceRoot":"","sources":["../../../source/server/public/DONT_TOUCH_THIS_FILE.ts"],"names":[],"mappings":";AAAA,OAAO,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"DONT_TOUCH_THIS_FILE.js","sourceRoot":"","sources":["../../../source/server/public/DONT_TOUCH_THIS_FILE.ts"],"names":[],"mappings":";AAAA,OAAO,CAAC,GAAG,CACT,4FAA4F,CAC7F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.50",
|
|
4
4
|
"description": "A blazing-fast, lightweight, and scalable nodejs package based DBMS for modern application. Supports schemas, encryption, and advanced query capabilities.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|
package/a.js
DELETED