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

fable

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

5

package.json
{
"name": "fable",
"version": "0.1.5",
"version": "0.1.6",
"description": "An entity behavior management and API bundling library.",

@@ -32,4 +32,5 @@ "main": "source/Fable.js",

"fable-log": "^0.1.3",
"fable-settings": "^0.0.2"
"fable-settings": "^0.0.2",
"fable-uuid": "^0.1.3"
}
}

@@ -27,3 +27,14 @@ /**

// Instantiate the UUID generator
var libUUID = require('fable-uuid').new(_Settings.settings);
/**
* Get a UUID based on the settings
*/
var getUUID = function()
{
return libUUID.getUUID();
}
/**
* Add Services references (e.g. log & settings) to an Object

@@ -77,2 +88,3 @@ *

addServices: addServices,
getUUID: getUUID,
new: createNew

@@ -79,0 +91,0 @@ });

@@ -64,2 +64,18 @@ /**

(
'Generate a uuid...',
function(fDone)
{
testFable = require('../source/Fable.js').new({Product:'LogTest', LogStreams:[{streamtype:'process.stdout'}]});
Expect(testFable).to.have.a.property('log')
.that.is.a('object');
var tmpUUID = testFable.getUUID();
testFable.log.info('Generating a uuid: '+tmpUUID);
Expect(tmpUUID)
.to.be.a('string')
.to.not.be.empty;
fDone();
}
);
test
(
'Change some settings later...',

@@ -66,0 +82,0 @@ function(fDone)

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