@spotlightjs/sidecar
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -7,6 +7,6 @@ var __defProp = Object.defineProperty; | ||
}; | ||
import { createWriteStream, readFile } from "fs"; | ||
import { createServer, get } from "http"; | ||
import { extname, join } from "path"; | ||
import { createGunzip, createInflate } from "zlib"; | ||
import { createWriteStream, readFile } from "node:fs"; | ||
import { createServer, get } from "node:http"; | ||
import { extname, join } from "node:path"; | ||
import { createGunzip, createInflate } from "node:zlib"; | ||
const defaultLogger = { | ||
@@ -128,2 +128,3 @@ info: (message) => console.log("🔎 [Spotlight]", message), | ||
res.flushHeaders(); | ||
res.write("\n"); | ||
const sub = buffer2.subscribe(([payloadType, data]) => { | ||
@@ -130,0 +131,0 @@ logger.debug(`🕊️ sending to Spotlight`); |
{ | ||
"name": "@spotlightjs/sidecar", | ||
"description": "A small proxy server to capture and forward data from backend services to Spotlight.", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"license": "Apache-2.0", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.5.2", | ||
"vite": "^4.5.3", | ||
"@spotlightjs/tsconfig": "1.0.0" | ||
@@ -37,0 +37,0 @@ }, |
@@ -1,5 +0,5 @@ | ||
import { createWriteStream, readFile } from 'fs'; | ||
import { IncomingMessage, Server, ServerResponse, createServer, get } from 'http'; | ||
import { extname, join } from 'path'; | ||
import { createGunzip, createInflate } from 'zlib'; | ||
import { createWriteStream, readFile } from 'node:fs'; | ||
import { IncomingMessage, Server, ServerResponse, createServer, get } from 'node:http'; | ||
import { extname, join } from 'node:path'; | ||
import { createGunzip, createInflate } from 'node:zlib'; | ||
import { SidecarLogger, activateLogger, enableDebugLogging, logger } from './logger.js'; | ||
@@ -80,2 +80,5 @@ import { MessageBuffer } from './messageBuffer.js'; | ||
res.flushHeaders(); | ||
// Send something in the body to trigger the `open` event | ||
// This is mostly for Firefox -- see #376 | ||
res.write('\n'); | ||
@@ -82,0 +85,0 @@ const sub = buffer.subscribe(([payloadType, data]) => { |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
48773
33581
865
3
0