Skip to content

Commit

Permalink
v3.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Aug 7, 2019
1 parent 7ed88ae commit c33aa78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
6 changes: 1 addition & 5 deletions lib/api.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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": [
Expand Down
5 changes: 2 additions & 3 deletions seneca.js
Expand Up @@ -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.
Expand Down Expand Up @@ -847,7 +846,7 @@ function make_seneca(initial_options) {
})
}

/*
/*
// close seneca instance
// sets public seneca.closed property
function api_close(done) {
Expand Down
1 change: 0 additions & 1 deletion test/plugin.test.js
Expand Up @@ -69,7 +69,6 @@ describe('plugin', function() {
})
})


it('plugin-delegate-init', function(fin) {
Seneca()
.test(fin)
Expand Down

0 comments on commit c33aa78

Please sign in to comment.