Socket
Socket
Sign inDemoInstall

ssb-conn-db

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-conn-db - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

5

lib/atomic-file-codecs.js

@@ -8,3 +8,2 @@ "use strict";

decode: function (input) {
var now = Date.now();
var str = input.toString();

@@ -15,5 +14,3 @@ var MAX_TRIM = 10;

try {
var res = JSON.parse(str.substring(0, str.length - i));
console.log((Date.now() - now).toFixed(0) + ' milliseconds it took');
return res;
return JSON.parse(str.substring(0, str.length - i));
}

@@ -20,0 +17,0 @@ catch (err) {

2

package.json
{
"name": "ssb-conn-db",
"description": "Module that manages a local registry of connectable peers",
"version": "0.3.0",
"version": "0.3.1",
"homepage": "https://github.com/staltz/ssb-conn-db",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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