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

blue-cot

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blue-cot - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

13

lib/db_handle.js

@@ -73,3 +73,5 @@ const querystring = require('querystring')

const db = API
let attempt = 0
const tryIt = async () => {
if (++attempt > 10) throw errors_.new('too many attempts', 400, { docId, fn })
let doc

@@ -82,5 +84,10 @@ try {

}
const res = await db.put(fn(doc))
if (res.ok) return res
else return tryIt()
try {
const res = await db.put(fn(doc))
if (res.ok) return res
else return tryIt()
} catch (err) {
if (err.statusCode === 409) return tryIt()
else throw err
}
}

@@ -87,0 +94,0 @@ return tryIt()

@@ -24,3 +24,3 @@ {

],
"version": "5.0.0",
"version": "5.0.1",
"main": "lib/cot.js",

@@ -27,0 +27,0 @@ "dependencies": {

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