@dainprotocol/tunnel 1.1.4 → 1.1.6

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.
@@ -309,11 +309,8 @@ class DainTunnelServer {
309
309
  if (data.event) {
310
310
  res.write(`event: ${data.event}\n`);
311
311
  }
312
- // Split data by newlines and send each line
313
- const dataLines = data.data.split('\n');
314
- for (const line of dataLines) {
315
- res.write(`data: ${line}\n`);
316
- }
312
+ // Write data as-is (don't split - data is already properly formatted)
313
+ res.write(`data: ${data.data}\n`);
317
314
  res.write('\n');
318
315
  // Check if this is a "close" event
319
316
  if (data.event === 'close') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/tunnel",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "private": false,
@@ -11,7 +11,7 @@
11
11
  "author": "Ryan",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@dainprotocol/service-sdk": "^1.3.3",
14
+ "@dainprotocol/service-sdk": "^1.3.6",
15
15
  "@types/body-parser": "^1.19.5",
16
16
  "@types/cors": "^2.8.17",
17
17
  "@types/eventsource": "^3.0.0",