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

ee-soa-service-manager

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-soa-service-manager - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

16

lib/ServiceManager.js

@@ -58,8 +58,8 @@

if(this._hasController(collection)) {
if (this._hasController(collection)) {
this._controllerList[collection].request(req, res);
}
else {
if(debug) log(collection + " not managed by serviceManager");
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: collection + " not managed by serviceManager"});
if (debug) log.warn('The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!');
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: 'The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!'});
}

@@ -75,5 +75,5 @@ }

else {
// TODO: replace later
if(debug) log(collection + " not managed by serviceManager");
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: collection + " not managed by serviceManager"});
// TODO: replace later --> why?
if (debug) log.warn('The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!');
res.send(res.statusCodes.SERVICE_EXCEPTION, {error: 1, msg: 'The service manager doesn\'t know the controller «'+collection+'». It was not registered by any service!'});
//this.emit('request', req, res);

@@ -85,3 +85,3 @@ }

if(!service.isService()) {
throw new Error('try to register a service on serviceManager which is not a service!');
throw new Error('Attempt to register non service as service on the service manager. Make sure you register only services inheriting from the default service implementation!');
}

@@ -129,3 +129,3 @@

, _addController: function(controllerName, service) {
if(this._hasController(controllerName)) throw new Error(controllerName + ' already managed by servicemanager');
if(this._hasController(controllerName)) throw new Error('The controller «'+controllerName+'» was already registered on the service manager. Every controller can only be registered once in the application!');
else this._controllerList[controllerName] = service;

@@ -132,0 +132,0 @@ }

{
"name" : "ee-soa-service-manager"
, "description" : "Service Manager for the ee-soa framework"
, "version" : "0.1.9"
, "version" : "0.1.10"
, "author" : "Tobias Kneubühler <tobias@joinbox.com> (http://joinbox.com/)"

@@ -6,0 +6,0 @@ , "contributors": [

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