owlservable 0.2.7 → 0.2.8

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -341,7 +341,7 @@ function startDashboard(port) {
341
341
 
342
342
  if (urlPath === '/events') {
343
343
  try { req.socket.setNoDelay(true) } catch (_) {}
344
- res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' })
344
+ res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive', 'X-Accel-Buffering': 'no' })
345
345
  const send = d => { try { res.write('data: ' + JSON.stringify(d) + '\n\n') } catch (_) {} }
346
346
  send({ type: 'init', requests: getRequests(), save: getSaveInfo() })
347
347
  const onReq = r => send({ type: 'request', record: r })
package/index.js CHANGED
@@ -341,7 +341,7 @@ function startDashboard(port) {
341
341
 
342
342
  if (urlPath === '/events') {
343
343
  try { req.socket.setNoDelay(true) } catch (_) {}
344
- res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' })
344
+ res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive', 'X-Accel-Buffering': 'no' })
345
345
  const send = d => { try { res.write('data: ' + JSON.stringify(d) + '\n\n') } catch (_) {} }
346
346
  send({ type: 'init', requests: getRequests(), save: getSaveInfo() })
347
347
  const onReq = r => send({ type: 'request', record: r })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owlservable",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Minimalist Observability Platform. Zero config, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "index.js",