Socket
Socket
Sign inDemoInstall

ssb-conn-query

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-conn-query - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

1

lib/queries/health.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasPinged = exports.hasSuccessfulAttempts = exports.hasOnlyFailedAttempts = exports.hasNoAttempts = void 0;
function hasNoAttempts([_addr, p]) {

@@ -4,0 +5,0 @@ return !p.stateChange;

2

lib/queries/sorting.d.ts
import { Peer } from '../types';
export declare function sortByStateChange(peers: Array<Peer>): [string, import("../types").Data][];
export declare function sortByStateChange(peers: Array<Peer>): Peer[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sortByStateChange = void 0;
function sortByStateChange(peers) {

@@ -4,0 +5,0 @@ return peers.sort((a, b) => a[1].stateChange - b[1].stateChange);

@@ -1,2 +0,3 @@

export declare function passesExpBackoff(step: number, max?: number, timestamp?: number): ([_addr, data]: [string, import("../types").Data]) => boolean;
export declare function passesGroupDebounce(groupMin: number, timestamp?: number): (group: [string, import("../types").Data][]) => [string, import("../types").Data][];
import { Peer } from '../types';
export declare function passesExpBackoff(step: number, max?: number, timestamp?: number): ([_addr, data]: Peer) => boolean;
export declare function passesGroupDebounce(groupMin: number, timestamp?: number): (group: Array<Peer>) => Peer[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.passesGroupDebounce = exports.passesExpBackoff = void 0;
function passesExpBackoff(step, max = Infinity, timestamp = Date.now()) {

@@ -4,0 +5,0 @@ return ([_addr, data]) => {

{
"name": "ssb-conn-query",
"description": "Module that helps querying potential SSB peer connections",
"version": "1.0.0",
"version": "1.1.0",
"homepage": "https://github.com/staltz/ssb-conn-query",

@@ -13,10 +13,10 @@ "main": "lib/index.js",

"dependencies": {
"ssb-conn-db": "~1.0.0",
"ssb-conn-hub": "~1.0.0",
"ssb-conn-db": "~1.0.1",
"ssb-conn-hub": "~1.1.0",
"ssb-conn-staging": "~1.0.0"
},
"devDependencies": {
"@types/node": "^11.10.4",
"tape": "^4.9.2",
"typescript": "3.5.x"
"@types/node": "12.x",
"tape": "^5.2.2",
"typescript": "4.2.x"
},

@@ -23,0 +23,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