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

fable-serviceproviderbase

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-serviceproviderbase - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

4

package.json
{
"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 @@

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