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
83
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.5 to 1.3.6

9

braid-http-client.js

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

var waitTime = 10
var waitedTime = 0
var res = null

@@ -255,4 +256,11 @@ var subscription_cb = null

if (params.retry.timeout && waitedTime + waitTime > params.retry.timeout) {
e = new Error('Timeout Error')
subscription_error?.(e)
return fail(e)
}
console.log(`retrying in ${waitTime}ms: ${url} after error: ${e}`)
setTimeout(connect, waitTime)
waitedTime += waitTime
waitTime = Math.min(waitTime * 2, 3000)

@@ -416,2 +424,3 @@ }

waitTime = 10
waitedTime = 0
} catch (e) { on_error(e) }

@@ -418,0 +427,0 @@ }

2

package.json
{
"name": "braid-http",
"version": "1.3.5",
"version": "1.3.6",
"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