Socket
Socket
Sign inDemoInstall

nostr-tools

Package Overview
Dependencies
Maintainers
1
Versions
142
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.10.0 to 0.10.1

2

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

@@ -5,0 +5,0 @@ "repository": {

import 'websocket-polyfill'
import {verifySignature} from './event'
import {matchFilters} from './filter'

@@ -91,6 +92,8 @@ export function normalizeRelayURL(url) {

if (await verifySignature(event)) {
if (channels[channel]) {
channels[channel](event)
}
if (
(await verifySignature(event)) &&
channels[channel] &&
matchFilters(openSubs[channel], event)
) {
channels[channel](event)
}

@@ -97,0 +100,0 @@ return

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