systemlynx 1.10.5 → 1.10.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systemlynx",
3
- "version": "1.10.5",
3
+ "version": "1.10.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@ module.exports = function ServiceRequestHandler(
61
61
  console.log(err);
62
62
  errCount++;
63
63
  if (reconnectModule) reconnectModule(() => tryRequest(cb, errCount));
64
- else Service.reconnectService(() => tryRequest(cb, errCount));
64
+ else Service.resetConnection(() => tryRequest(cb, errCount));
65
65
  } else console.error(Error(`[SystemLynx][Service][Error]: Invalid route:${err}`));
66
66
  };
67
67
 
@@ -2,7 +2,6 @@
2
2
  const clearFolder = require("./clearFolder");
3
3
  const clearTempFolder = clearFolder.bind({}, "./temp");
4
4
  module.exports = function createServer(customServer) {
5
- const cwd = process.cwd();
6
5
  //express server
7
6
  const express = require("express");
8
7
  const server = customServer || express();
@@ -37,7 +36,6 @@ module.exports = function createServer(customServer) {
37
36
 
38
37
  server.use("/sf", singleFileUpload);
39
38
  server.use("/mf", multiFileUpload);
40
- server.use(express.static(cwd + "/public"));
41
39
  server.use(express.json({ limit: "5mb" }));
42
40
 
43
41
  !customServer &&