diff --git a/CHANGELOG.md b/CHANGELOG.md index 88c56aa9..2ea73deb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## [4.1.6](https://github.com/plivo/plivo-node/releases/tag/v4.1.6)(2019-11-14) +- Fix list APIs to return meta in response. + ## [4.1.5](https://github.com/plivo/plivo-node/releases/tag/v4.1.5)(2019-11-13) - Add GetInput XML support diff --git a/lib/base.js b/lib/base.js index aa7701bf..4597b8e2 100644 --- a/lib/base.js +++ b/lib/base.js @@ -113,7 +113,7 @@ export class PlivoResourceInterface { client('GET', action, params) .then(response => { let objects = []; - Object.defineProperty(objects, 'meta', { value: response.body.meta }); + Object.defineProperty(objects, 'meta', { value: response.body.meta, enumerable: true }); response.body.objects.forEach(item => { objects.push(new Klass(client, item)); }); diff --git a/package.json b/package.json index 5074efce..93ffbdf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.1.5", + "version": "4.1.6", "description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML", "homepage": "https://github.com/plivo/plivo-node", "files": [