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

@tabcat/orbit-db-set

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tabcat/orbit-db-set - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@tabcat/orbit-db-set",
"version": "1.0.1",
"version": "1.0.2",
"description": "an orbit-db store as an ES6 Set",

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

@@ -8,2 +8,4 @@

const valueUndefinedYes = () => new Error('cannot add undefined to set')
const type = 'set'

@@ -28,2 +30,3 @@

async add (value, { meta } = {}) {
if (value === undefined) throw valueUndefinedYes()
meta = meta ? { meta } : {}

@@ -34,2 +37,3 @@ return this._addOperation({ op: opcodes.ADD, value, ...meta })

async delete (value, { meta } = {}) {
if (value === undefined) throw valueUndefinedYes()
meta = meta ? { meta } : {}

@@ -36,0 +40,0 @@ return this._addOperation({ op: opcodes.DELETE, value, ...meta })

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