Socket
Socket
Sign inDemoInstall

toni

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toni - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

1

lib/toni.js

@@ -51,2 +51,3 @@ /*

me.btable.fill( 0x00 );
me.items = 0;
return me;

@@ -53,0 +54,0 @@ };

2

package.json
{
"name": "toni"
, "version": "0.1.2"
, "version": "0.2.0"
, "description": "Toni, a simple and efficient bitmap implementation for integer sets, using bitwise operations and a Buffer. Modifying a single bit instead of an entire byte, obviously saves 87.5% of Buffer space, with low performance loss."

@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/toni"

@@ -94,4 +94,4 @@ ### Toni

* Add an integer value to the set and test item/value presence in the set.
* When the value is out of range, or if the element is already in the
* set, the operation fails and it returns -1.
* When the value is out of range, or if the element is already present, the
* operation fails and it returns -1.
*

@@ -98,0 +98,0 @@ */

@@ -83,2 +83,5 @@ /*

log( '- manually set items to %d', n );
toni.items = n;
log( '- now #clear() bitmap' );

@@ -90,6 +93,5 @@ toni.clear();

log( '- check item property, should be %d', 0 );
assert.equal( toni.items, 0, 'Something goes wrong with clear function, wrong value for item counter!!' );
assert.equal( toni.items, 0, 'wrong value for item counter!' );
exit();

@@ -96,0 +98,0 @@ };

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