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

dht-keyvalue

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dht-keyvalue - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

example.js

@@ -30,7 +30,7 @@ const dhtKv = require('./server')

dkv.update(key, newValue, updated => {
console.log(`Upddate successful (${updated}) for key, ${key}. New value: ${newValue}`)
console.log(`Update successful (${updated}) for key, ${key}. New value: ${newValue}`)
// Retrieve the updated value
dkv.get(key, (err, value) => {
console.log(`Updated ${key}: ${value}`)
console.log(`Get successful for updated ${key}: ${value}`)
})

@@ -37,0 +37,0 @@

{
"name": "dht-keyvalue",
"version": "1.1.0",
"version": "1.1.1",
"description": "Store key-value pairs on the mainline bittorrent DHT network, and retreive/update them by key name.",

@@ -5,0 +5,0 @@ "main": "server.js",

@@ -25,3 +25,3 @@ module.exports = DhtKv

} else {
let err = `Error: A key with that name already exists. Not adding again: ${keyTable[key].key}`
let err = `Error: A key with that name already exists. Not adding again: ${items[item].key}`
return cb(err)

@@ -28,0 +28,0 @@ }

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