diff --git a/lib/api.js b/lib/api.js index 5ae9d04c..c3a7117f 100644 --- a/lib/api.js +++ b/lib/api.js @@ -15,14 +15,13 @@ var errlog = Common.make_standard_err_log_entry var intern = {} - // close seneca instance // sets public seneca.closed property exports.close = function(callpoint) { return function api_close(done) { var seneca = this var options = seneca.options() - + var done_called = false var safe_done = function safe_done(err) { if (!done_called && 'function' === typeof done) { @@ -88,14 +87,11 @@ exports.close = function(callpoint) { } } - - // Describe this instance using the form: Seneca/VERSION/ID exports.toString = function() { return this.fullname } - exports.seneca = function() { // Return self. Mostly useful as a check that this is a Seneca instance. return this diff --git a/package.json b/package.json index 1af181f5..b70d0e0b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "seneca", "description": "A Microservices Framework for Node.js", - "version": "3.13.0", + "version": "3.13.1", "license": "MIT", "homepage": "http://senecajs.org", "keywords": [ diff --git a/seneca.js b/seneca.js index 23393226..040e36f8 100644 --- a/seneca.js +++ b/seneca.js @@ -465,13 +465,12 @@ function make_seneca(initial_options) { root$.decorate = API.decorate // Decorate seneca object with functions root$.seneca = API.seneca root$.close = API.close(callpoint) // Close and shutdown plugins. - + root$.ready = ready.api_ready // Callback when plugins initialized. root$.add = api_add // Add a pattern an associated action. root$.act = api_act // Submit a message and trigger the associated action. - root$.options = api_options // Get and set options. // Non-API methods. @@ -847,7 +846,7 @@ function make_seneca(initial_options) { }) } -/* + /* // close seneca instance // sets public seneca.closed property function api_close(done) { diff --git a/test/plugin.test.js b/test/plugin.test.js index 08d0a54d..e6fd0ecc 100644 --- a/test/plugin.test.js +++ b/test/plugin.test.js @@ -69,7 +69,6 @@ describe('plugin', function() { }) }) - it('plugin-delegate-init', function(fin) { Seneca() .test(fin)