From bcf023aff6857c67697d3756435c0eaf16df4bd1 Mon Sep 17 00:00:00 2001 From: Narayana Shanubhogh <40889842+narayana-plivo@users.noreply.github.com> Date: Wed, 13 Nov 2019 12:32:01 +0530 Subject: [PATCH 1/2] Update base.js Change: all list function will print the meta object. --- lib/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }); From e6d3cf7993fee782dd8683e58b72346fe697d56d Mon Sep 17 00:00:00 2001 From: nixonsamuel Date: Thu, 14 Nov 2019 11:18:36 +0530 Subject: [PATCH 2/2] bump version to 4.1.6 --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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/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": [