From 2ac90d455d380a1e42baaa5dfbb74f652ce569f8 Mon Sep 17 00:00:00 2001 From: Koushik-Ayila Date: Fri, 29 Jan 2021 12:53:07 +0530 Subject: [PATCH] Rebased code with master --- lib/base.js | 1 - lib/resources/call.js | 2 +- package.json | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/base.js b/lib/base.js index 1048cbf..3ed6040 100644 --- a/lib/base.js +++ b/lib/base.js @@ -1,5 +1,4 @@ import { extend } from './utils/common.js'; -import axios from 'axios'; let actionKey = Symbol('api action'); let klassKey = Symbol('constructor'); diff --git a/lib/resources/call.js b/lib/resources/call.js index a736e67..fc9a324 100644 --- a/lib/resources/call.js +++ b/lib/resources/call.js @@ -495,7 +495,7 @@ export class CallInterface extends PlivoResourceInterface { * @promise {object[]} returns list of Call Object * @fail {Error} returns Error */ - list(params) { + list(params = {}) { params.isVoiceRequest = 'true'; let client = this[clientKey]; diff --git a/package.json b/package.json index 613e6d3..0420afb 100644 --- a/package.json +++ b/package.json @@ -58,11 +58,10 @@ "test": "gulp" }, "dependencies": { + "@types/node": "^14.14.14", "axios": "^0.19.2", "base-64": "^0.1.0", "build-url": "^1.0.10", - "got": "^11.8.1", - "querystring": "^0.2.0", "jsonwebtoken": "^8.5.1", "lodash": "^4.17.4", "querystring": "^0.2.0",