diff --git a/RELEASES.md b/RELEASES.md index aeae414..d3e487c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -250,7 +250,7 @@ - fixed issue where non-iterable _meta doesnt make it through to the client on websocket connections - made _meta non-enumerable for websockets and eventemitter -2.9.3 2016-07-11 ----------------- +2.9.3 2.9.4 2016-07-11 +---------------------- - adjusted back to making _meta enumerable, as this causes issues in happner, also _meta is useful in a lot of instances diff --git a/lib/services/pubsub/service.js b/lib/services/pubsub/service.js index 3aba69a..39cfe28 100644 --- a/lib/services/pubsub/service.js +++ b/lib/services/pubsub/service.js @@ -225,16 +225,7 @@ PubSubService.prototype.formatReturnItem = function (item, local) { if (!item.data) item.data = {}; var returnItem = item.data; - - if (local){ - //means we are returning this item to an intra-proc client - //so the data is not serialized via JSON, and thus the _meta - //will successfully cross over. - Object.defineProperty(returnItem, '_meta', { - value:item._meta - }) - }else returnItem._meta = item._meta;//the websocket client handles the response, and formats the return values (makes _meta non-enumerable) - + returnItem._meta = item._meta; return returnItem; }; diff --git a/package.json b/package.json index adededd..24987b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "happn", "description": "pub/sub api as a service using primus and mongo & redis or nedb, can work as cluster, single process or embedded using nedb, use in production at your own risk", - "version": "2.9.3", + "version": "2.9.4", "main": "./lib/index", "scripts": { "test": "mocha --expose-gc silence.js test",