Skip to content

Commit 36cf150

Browse files
committed
Release
1 parent 959bb5d commit 36cf150

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44

55
* Initial Release.
66

7+
## 1.0.2
8+
9+
* Bug resolution and optimization.

src/apifront_proxy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const { customAlphabet } = require('nanoid');
1616
const EventEmitter = require('events');
1717
const nanoid = customAlphabet('1234567890abcdefghijklmopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
1818

19-
class databridges_apifront_proxy extends EventEmitter {
19+
class apifront_proxy extends EventEmitter {
2020
#configJson = null;
2121
#proxyPaths = {};
2222
#started = false;
@@ -300,7 +300,7 @@ class databridges_apifront_proxy extends EventEmitter {
300300
await delay(20);
301301
}
302302
// End the response with the last chunk
303-
response.end(JSON.stringify({ status: 1, msg: '', rpc: rpcSvrNameToSend.slice(-chunkSize) }));
303+
response.end(JSON.stringify({ status: 1, msg: '', rpc: [] })); // rpcSvrNameToSend.slice(-chunkSize)
304304
} else {
305305
// If the size is less than or equal to 50, send the entire response at once
306306
response.end(JSON.stringify({ status: 1, msg: '', rpc: rpcSvrNameToSend }));
@@ -611,5 +611,5 @@ class databridges_apifront_proxy extends EventEmitter {
611611
}
612612
}
613613

614-
module.exports = databridges_apifront_proxy;
614+
module.exports = apifront_proxy;
615615

0 commit comments

Comments
 (0)