Skip to content

Commit

Permalink
v3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jul 31, 2019
1 parent 692dba6 commit 1cd5049
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/common.js
Expand Up @@ -183,16 +183,16 @@ var copydata = (exports.copydata = function(obj) {

// Convert pattern object into a normalized jsonic String.
var pattern = (exports.pattern = function pattern(patobj) {
if ('string' === typeof(patobj)) {
if ('string' === typeof patobj) {
return patobj
}

patobj = patobj || {}
var sb = []

Object.keys(patobj).forEach(k=>{
Object.keys(patobj).forEach(k => {
var v = patobj[k]
if (!~k.indexOf('$') && 'function' != typeof(v) && 'object' != typeof(v)) {
if (!~k.indexOf('$') && 'function' != typeof v && 'object' != typeof v) {
sb.push(k + ':' + v)
}
})
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "seneca",
"description": "A Microservices Framework for Node.js",
"version": "3.12.1",
"version": "3.13.0",
"license": "MIT",
"homepage": "http://senecajs.org",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions test/common.test.js
Expand Up @@ -224,8 +224,8 @@ describe('common', function() {
assert.equal('a:1,b:2', Common.pattern({ a: 1, b: 2 }))
assert.equal('a:1,b:2', Common.pattern({ a: 1, b: 2, c$: 3 }))
assert.equal('a:1,b:2', Common.pattern({ b: 2, c$: 3, a: 1 }))
assert.equal('a:1,b:2', Common.pattern({ b: 2, c: {x:1}, a: 1 }))
assert.equal('a:1,b:2', Common.pattern({ b: 2, c: ()=>{}, a: 1 }))
assert.equal('a:1,b:2', Common.pattern({ b: 2, c: { x: 1 }, a: 1 }))
assert.equal('a:1,b:2', Common.pattern({ b: 2, c: () => {}, a: 1 }))
fin()
})

Expand Down

0 comments on commit 1cd5049

Please sign in to comment.