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 2ba34c4..9ff90b7 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",