New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

braid-http

Package Overview
Dependencies
Maintainers
0
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braid-http - npm Package Compare versions

Comparing version 1.3.28 to 1.3.29

2

braid-http-client.js

@@ -1044,3 +1044,3 @@ // var peer = Math.random().toString(36).substr(2)

// if we had an error, be sure to unregister ourselves
await unset(e)
unset(e)
throw e

@@ -1047,0 +1047,0 @@ }

@@ -280,19 +280,21 @@ var assert = require('assert')

// in this case, we're closing the given stream
var m = braidify.multiplexers?.get(multiplexer)
// if the multiplexer doesn't exist, send an error
var m = braidify.multiplexers?.get(multiplexer)
if (!m) {
var msg = `multiplexer ${multiplexer} does not exist`
res.writeHead(400, {'Content-Type': 'text/plain'})
res.end(msg)
return
return res.end(`multiplexer /${multiplexer} does not exist`)
}
// remove this stream, and notify it
// if the stream doesn't exist, send an error
let s = m.streams.get(stream)
if (s) {
s()
m.streams.delete(stream)
} else m.streams.set(stream, 'abort')
if (!s) {
res.writeHead(400, {'Content-Type': 'text/plain'})
return res.end(`stream /${multiplexer}/${stream} does not exist`)
}
// remove this stream, and notify it
m.streams.delete(stream)
s()
// let the requester know we succeeded

@@ -299,0 +301,0 @@ res.writeHead(200, { 'Multiplex-Version': '0.0.1' })

{
"name": "braid-http",
"version": "1.3.28",
"version": "1.3.29",
"description": "An implementation of Braid-HTTP for Node.js and Browsers",

@@ -5,0 +5,0 @@ "scripts": {

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