Comparing version 0.1.5 to 0.1.6
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8360
195
3
+ Addedfable-uuid@^0.1.3