Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nostr-tools

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nostr-tools - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

2

package.json
{
"name": "nostr-tools",
"version": "0.4.4",
"version": "0.4.5",
"description": "Tools for making a Nostr client.",

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

@@ -28,7 +28,10 @@ import {getEventHash, signEvent} from './event'

const activeCallback = cb
const activeFilters = filter
activeSubscriptions[id] = {
sub: ({cb = cb, filter = filter}) =>
sub: ({cb = activeCallback, filter = activeFilters}) =>
Object.entries(subControllers).map(([relayURL, sub]) => [
relayURL,
sub({cb, filter}, id)
sub.sub({cb, filter}, id)
]),

@@ -35,0 +38,0 @@ addRelay: relay => {

@@ -121,4 +121,8 @@ import 'websocket-polyfill'

const activeCallback = cb
const activeFilters = filters
return {
sub: ({cb = cb, filter = filter}) => sub({cb, filter}, channel),
sub: ({cb = activeCallback, filter = activeFilters}) =>
sub({cb, filter}, channel),
unsub: () => {

@@ -125,0 +129,0 @@ delete openSubs[channel]

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