Socket
Socket
Sign inDemoInstall

hat

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

5

index.js

@@ -54,2 +54,7 @@ var hat = module.exports = function (bits, base) {

fn.set = function (id, value) {
fn.hats[id] = value;
return fn;
};
fn.bits = bits || 128;

@@ -56,0 +61,0 @@ fn.base = base || 16;

2

package.json
{
"name" : "hat",
"version" : "0.0.2",
"version" : "0.0.3",
"description" : "generate random IDs and avoid collisions",

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

@@ -33,2 +33,5 @@ var hat = require('../');

assert.deepEqual(rack.hats[c], [ 'c', 'c', 'c' ]);
rack.set(a, 'AAA');
assert.equal(rack.get(a), 'AAA');
};

@@ -35,0 +38,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc