fable-serviceproviderbase
Advanced tools
Comparing version 3.0.4 to 3.0.5
{ | ||
"name": "fable-serviceproviderbase", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Simple base classes for fable services.", | ||
@@ -45,3 +45,3 @@ "main": "source/Fable-ServiceProviderBase.js", | ||
"chai": "4.3.7", | ||
"fable": "^3.0.29", | ||
"fable": "^3.0.46", | ||
"mocha": "10.2.0", | ||
@@ -48,0 +48,0 @@ "nyc": "^15.1.0" |
@@ -28,2 +28,7 @@ /** | ||
this.Hash = (typeof(pServiceHash) === 'string') ? pServiceHash : `${this.UUID}`; | ||
// Pull back a few things | ||
this.log = this.fable.log; | ||
this.services = this.fable.services; | ||
this.defaultServices = this.fable.defaultServices; | ||
} | ||
@@ -30,0 +35,0 @@ |
@@ -118,6 +118,9 @@ /** | ||
testFable.serviceManager.addServiceType('SimpleService', SimpleService); | ||
testFable.serviceManager.instantiateServiceProvider('SimpleService', {SomeOption: true}, 'SimpleService-123'); | ||
let tmpSimpleService = testFable.serviceManager.instantiateServiceProvider('SimpleService', {SomeOption: true}, 'SimpleService-123'); | ||
Expect(testFable.serviceManager.services['SimpleService']['SimpleService-123']).to.be.an('object'); | ||
// The passed-in magic stuff should work too. | ||
tmpSimpleService.log.info(`There were almost ${tmpSimpleService.defaultServices.DataFormat.formatterDollars(9821229.37)} dollars just lying here!`); | ||
Expect(testFable.serviceManager.defaultServices['SimpleService']).to.be.an('object'); | ||
@@ -124,0 +127,0 @@ |
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
17561
282