Skip to content

Commit

Permalink
v3.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Feb 25, 2019
1 parent a86d418 commit 3dbf2bc
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,6 @@ env:
matrix:
- TEST_SUITE=senecajs/seneca
- TEST_SUITE=senecajs/seneca-entity
- TEST_SUITE=senecajs/seneca-promisify

install:
- NODE_VERSION=$(node -v); if [ ${NODE_VERSION:1:2} -ge 10 ]; then npm i -g npm@6; npm ci; else npm install; fi
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.md
@@ -1,3 +1,9 @@
## 3.8.3 2019-02-25

* Seneca.fail throws Seneca Errors, whereas Seneca.error creates them
* Seneca.error can create plugin scoped errors


## 3.8.2 2019-02-17

* Allow plugin names that are file paths, and allow . in plugin names and tags.
Expand Down
1 change: 0 additions & 1 deletion lib/common.js
Expand Up @@ -17,7 +17,6 @@ var error = (exports.error = exports.eraro = Eraro({
override: true
}))


exports.make_plugin_key = function(plugin, origtag) {
if (null == plugin) {
throw error('missing_plugin_name')
Expand Down
6 changes: 4 additions & 2 deletions lib/inward.js
Expand Up @@ -34,8 +34,10 @@ function inward_limit_msg(ctxt, data) {
info: {
maxparents: so.limits.maxparents,
numparents: meta.parents.length,
parents: _.map(meta.parents,
p => p[Common.TRACE_PATTERN]+' '+p[Common.TRACE_ACTION]),
parents: _.map(
meta.parents,
p => p[Common.TRACE_PATTERN] + ' ' + p[Common.TRACE_ACTION]
),
args: Util.inspect(Common.clean(data.msg)).replace(/\n/g, '')
}
}
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.8.2",
"version": "3.8.3",
"license": "MIT",
"homepage": "http://senecajs.org",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion test/api.test.js
Expand Up @@ -226,7 +226,7 @@ describe('api', function() {
expect(si.has('g:1')).equal(false)
expect(si.has('h:1,g:1')).equal(true)
expect(si.has('h:1,g:1,x:1')).equal(false)

fin()
})

Expand Down
5 changes: 4 additions & 1 deletion test/message.test.js
Expand Up @@ -115,7 +115,10 @@ describe('message', function() {
expect(i).equal(4)
expect(err.code).equal('maxparents')
expect(err.details.parents).equal([
'a:1 a1_8', 'a:1 a1_8', 'a:1 a1_8', 'a:1 a1_8'
'a:1 a1_8',
'a:1 a1_8',
'a:1 a1_8',
'a:1 a1_8'
])
fin()
})
Expand Down

0 comments on commit 3dbf2bc

Please sign in to comment.