From 1cd504904ef529701504abeae8b48ddec9b9c587 Mon Sep 17 00:00:00 2001 From: rjrodger Date: Tue, 30 Jul 2019 20:33:16 -0700 Subject: [PATCH] v3.13.0 --- lib/common.js | 6 +++--- package-lock.json | 2 +- package.json | 2 +- test/common.test.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/common.js b/lib/common.js index e096a8ec..8b3d2682 100644 --- a/lib/common.js +++ b/lib/common.js @@ -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) } }) diff --git a/package-lock.json b/package-lock.json index ea3e41d6..359ce02d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "seneca", - "version": "3.12.0", + "version": "3.12.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e375c67b..1af181f5 100644 --- a/package.json +++ b/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": [ diff --git a/test/common.test.js b/test/common.test.js index afd9aaf4..7865e1e4 100644 --- a/test/common.test.js +++ b/test/common.test.js @@ -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() })