Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "fable", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "An entity behavior management and API bundling library.", | ||
@@ -5,0 +5,0 @@ "main": "source/Fable.js", |
@@ -32,2 +32,3 @@ /** | ||
{ | ||
addServices: addServices, | ||
new: createNew | ||
@@ -37,14 +38,2 @@ }); | ||
/** | ||
* Settings | ||
* | ||
* @property settings | ||
* @type Object | ||
*/ | ||
Object.defineProperty(tmpNewFableObject, 'settings', | ||
{ | ||
get: function() { return _Settings.settings; }, | ||
enumerable: false | ||
}); | ||
/** | ||
* Settings Management Library | ||
@@ -61,15 +50,43 @@ * | ||
/** | ||
* Log Streams | ||
* | ||
* @property log | ||
* @type Object | ||
*/ | ||
Object.defineProperty(tmpNewFableObject, 'log', | ||
{ | ||
get: function() { return _Log; }, | ||
enumerable: false | ||
}); | ||
var addServices = function(pObject) | ||
{ | ||
/** | ||
* Fable Pass-through | ||
* | ||
* @property fable | ||
*/ | ||
Object.defineProperty(pObject, 'fable', | ||
{ | ||
get: function() { return tmpNewFableObject; }, | ||
enumerable: false | ||
}) | ||
/** | ||
* Settings | ||
* | ||
* @property settings | ||
* @type Object | ||
*/ | ||
Object.defineProperty(pObject, 'settings', | ||
{ | ||
get: function() { return _Settings.settings; }, | ||
enumerable: false | ||
}); | ||
/** | ||
* Log Streams | ||
* | ||
* @property log | ||
* @type Object | ||
*/ | ||
Object.defineProperty(pObject, 'log', | ||
{ | ||
get: function() { return _Log; }, | ||
enumerable: false | ||
}); | ||
} | ||
// Add services to ourself. | ||
addServices(tmpNewFableObject); | ||
return tmpNewFableObject; | ||
@@ -76,0 +93,0 @@ } |
@@ -44,2 +44,4 @@ /** | ||
.that.is.a('object'); | ||
Expect(testFable).to.have.a.property('fable') | ||
.that.is.a('object'); | ||
Expect(testFable.settings.Product) | ||
@@ -46,0 +48,0 @@ .to.equal('Fable') |
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
7515
164