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

fable-uuid

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-uuid - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

package.json
{
"name": "fable-uuid",
"version": "0.1.2",
"version": "0.1.3",
"description": "A simple UUID Generator.",

@@ -34,6 +34,4 @@ "main": "source/Fable-UUID.js",

"biguint-format": "1.0.0",
"fable-log": "0.1.1",
"fable-settings": "0.0.1",
"flake-idgen": "1.0.0"
}
}

@@ -18,12 +18,5 @@ /**

{
function createNew(pSettings, pLogProvider)
function createNew(pSettings)
{
// This generates an object that requires you to construct it with new(Settings,Provider) before using it...
if (typeof(pLogProvider) !== 'object')
{
return {new: createNew};
}
var _Settings = pSettings;
var _Log = pLogProvider;

@@ -52,4 +45,2 @@ // Provide sane defaults for data center and worker.

_Log.trace('Fable UUID Generator Initialized with DataCenter #'+_DataCenter+' and Worker #'+_Worker);
/***

@@ -56,0 +47,0 @@ * Return a nice string UUID

@@ -25,4 +25,2 @@ /**

});
var _Log = require('fable-log');
_Log.initialize();

@@ -71,3 +69,3 @@ suite

{
var tmpFableUUID = require('../source/Fable-UUID.js').new(_MockSettings, _Log);
var tmpFableUUID = require('../source/Fable-UUID.js').new(_MockSettings);
Expect(tmpFableUUID).to.have.a.property('new')

@@ -91,3 +89,3 @@ .that.is.a('function');

{
var tmpFableUUID = require('../source/Fable-UUID.js').new(_MockSettings, _Log);
var tmpFableUUID = require('../source/Fable-UUID.js').new(_MockSettings);
var tmpUUID = tmpFableUUID.getUUID();

@@ -107,3 +105,3 @@ Expect(tmpUUID)

{
var tmpFableUUID = require('../source/Fable-UUID.js').new(false, _Log);
var tmpFableUUID = require('../source/Fable-UUID.js').new(false);
var tmpUUID = tmpFableUUID.getUUID();

@@ -123,3 +121,3 @@ Expect(tmpUUID)

{
var tmpFableUUID = require('../source/Fable-UUID.js').new({}, _Log);
var tmpFableUUID = require('../source/Fable-UUID.js').new({});
var tmpUUID = tmpFableUUID.getUUID();

@@ -139,3 +137,3 @@ Expect(tmpUUID)

{
var tmpFableUUID = require('../source/Fable-UUID.js').new({UUID: {DataCenter:'BAD',Worker:'JOB'}}, _Log);
var tmpFableUUID = require('../source/Fable-UUID.js').new({UUID: {DataCenter:'BAD',Worker:'JOB'}});
var tmpUUID = tmpFableUUID.getUUID();

@@ -142,0 +140,0 @@ Expect(tmpUUID)

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