fable-serviceproviderbase
Advanced tools
Comparing version 3.0.6 to 3.0.7
{ | ||
"name": "fable-serviceproviderbase", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Simple base classes for fable services.", | ||
@@ -45,3 +45,3 @@ "main": "source/Fable-ServiceProviderBase.js", | ||
"chai": "4.3.7", | ||
"fable": "^3.0.46", | ||
"fable": "^3.0.64", | ||
"mocha": "10.2.0", | ||
@@ -48,0 +48,0 @@ "nyc": "^15.1.0" |
@@ -18,12 +18,12 @@ /** | ||
this.serviceType = 'Unknown'; | ||
this.serviceType = 'Unknown'; | ||
// The hash will be a non-standard UUID ... the UUID service uses this base class! | ||
this.UUID = `CORESVC-${Math.floor((Math.random() * (99999 - 10000)) + 10000)}`; | ||
this.UUID = `CORESVC-${Math.floor((Math.random() * (99999 - 10000)) + 10000)}`; | ||
this.Hash = (typeof(pServiceHash) === 'string') ? pServiceHash : `${this.UUID}`; | ||
this.Hash = (typeof(pServiceHash) === 'string') ? pServiceHash : `${this.UUID}`; | ||
} | ||
static isFableService = true; | ||
static isFableService = true; | ||
@@ -30,0 +30,0 @@ // After fable is initialized, it would be expected to be wired in as a normal service. |
@@ -108,3 +108,3 @@ /** | ||
Expect(testFable.serviceManager.services['SimpleService']['SimpleService-123']).to.be.an('object'); | ||
Expect(testFable.serviceManager.serviceMap['SimpleService']['SimpleService-123']).to.be.an('object'); | ||
} | ||
@@ -121,3 +121,3 @@ ); | ||
Expect(testFable.serviceManager.services['SimpleService']['SimpleService-123']).to.be.an('object'); | ||
Expect(testFable.serviceManager.serviceMap['SimpleService']['SimpleService-123']).to.be.an('object'); | ||
@@ -127,3 +127,3 @@ // The passed-in magic stuff should work too. | ||
Expect(testFable.serviceManager.services['SimpleService']).to.be.an('object'); | ||
Expect(testFable.serviceManager.serviceMap['SimpleService']).to.be.an('object'); | ||
@@ -146,5 +146,5 @@ testFable.serviceManager.services.SimpleService.doSomething(); | ||
testFable.serviceManager.services['SimpleService']['SimpleService-13'].doSomething(); | ||
testFable.serviceManager.serviceMap['SimpleService']['SimpleService-13'].doSomething(); | ||
Expect(testFable.serviceManager.services['SimpleService']['SimpleService-13']).to.be.an('object'); | ||
Expect(testFable.serviceManager.serviceMap['SimpleService']['SimpleService-13']).to.be.an('object'); | ||
} | ||
@@ -151,0 +151,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
17391