Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spotlightjs/sidecar

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spotlightjs/sidecar - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

9

dist/main.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc