You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

braid-http

Package Overview
Dependencies
Maintainers
2
Versions
126
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

to
1.3.61

11

braid-http-client.js

@@ -952,3 +952,3 @@

try {
var mux_was_done = await promise_done(mux_promise)
var mux_was_done = await promise_done(mux_created_promise)

@@ -983,3 +983,6 @@ var r = await braid_fetch(`${origin}/.well-known/multiplexer/${multiplexer}/${request}`, {

var mux_promise = (async () => {
// This promise resolves when the create_multiplexer request responds.
// - its value is undefined if successfully created
// - its value is false if creation failed
var mux_created_promise = (async () => {
// attempt to establish a multiplexed connection

@@ -1044,3 +1047,3 @@ try {

// then fallback to normal fetch
if ((await promise_done(mux_promise)) && (await mux_promise) === false) {
if ((await promise_done(mux_created_promise)) && (await mux_created_promise) === false) {
// if the user is specifically asking for multiplexing,

@@ -1111,3 +1114,3 @@ // throw an error instead

try {
var mux_was_done = await promise_done(mux_promise)
var mux_was_done = await promise_done(mux_created_promise)

@@ -1114,0 +1117,0 @@ // callback for testing

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

@@ -32,3 +32,6 @@ "scripts": {

"web-streams-node": "^0.4.0"
},
"devDependencies": {
"express": "^4.21.2"
}
}