Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,8 @@ # Changelog | ||
## 1.1.1 | ||
- UPDATED: Changed User Agent format to match other libraries | ||
- FIXED: Bug #88 - Undefined method when missing `method` declaration | ||
## 1.1.0 | ||
@@ -7,0 +13,0 @@ |
@@ -25,5 +25,4 @@ "use strict"; | ||
*/ | ||
function Account(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -88,2 +87,2 @@ _classCallCheck(this, Account); | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BY2NvdW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNLE87Ozs7Ozs7OztBQVFKLG1CQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMseURBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQUdBLFNBQUssTUFBTCxHQUFjLEtBQUssT0FBTCxDQUFhLGFBQWIsbUJBQWQ7O0FBRUEsU0FBSyxNQUFMLENBQVksVUFBWixDQUF1QixLQUFLLEtBQUwsQ0FBVyxNQUFsQyxFQUEwQyxLQUFLLEtBQUwsQ0FBVyxTQUFyRCxFQUFnRSxLQUFLLE9BQXJFO0FBQ0Q7Ozs7Ozs7OzttQ0FLYztBQUNiLFdBQUssTUFBTCxDQUFZLFlBQVosQ0FBeUIsS0FBekIsQ0FBK0IsS0FBSyxNQUFwQyxFQUE0QyxTQUE1QztBQUNEOzs7Ozs7OztxQ0FLZ0I7QUFDZixXQUFLLE1BQUwsQ0FBWSxjQUFaLENBQTJCLEtBQTNCLENBQWlDLEtBQUssTUFBdEMsRUFBOEMsU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yZCgpIHtcbiAgICB0aGlzLl9uZXhtby5jaGFuZ2VQYXNzd29yZC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGVTTVNDYWxsYmFjaygpIHtcbiAgICB0aGlzLl9uZXhtby5jaGFuZ2VNb0NhbGxiYWNrVXJsLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHVwZGF0ZURlbGl2ZXJ5UmVjZWlwdENhbGxiYWNrKCkge1xuICAgIHRoaXMuX25leG1vLmNoYW5nZURyQ2FsbGJhY2tVcmwuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFjY291bnQ7XG4iXX0= |
@@ -7,3 +7,3 @@ "use strict"; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -28,5 +28,4 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
*/ | ||
function App(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -95,2 +94,2 @@ _classCallCheck(this, App); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHAuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7SUFFTSxHOzs7Ozs7Ozs7QUFRSixlQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMseURBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQUdBLFNBQUssTUFBTCxHQUFjLEtBQUssT0FBTCxDQUFhLGFBQWIsbUJBQWQ7O0FBRUEsU0FBSyxNQUFMLENBQVksVUFBWixDQUF1QixLQUFLLEtBQUwsQ0FBVyxNQUFsQyxFQUEwQyxLQUFLLEtBQUwsQ0FBVyxTQUFyRCxFQUFnRSxLQUFLLE9BQXJFO0FBQ0Q7Ozs7Ozs7Ozs2QkFLUTtBQUNQLFdBQUssTUFBTCxDQUFZLGlCQUFaLENBQThCLEtBQTlCLENBQW9DLEtBQUssTUFBekMsRUFBaUQsU0FBakQ7QUFDRDs7Ozs7Ozs7d0JBS0csSyxFQUFPO0FBQ1QsVUFBRyxRQUFPLEtBQVAseUNBQU8sS0FBUCxPQUFrQixRQUFyQixFQUErQjtBQUM3QixhQUFLLE1BQUwsQ0FBWSxjQUFaLENBQTJCLEtBQTNCLENBQWlDLEtBQUssTUFBdEMsRUFBOEMsU0FBOUM7QUFDRCxPQUZELE1BR0s7QUFDSCxhQUFLLE1BQUwsQ0FBWSxlQUFaLENBQTRCLEtBQTVCLENBQWtDLEtBQUssTUFBdkMsRUFBK0MsU0FBL0M7QUFDRDtBQUNGOzs7Ozs7Ozs2QkFL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biAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqLyBcbiAgY3JlYXRlKCkge1xuICAgIHRoaXMuX25leG1vLmNyZWF0ZUFwcGxpY2F0aW9uLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGdldChhcHBJZCkge1xuICAgIGlmKHR5cGVvZihhcHBJZCkgIT09ICdvYmplY3QnKSB7XG4gICAgICB0aGlzLl9uZXhtby5nZXRBcHBsaWNhdGlvbi5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICB0aGlzLl9uZXhtby5nZXRBcHBsaWNhdGlvbnMuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gICAgfVxuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHVwZGF0ZSgpIHtcbiAgICB0aGlzLl9uZXhtby51cGRhdGVBcHBsaWNhdGlvbi5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBkZWxldGUoKSB7XG4gICAgdGhpcy5fbmV4bW8uZGVsZXRlQXBwbGljYXRpb24uYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFwcDtcbiJdfQ== |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -35,3 +35,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
*/ | ||
var CallsResource = function () { | ||
@@ -177,2 +176,2 @@ _createClass(CallsResource, null, [{ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DYWxsc1Jlc291cmNlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTs7OztBQUVBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7Ozs7Ozs7O0lBS00sYTs7Ozs7Ozs7d0JBS2M7QUFDaEIsYUFBTyxXQUFQO0FBQ0Q7Ozs7Ozs7Ozs7O0FBUUQseUJBQVksS0FBWixFQUFtQixPQUFuQixFQUE0QjtBQUFBOztBQUMxQixTQUFLLEtBQUwsR0FBYSxLQUFiO0FBQ0EsU0FBSyxPQUFMLEdBQWUsT0FBZjs7Ozs7QUFLQSxTQUFLLE1BQUwsR0FBYyw2QkFBbUIsS0FBSyxLQUF4QixFQUErQixLQUFLLE9BQXBDLENBQWQ7Ozs7O0FBS0EsU0FBSyxJQUFMLEdBQVksMkJBQWlCLEtBQUssS0FBdEIsRUFBNkIsS0FBSyxPQUFsQyxDQUFaOzs7OztBQUtBLFNBQUssSUFBTCxHQUFZLDJCQUFpQixLQUFLLEtBQXRCLEVBQTZCLEtBQUssT0FBbEMsQ0FBWjtBQUNEOzs7Ozs7Ozs7Ozs7MkJBUU0sTSxF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V0ZXMuXG4gICAqL1xuICB1cGRhdGUoY2FsbElkLCBwYXJhbXMsIGNhbGxiYWNrKSB7XG4gICAgcGFyYW1zID0gSlNPTi5zdHJpbmdpZnkocGFyYW1zKTtcblxuICAgIHZhciBjb25maWcgPSB7XG4gICAgICBob3N0OidhcGkubmV4bW8uY29tJyxcbiAgICAgIHBhdGg6YCR7Q2FsbHNSZXNvdXJjZS5QQVRIfS8ke2NhbGxJZH1gLFxuICAgICAgbWV0aG9kOiAnUFVUJyxcbiAgICAgIGJvZHk6IHBhcmFtcyxcbiAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJyxcbiAgICAgICAgJ0NvbnRlbnQtTGVuZ3RoJzogcGFyYW1zLmxlbmd0aCxcbiAgICAgICAgJ0F1dGhvcml6YXRpb24nOiBgQmVhcmVyICR7dGhpcy5jcmVkcy5nZW5lcmF0ZUp3dCgpfWBcbiAgICAgIH1cbiAgICB9O1xuICAgIHRoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoY29uZmlnLCBjYWxsYmFjayk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IENhbGxzUmVzb3VyY2U7XG4iXX0= |
@@ -27,3 +27,3 @@ 'use strict'; | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(ConsoleLogger).call(this)); | ||
var _this = _possibleConstructorReturn(this, (ConsoleLogger.__proto__ || Object.getPrototypeOf(ConsoleLogger)).call(this)); | ||
@@ -72,2 +72,2 @@ _this.out = consoleOverride || console; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db25zb2xlTG9nZ2VyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7OztJQUVNLGE7OztBQUNKLHl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HMgTnVsbExvZ2dlciB7XG4gIGNvbnN0cnVjdG9yKGNvbnNvbGVPdmVycmlkZSkge1xuICAgIHN1cGVyKCk7XG4gICAgXG4gICAgdGhpcy5vdXQgPSBjb25zb2xlT3ZlcnJpZGUgfHwgY29uc29sZTtcbiAgfVxuICBcbiAgbG9nKGxldmVsLCAuLi5hcmdzKSB7XG4gICAgdGhpcy5vdXQubG9nKGAke2xldmVsfTpgLCAuLi5hcmdzKTtcbiAgfVxuXG4gIHdhcm4oLi4uYXJncykge1xuICAgIHRoaXMubG9nKCd3YXJuJywgLi4uYXJncyk7XG4gIH1cbiAgXG4gIGVycm9yKC4uLmFyZ3MpIHtcbiAgICB0aGlzLm91dC5lcnJvcignZXJyb3I6JywgLi4uYXJncyk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29uc29sZUxvZ2dlcjtcbiJdfQ== |
@@ -33,3 +33,2 @@ "use strict"; | ||
*/ | ||
var Credentials = function () { | ||
@@ -75,4 +74,4 @@ function Credentials(apiKey, apiSecret, privateKey, applicationId) { | ||
value: function generateJwt() { | ||
var applicationId = arguments.length <= 0 || arguments[0] === undefined ? this.applicationId : arguments[0]; | ||
var privateKey = arguments.length <= 1 || arguments[1] === undefined ? this.privateKey : arguments[1]; | ||
var applicationId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.applicationId; | ||
var privateKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.privateKey; | ||
@@ -117,2 +116,2 @@ var claims = { application_id: applicationId }; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DcmVkZW50aWFscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7QUFFQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFjTSxXO0FBQ0osdUJBQVksTUFBWixFQUFvQixTQUF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ZXR1cm4gdG9rZW47XG4gIH1cblxuICAvKipcbiAgICogQHByaXZhdGVcbiAgICogVXNlZCBmb3IgdGVzdGluZyBwdXJwb3NlcyBvbmx5LlxuICAgKi9cbiAgX3NldEp3dEdlbmVyYXRvcihnZW5lcmF0b3IpIHtcbiAgICB0aGlzLl9qd3RHZW5lcmF0b3IgPSBnZW5lcmF0b3I7XG4gIH1cblxuICAvKipcbiAgICogRW5zdXJlcyBhIGNyZWRlbnRpYWxzIGluc3RhbmNlIGlzIHVzZWQuXG4gICAqXG4gICAqIEtleS9TZWNyZXQgY3JlZGVudGlhbHMgYXJlIG9ubHkgc3VwcG9ydGVkIGF0IHByZXNlbnQuXG4gICAqL1xuICBzdGF0aWMgcGFyc2Uob2JqKSB7XG4gICAgaWYob2JqIGluc3RhbmNlb2YgQ3JlZGVudGlhbHMpIHtcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIGVsc2Uge1xuICAgICAgcmV0dXJuIG5ldyBDcmVkZW50aWFscyhvYmouYXBpS2V5LCBvYmouYXBpU2VjcmV0LCBvYmoucHJpdmF0ZUtleSwgb2JqLmFwcGxpY2F0aW9uSWQpO1xuICAgIH1cbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDcmVkZW50aWFscztcbiJdfQ== |
@@ -20,3 +20,2 @@ 'use strict'; | ||
*/ | ||
var DtmfResource = function () { | ||
@@ -83,2 +82,2 @@ _createClass(DtmfResource, null, [{ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9EdG1mUmVzb3VyY2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7O0lBS00sWTs7Ozs7Ozs7d0JBS2M7QUFDaEIsYUFBTyw0QkFBUDtBQUNEOzs7Ozs7Ozs7OztBQVFELHdCQUFZLEtBQVosRUFBbUIsT0FBb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5ndGgnOiBwYXJhbXMubGVuZ3RoLFxuICAgICAgICAnQXV0aG9yaXphdGlvbic6IGBCZWFyZXIgJHt0aGlzLmNyZWRzLmdlbmVyYXRlSnd0KCl9YFxuICAgICAgfVxuICAgIH07XG4gICAgdGhpcy5vcHRpb25zLmh0dHBDbGllbnQucmVxdWVzdChjb25maWcsIGNhbGxiYWNrKTtcbiAgfVxuICBcbn1cblxuZXhwb3J0IGRlZmF1bHQgRHRtZlJlc291cmNlO1xuIl19 |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
@@ -15,110 +15,121 @@ | ||
var HttpClient = function () { | ||
function HttpClient(options) { | ||
_classCallCheck(this, HttpClient); | ||
function HttpClient(options) { | ||
_classCallCheck(this, HttpClient); | ||
this.port = 443 || options.port; | ||
this.https = options.https || https; | ||
this.http = options.http || http; | ||
this.headers = { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
'Accept': 'application/json' | ||
}; | ||
this.logger = options.logger; | ||
this.port = 443 || options.port; | ||
this.https = options.https || https; | ||
this.http = options.http || http; | ||
this.headers = { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
'Accept': 'application/json' | ||
}; | ||
this.logger = options.logger; | ||
if (options.userAgent) { | ||
this.headers['User-Agent'] = options.userAgent; | ||
} | ||
if (options.userAgent) { | ||
this.headers['User-Agent'] = options.userAgent; | ||
} | ||
} | ||
_createClass(HttpClient, [{ | ||
key: 'request', | ||
value: function request(endpoint, method, callback) { | ||
var _this = this; | ||
_createClass(HttpClient, [{ | ||
key: 'request', | ||
value: function request(endpoint, method, callback) { | ||
var _this = this; | ||
if (typeof method == 'function') { | ||
callback = method; | ||
endpoint.method = endpoint.method || 'GET'; | ||
} else if (typeof method !== 'undefined') { | ||
endpoint.method = method; | ||
} | ||
if (typeof method == 'function') { | ||
callback = method; | ||
endpoint.method = endpoint.method || 'GET'; | ||
} else if (typeof method !== 'undefined') { | ||
endpoint.method = method; | ||
} | ||
if (endpoint.method == 'POST' || endpoint.method == 'DELETE') { | ||
// TODO: verify the following fix is required | ||
// Fix broken due ot 411 Content-Length error now sent by Nexmo API | ||
// PL 2016-Sept-6 - commented out Content-Length 0 | ||
// headers['Content-Length'] = 0; | ||
} | ||
var options = { | ||
host: endpoint.host ? endpoint.host : 'rest.nexmo.com', | ||
port: this.port, | ||
path: endpoint.path, | ||
method: endpoint.method, | ||
headers: this.headers | ||
}; | ||
if (endpoint.method == 'POST' || endpoint.method == 'DELETE') { | ||
// TODO: verify the following fix is required | ||
// Fix broken due ot 411 Content-Length error now sent by Nexmo API | ||
// PL 2016-Sept-6 - commented out Content-Length 0 | ||
// headers['Content-Length'] = 0; | ||
} | ||
var options = { | ||
host: endpoint.host ? endpoint.host : 'rest.nexmo.com', | ||
port: this.port, | ||
path: endpoint.path, | ||
method: endpoint.method, | ||
headers: this.headers | ||
}; | ||
// Allow existing headers to be overridden | ||
// Allow new headers to be added | ||
if (endpoint.headers) { | ||
Object.keys(endpoint.headers).forEach(function (key) { | ||
options.headers[key] = endpoint.headers[key]; | ||
}); | ||
} | ||
// Allow existing headers to be overridden | ||
// Allow new headers to be added | ||
if (endpoint.headers) { | ||
Object.keys(endpoint.headers).forEach(function (key) { | ||
options.headers[key] = endpoint.headers[key]; | ||
}); | ||
} | ||
this.logger.info('Request:', options, '\nBody:', endpoint.body); | ||
var request; | ||
this.logger.info('Request:', options, '\nBody:', endpoint.body); | ||
var request; | ||
if (options.port == 443) { | ||
request = this.https.request(options); | ||
} else { | ||
request = http.request(options); | ||
} | ||
if (options.port == 443) { | ||
request = this.https.request(options); | ||
} else { | ||
request = http.request(options); | ||
} | ||
request.end(endpoint.body); | ||
request.end(endpoint.body); | ||
var responseReturn = ''; | ||
request.on('response', function (response) { | ||
response.setEncoding('utf8'); | ||
response.on('data', function (chunk) { | ||
responseReturn += chunk; | ||
}); | ||
response.on('end', function () { | ||
_this.logger.info('response ended:', response.statusCode); | ||
if (callback) { | ||
var retJson = responseReturn; | ||
var err = null; | ||
if (method !== 'DELETE') { | ||
try { | ||
retJson = JSON.parse(responseReturn); | ||
} catch (parsererr) { | ||
// ignore parser error for now and send raw response to client | ||
_this.logger.error(parsererr); | ||
_this.logger.error('could not convert API response to JSON, above error is ignored and raw API response is returned to client'); | ||
_this.logger.error('Raw Error message from API '); | ||
_this.logger.error(responseReturn); | ||
err = parsererr; | ||
} | ||
} | ||
var responseData = ''; | ||
request.on('response', function (response) { | ||
response.setEncoding('utf8'); | ||
response.on('data', function (chunk) { | ||
responseData += chunk; | ||
}); | ||
response.on('end', function () { | ||
_this.logger.info('response ended:', response.statusCode); | ||
if (callback) { | ||
_this.__parseReponse(response.statusCode, responseData, method, callback); | ||
} | ||
}); | ||
response.on('close', function (e) { | ||
_this.logger.error('problem with API request detailed stacktrace below '); | ||
_this.logger.error(e); | ||
callback(e); | ||
}); | ||
}); | ||
request.on('error', function (e) { | ||
_this.logger.error('problem with API request detailed stacktrace below '); | ||
_this.logger.error(e); | ||
callback(e); | ||
}); | ||
} | ||
}, { | ||
key: '__parseReponse', | ||
value: function __parseReponse(status, data, method, callback) { | ||
var response = null; | ||
var error = null; | ||
if (response.statusCode < 200 || response.statusCode > 299) { | ||
err = retJson; | ||
} | ||
callback(err, retJson); | ||
} | ||
}); | ||
response.on('close', function (e) { | ||
_this.logger.error('problem with API request detailed stacktrace below '); | ||
_this.logger.error(e); | ||
callback(e); | ||
}); | ||
}); | ||
request.on('error', function (e) { | ||
_this.logger.error('problem with API request detailed stacktrace below '); | ||
_this.logger.error(e); | ||
callback(e); | ||
}); | ||
try { | ||
if (status >= 500) { | ||
error = { message: 'Server Error: ' + status }; | ||
} else if (status >= 400 || status < 200) { | ||
error = JSON.parse(data); | ||
} else if (method !== 'DELETE') { | ||
response = JSON.parse(data); | ||
} else { | ||
response = data; | ||
} | ||
}]); | ||
} catch (parseError) { | ||
this.logger.error(parseError); | ||
this.logger.error('could not convert API response to JSON, above error is ignored and raw API response is returned to client'); | ||
this.logger.error('Raw Error message from API '); | ||
this.logger.error(data); | ||
return HttpClient; | ||
error = { | ||
message: "The API response could not be parsed.", | ||
parseError: parseError | ||
}; | ||
} | ||
callback(error, response); | ||
} | ||
}]); | ||
return HttpClient; | ||
}(); | ||
@@ -128,2 +139,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9IdHRwQ2xpZW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFJLFFBQVEsUUFBUSxPQUFSLENBQVo7QUFDQSxJQUFJLE9BQU8sUUFBUSxNQUFSLENBQVg7O0lBRU0sVTtBQUNKLHdCQUFZLE9BQVosRUFBcUI7QUFBQTs7QUFDbkIsYUFBSyxJQUFMLEdBQVksT0FBTyxRQUFRLElBQTNCO0FBQ0EsYUFBSyxLQUFMLEdBQWEsUUFBUSxLQUFSLElBQWlCLEtBQTlCO0FBQ0EsYUFBSyxJQUFMLEdBQWEsUUFBUSxJQUFSLElBQWdCLElBQTdCO0FBQ0EsYUFBSyxPQUFMLEdBQWU7QUFDWCw0QkFBZ0IsbUNBREw7QUFFWCxzQkFBVTtBQUZDLFNBQWY7QUFJQSxhQUFLLE1BQUwsR0FBYyxRQUFRLE1BQXRCOztBQUVBLFlBQUcsUUFBUSxTQUFYLEVBQXNCO0FBQ3BCLGlCQUFLLE9BQUwsQ0FBYSxZQUFiLElBQTZCLFFBQVEsU0FBckM7QUFDRDtBQUNGOzs7O2dDQUVPLFEsRUFBVSxNLEVBQVEsUSxFQUFVO0FBQUE7O0FBQ2xDLGdCQUFJLE9BQU8sTUFBUCxJQUFpQixVQUFyQixFQUFpQztBQUM3QiwyQkFBVyxNQUFYO0FBQ0EseUJBQVMsTUFBVCxHQUFrQixTQUFTLE1BQVQsSUFBbUIsS0FBckM7QUFDSCxhQUhELE1BSUssSUFBSSxPQUFPLE1BQVAs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cbiAgICAgICAgICAgICAgICB2YXIgcmV0SnNvbiA9IHJlc3BvbnNlUmV0dXJuO1xuICAgICAgICAgICAgICAgIHZhciBlcnIgPSBudWxsO1xuICAgICAgICAgICAgICAgIGlmIChtZXRob2QgIT09ICdERUxFVEUnKSB7XG4gICAgICAgICAgICAgICAgICB0cnkge1xuXHQgICAgICAgICAgICAgICAgICAgIHJldEpzb24gPSBKU09OLnBhcnNlKHJlc3BvbnNlUmV0dXJuKTtcblx0ICAgICAgICAgICAgICAgIH0gY2F0Y2ggKHBhcnNlcmVycikge1xuXHQgICAgICAgICAgICAgICAgICAgIC8vIGlnbm9yZSBwYXJzZXIgZXJyb3IgZm9yIG5vdyBhbmQgc2VuZCByYXcgcmVzcG9uc2UgdG8gY2xpZW50XG5cdCAgICAgICAgICAgICAgICAgICAgdGhpcy5sb2dnZXIuZXJyb3IocGFyc2VyZXJyKTtcblx0ICAgICAgICAgICAgICAgICAgICB0aGlzLmxvZ2dlci5lcnJvcignY291bGQgbm90IGNvbnZlcnQgQVBJIHJlc3BvbnNlIHRvIEpTT04sIGFib3ZlIGVycm9yIGlzIGlnbm9yZWQgYW5kIHJhdyBBUEkgcmVzcG9uc2UgaXMgcmV0dXJuZWQgdG8gY2xpZW50Jyk7XG5cdFx0XHRcdFx0XHQgICAgICAgICAgdGhpcy5sb2dnZXIuZXJyb3IoJ1JhdyBFcnJvciBtZXNzYWdlIGZyb20gQVBJICcpO1xuXHRcdFx0XHRcdFx0ICAgICAgICAgIHRoaXMubG9nZ2VyLmVycm9yKHJlc3BvbnNlUmV0dXJuKTtcblx0ICAgICAgICAgICAgICAgICAgICBlcnIgPSBwYXJzZXJlcnI7XG5cdCAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYocmVzcG9uc2Uuc3RhdHVzQ29kZSA8IDIwMCB8fCByZXNwb25zZS5zdGF0dXNDb2RlID4gMjk5KSB7XG4gICAgICAgICAgICAgICAgICBlcnIgPSByZXRKc29uO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGNhbGxiYWNrKGVyciwgcmV0SnNvbik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIHJlc3BvbnNlLm9uKCdjbG9zZScsIChlKSA9PiB7XG4gICAgICAgICAgICB0aGlzLmxvZ2dlci5lcnJvcigncHJvYmxlbSB3aXRoIEFQSSByZXF1ZXN0IGRldGFpbGVkIHN0YWNrdHJhY2UgYmVsb3cgJyk7XG4gICAgICAgICAgICB0aGlzLmxvZ2dlci5lcnJvcihlKTtcbiAgICAgICAgICAgIGNhbGxiYWNrKGUpO1xuICAgICAgICB9KTtcbiAgICB9KTtcbiAgICByZXF1ZXN0Lm9uKCdlcnJvcicsIChlKSA9PiB7XG4gICAgICAgIHRoaXMubG9nZ2VyLmVycm9yKCdwcm9ibGVtIHdpdGggQVBJIHJlcXVlc3QgZGV0YWlsZWQgc3RhY2t0cmFjZSBiZWxvdyAnKTtcbiAgICAgICAgdGhpcy5sb2dnZXIuZXJyb3IoZSk7XG4gICAgICAgIGNhbGxiYWNrKGUpO1xuICAgIH0pO1xuXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgSHR0cENsaWVudDtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9IdHRwQ2xpZW50LmpzIl0sIm5hbWVzIjpbImh0dHBzIiwicmVxdWlyZSIsImh0dHAiLCJIdHRwQ2xpZW50Iiwib3B0aW9ucyIsInBvcnQiLCJoZWFkZXJzIiwibG9nZ2VyIiwidXNlckFnZW50IiwiZW5kcG9pbnQiLCJtZXRob2QiLCJjYWxsYmFjayIsImhvc3QiLCJwYXRoIiwiT2JqZWN0Iiwia2V5cyIsImZvckVhY2giLCJrZXkiLCJpbmZvIiwiYm9keSIsInJlcXVlc3QiLCJlbmQiLCJyZXNwb25zZURhdGEiLCJvb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BwYXJzZUVycm9yOiBwYXJzZUVycm9yXG4gICAgICB9O1xuICAgIH1cblxuICAgIGNhbGxiYWNrKGVycm9yLCByZXNwb25zZSk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgSHR0cENsaWVudDtcbiJdfQ== |
'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -38,3 +38,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
value: function generate(cert) { | ||
var claims = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var claims = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -65,2 +65,2 @@ if (!cert instanceof Buffer) { | ||
module.exports = JwtGenerator; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Kd3RHZW5lcmF0b3IuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7QUFDQTs7Ozs7Ozs7SUFFTSxZOzs7Ozs7Ozs7Ozs7Ozs7Ozs7MkJBV0ksSSxFQUFtQjtBQUFBLE9BQWIsTUFBYSx5REFBSixFQUFJOztBQUMzQixPQUFHLENBQUMsSUF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NzdWVkQXQgfHwgcGFyc2VJbnQoRGF0ZS5ub3coKS8xMDAwLCAxMCksXG5cdFx0XHQnanRpJzogY2xhaW1zLmp0aSB8fCB1dWlkLnYxKClcblx0XHR9O1xuXHRcdE9iamVjdC5rZXlzKGNsYWltcykuZm9yRWFjaCgoa2V5KSA9PiB7XG5cdFx0XHR0b1NpZ25ba2V5XSA9IGNsYWltc1trZXldO1xuXHRcdH0pO1xuXHRcdFxuXHRcdHZhciB0b2tlbiA9IGp3dC5zaWduKHRvU2lnbiwgY2VydCwge2FsZ29yaXRobTogJ1JTMjU2J30pO1xuXHRcdHJldHVybiB0b2tlbjtcblx0fVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IEp3dEdlbmVyYXRvcjtcbiJdfQ== |
@@ -24,5 +24,4 @@ "use strict"; | ||
*/ | ||
function Message(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -107,2 +106,2 @@ _classCallCheck(this, Message); | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZXNzYWdlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNLE87Ozs7Ozs7O0FBT0osbUJBQVksV0FBWixFQUF1QztBQUFBLFFBQWQsT0FBYyx5REFBSixFQUFJOztBQUFBOztBQUNyQyxTQUFLLEtBQUwsR0FBYSxXQUFiO0FBQ0EsU0FBSyxPQUFMLEdBQWUsT0FBZjs7O0FBR0EsU0FBSyxNQUFMLEdBQWMsS0FBSyxPQUFMLENBQWEsYUFBYixtQkFBZDs7QUFFQSxTQUFLLE1BQUwsQ0FBWSxVQUFaLENBQXVCLEtBQUssS0FBTCxDQUFXLE1BQWxDLEVBQTBDLEtBQUssS0FBTCxDQUFX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bWVudFxuICAgKi9cbiAgc2VuZEJpbmFyeU1lc3NhZ2UoKSB7XG4gICAgdGhpcy5fbmV4bW8uc2VuZEJpbmFyeU1lc3NhZ2UuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgc2VuZFdhcFB1c2hNZXNzYWdlKCkge1xuICAgIHRoaXMuX25leG1vLnNlbmRXYXBQdXNoTWVzc2FnZS5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzaG9ydGNvZGVBbGVydCgpIHtcbiAgICB0aGlzLl9uZXhtby5zaG9ydGNvZGVBbGVydC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzaG9ydGNvZGUyRkEoKSB7XG4gICAgdGhpcy5fbmV4bW8uc2hvcnRjb2RlMkZBLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHNob3J0Y29kZU1hcmtldGluZygpIHtcbiAgICB0aGlzLl9uZXhtby5zaG9ydGNvZGVNYXJrZXRpbmcuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IE1lc3NhZ2U7XG4iXX0= |
@@ -83,5 +83,4 @@ 'use strict'; | ||
*/ | ||
function Nexmo(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? { debug: false } : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { debug: false }; | ||
@@ -147,3 +146,3 @@ _classCallCheck(this, Nexmo); | ||
value: function generateJwt() { | ||
var claims = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var claims = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -184,2 +183,2 @@ if (claims.application_id === undefined) { | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OZXhtby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOzs7O0FBRUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0FBRUEsSUFBTSx1QkFBdUIsNEJBQTdCOztJQUVNLEs7Ozs7Ozs7Ozs7Ozs7QUFZSixpQkFBWSxXQUFaLEVBQWtEO0FBQUEsUUFBekIsT0FBeUIseURBQWYsRUFBQyxPQUFNLEtBQVAsRUFBZTs7QUFBQTs7QUFDaEQsU0FBSyxXQUFMLEdBQW1CLHNCQUFZLEtBQVosQ0FBa0IsV0FBbEIsQ0FBbkI7QUFDQSxTQUFLLE9BQUwsR0FBZSxPQUFmOzs7O0FBSUEsUUFBRyxDQUFDLEtBQUssT0FBTCxDQUFhLE1BQWQsSUFBd0IsS0FBSyxPQUFMLENBQWEsS0FBeEMsRUFBK0M7QUFDN0MsV0FBSyxPQUFMLENBQWEsTUFBYixHQUFzQiw2QkFBdEI7QUFDRCxLQUZELE1BR0ssSUFBRyxDQUFDLEtBQUssT0FBTCxDQUFhLE1BQWpCLEVBQXlCOztBQUU1QixXQUFLLE9BQUwsQ0FBYSxNQUFiLEdBQXNCLDBCQUF0QjtBQUNEOztBQUVELFFBQUksWUFBWSxpQ0FBaEI7QUFDQSxRQUFJO0FBQ0YsVUFBSSxpQkFBaUIsUUFBUSxZ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bGFpbXMgLSBuYW1lL3ZhbHVlIHBhaXIgY2xhaW1zIHRvIHNpZ24gd2l0aGluIHRoZSBKV1RcbiAqXG4gKiBAcmV0dXJucyB7U3RyaW5nfSB0aGUgZ2VuZXJhdGVkIHRva2VuXG4gKi9cbk5leG1vLmdlbmVyYXRlSnd0ID0gKHByaXZhdGVLZXksIGNsYWltcykgPT4ge1xuICBpZighKHByaXZhdGVLZXkgaW5zdGFuY2VvZiBCdWZmZXIpKSB7XG4gICAgICBpZighZnMuZXhpc3RzU3luYyhwcml2YXRlS2V5KSkge1xuICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgRmlsZSBcIiR7cHJpdmF0ZUtleX1cIiBub3QgZm91bmQuYCk7XG4gICAgICB9XG4gICAgICBlbHNlIHtcbiAgICAgICAgICBwcml2YXRlS2V5ID0gZnMucmVhZEZpbGVTeW5jKHByaXZhdGVLZXkpO1xuICAgICAgfVxuICB9XG4gIHJldHVybiBqd3RHZW5lcmF0b3JJbnN0YW5jZS5nZW5lcmF0ZShwcml2YXRlS2V5LCBjbGFpbXMpO1xufVxuXG5leHBvcnQgZGVmYXVsdCBOZXhtbztcbiJdfQ== |
@@ -48,2 +48,2 @@ 'use strict'; | ||
module.exports = NullLogger; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdWxsTG9nZ2VyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztJQUFNLFU7Ozs7Ozs7d0JBQ0EsSyxFQUFnQixDQUNuQjs7OzJCQUVhO0FBQUEsd0NBQU4sSUFBTTtBQUFOLFlBQU07QUFBQTs7QUFDWixXQUFLLEdBQUwsY0FBUyxNQUFULFNBQW9CLElBQXBCO0FBQ0Q7OzsyQkFFYTtBQUFBLHlDQUFOLElBQU07QUFBTixZQUFNO0FBQUE7O0FBQ1osV0FBSyxHQUFMLGNBQVMsTUFBVCxTQUFvQixJQUFwQjtBQUN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QkFFYztBQUFBLHlDQUFOQSxJQUFNO0FBQU5BLFlBQU07QUFBQTs7QUFDYixXQUFLQyxHQUFMLGNBQVMsT0FBVCxTQUFxQkQsSUFBckI7QUFDRDs7Ozs7O0FBR0hFLE9BQU9DLE9BQVAsR0FBaUJMLFVBQWpCIiwiZmlsZSI6Ik51bGxMb2dnZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBOdWxsTG9nZ2VyIHtcbiAgbG9nKGxldmVsLCAuLi5hcmdzKSB7XG4gIH1cbiAgXG4gIGluZm8oLi4uYXJncykge1xuICAgIHRoaXMubG9nKCdpbmZvJywgLi4uYXJncyk7XG4gIH1cbiAgXG4gIHdhcm4oLi4uYXJncykge1xuICAgIHRoaXMubG9nKCd3YXJuJywgLi4uYXJncyk7XG4gIH1cbiAgXG4gIGVycm9yKC4uLmFyZ3MpIHtcbiAgICB0aGlzLmxvZygnZXJyb3InLCAuLi5hcmdzKTtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IE51bGxMb2dnZXI7XG4iXX0= |
@@ -25,5 +25,4 @@ "use strict"; | ||
*/ | ||
function Number(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -118,2 +117,2 @@ _classCallCheck(this, Number); | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7O0FBRUE7Ozs7Ozs7O0lBRU0sTTs7Ozs7Ozs7O0FBUUosa0JBQVksV0FBWixFQUF1QztBQUFBLFFBQWQsT0FBYyx5REFBSixFQUFJOztBQUFBOztBQUNyQyxTQUFLLEtBQUwsR0FBYSxXQUFiO0FBQ0EsU0FBSyxPQUFMLEdBQWUsT0FB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HRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGdldCgpIHtcbiAgICB0aGlzLl9uZXhtby5nZXROdW1iZXJzLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHNlYXJjaCgpIHtcbiAgICB0aGlzLl9uZXhtby5zZWFyY2hOdW1iZXJzLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGJ1eSgpIHtcbiAgICB0aGlzLl9uZXhtby5idXlOdW1iZXIuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgY2FuY2VsKCkge1xuICAgIHRoaXMuX25leG1vLmNhbmNlbE51bWJlci5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGUoKSB7XG4gICAgdGhpcy5fbmV4bW8udXBkYXRlTnVtYmVyLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXI7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXIuanMiXSwibmFtZXMiOlsiTnVtYmVyIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiY3JlZHMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlIiwiaW5pdGlhbGl6ZSIsImFwaUtleSIsImFwaVNlY3JldCIs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BseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGUoKSB7XG4gICAgdGhpcy5fbmV4bW8udXBkYXRlTnVtYmVyLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXI7XG4iXX0= |
@@ -25,5 +25,4 @@ "use strict"; | ||
*/ | ||
function NumberInsight(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -116,2 +115,2 @@ _classCallCheck(this, NumberInsight); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXJJbnNpZ2h0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNLGE7Ozs7Ozs7OztBQVFKLHlCQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMseURBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQUdBLFNBQUssTUFBTCxHQUFjLEtBQUssT0FBTCxDQUFhLGFBQWIsbUJBQWQ7O0FBRUEsU0FBSyxNQUFMLENBQVksVUFBWixDQUF1QixLQUFLLEtBQUwsQ0FBVyxNQUFsQyxFQUEwQyxLQUFLLEtBQUwsQ0FBVyxTQUFyRCxFQUFnRSxLQUFLLE9BQXJFO0FBQ0Q7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBZ0RHLE8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vbmUgbnVtYmVyIHRvIHJldHJpZXZlIGluc2lnaHQgb25cbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY291bnRyeSAtICdiYXNpYycgYW5kICdzdGFuZGFyZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIElTTyAzMTY2IEFscGhhIDIgY291bnRyeSBjb2RlXG4gICAqICAgICAgICAgICAgICAgICBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fMzE2Ni0xX2FscGhhLTJcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuIGlwIC0gJ2FkdmFuY2VkJyBvbmx5LlxuICAgKiAgICAgICAgICAgICAgICAgVGhlIElQIGFkZHJlc3MgaW4gSVB2NCBub3RhdGlvbiBvZiB0aGUgZW5kcG9pbnQgdGhlXG4gICAqICAgICAgICAgICAgICAgICB1c2VyIGNvbm5lY3RlZCBmcm9tLlxuICAgKiBAcGFyYW0ge0FycmF5fSAgb3B0aW9ucy5mZWF0dXJlcyAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIEFycmF5IGRldGFpbGluZyB0aGUgaW5mb3JtYXRpb24geW91IHdhbnQgZm9yIHRoaXMgcGhvbmVcbiAgICogICAgICAgICAgICAgICAgIG51bWJlci4gUG9zc2libGUgQXJyYXkgZWxlbWVudHMgYXJlOlxuICAgKiAgICAgICAgICAgICAgICAgLSB0eXBlOiBudW1iZXIgaXMgb25lIG9mIHRoZSBmb2xsb3dpbmc6IG1vYmlsZSwgbGFuZGxpbmUsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAgICBsYW5kbGluZV9wcmVtaXVtIG9yIHVua25vd24gcGhvbmUgbnVtYmVyLlxuICAgKiAgICAgICAgICAgICAgICAgLSB2YWxpZDogbnVtYmVyIGV4aXN0cy5cbiAgICogICAgICAgICAgICAgICAgIC0gcmVhY2hhYmxlOiBpcyBudW1iZXIgYXZhaWxhYmxlIG5vdy5cbiAgICogICAgICAgICAgICAgICAgIC0gY2FycmllcjogdGhlIE1DQ01OQyBmb3IgdGhlIGNhcnJpZXIgbnVtYmVyIGlzIHJlZ2lzdGVyZWRcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpdGguIFRoaXMgaXMgZWl0aGVyOiA8SVNPIGNvdW50cnkgY29kZT4tRklYRURcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yIDxJU08gY291bnRyeSBjb2RlPi1QUkVNSVVNLlxuICAgKiAgICAgICAgICAgICAgICAgLSBwb3J0ZWQ6IGlmIHRoZSB1c2VyIGhhcyBjaGFuZ2VkIGNhcnJpZXIgZm9yIG51bWJlci5cbiAgICogICAgICAgICAgICAgICAgIC0gcm9hbWluZzogdGhlIHN1YnNjcmliZXIgaXMgb3V0c2lkZSB0aGVpciBob21lIG5ldHdvcmtcbiAgICpcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY2FsbGJhY2sgLSAnYWR2YW5jZWQnIG9ubHkuXG4gICAqICAgICAgICAgICAgICAgICBUaGUgY2FsbGJhY2sgdG8gYmUgY2FsbGVkIHdoZW4gdGhlIEFQSSBjYWxsIGNvbXBsZXRlcy5cbiAgICogQHBhcmFtIHtOdW1iZXJ9IG9wdGlvbnMuY2FsbGJhY2tfdGltZW91dCAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIFRoZSBtYXhpbXVtIHdhaXQgdW50aWwgdGhlIE51bWJlciBJbnNpZ2h0IFJldHVybiBQYXJhbWV0ZXJzXG4gICAqICAgICAgICAgICAgICAgICBhcmUgc2VudCB0byBjYWxsYmFjay4gVGhpcyBpcyBhIHZhbHVlIGJldHdlZW4gMTAwMCAtIDMwMDAwbXNcbiAgICogICAgICAgICAgICAgICAgIGluY2x1c2l2ZS4gVGhlIGRlZmF1bHQgaXMgMzAwMDAgbXMuXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBvcHRpb25zLmNhbGxiY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VsZXRlIG9wdGlvbnMubGV2ZWw7XG5cbiAgICBpZiAobGV2ZWwgPT09ICdhZHZhbmNlZCcgfHwgbGV2ZWwgPT09ICdhZHZhbmNlZEFzeW5jJykge1xuICAgICAgaWYgKGxldmVsID09PSAnYWR2YW5jZWQnKSB7IGNvbnNvbGUud2FybignREVQUkVDQVRJT04gV0FSTklORzogTnVtYmVyIEluc2lnaHQgQWR2YW5jZWQgd2l0aCBhIGxldmVsIG9mIFwiYWR2YW5jZWRcIiB3aWxsIGJlIHN5bmNocm9ub3VzIGluIHYyLjArLiBDb25zaWRlciB1c2luZyB0aGUgbGV2ZWwgXCJhZHZhbmNlZEFzeW5jXCIgdG8ga2VlcCB1c2luZyB0aGUgYXN5bmMgb3B0aW9uLicpIH07XG4gICAgICB0aGlzLl9uZXhtby5udW1iZXJJbnNpZ2h0QWR2YW5jZWRBc3luYy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSBpZihsZXZlbCA9PT0gJ2FkdmFuY2VkU3luYycpIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRBZHZhbmNlZC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSBpZihsZXZlbCA9PT0gJ3N0YW5kYXJkJykge1xuICAgICAgdGhpcy5fbmV4bW8ubnVtYmVySW5zaWdodFN0YW5kYXJkLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICAgIH1cbiAgICBlbHNlIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRCYXNpYy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXJJbnNpZ2h0O1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy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d9IG9wdGlvbnMuY291bnRyeSAtICdiYXNpYycgYW5kICdzdGFuZGFyZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIElTTyAzMTY2IEFscGhhIDIgY291bnRyeSBjb2RlXG4gICAqICAgICAgICAgICAgICAgICBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fMzE2Ni0xX2FscGhhLTJcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuIGlwIC0gJ2FkdmFuY2VkJyBvbmx5LlxuICAgKiAgICAgICAgICAgICAgICAgVGhlIElQIGFkZHJlc3MgaW4gSVB2NCBub3RhdGlvbiBvZiB0aGUgZW5kcG9pbnQgdGhlXG4gICAqICAgICAgICAgICAgICAgICB1c2VyIGNvbm5lY3RlZCBmcm9tLlxuICAgKiBAcGFyYW0ge0FycmF5fSAgb3B0aW9ucy5mZWF0dXJlcyAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIEFycmF5IGRldGFpbGluZyB0aGUgaW5mb3JtYXRpb24geW91IHdhbnQgZm9yIHRoaXMgcGhvbmVcbiAgICogICAgICAgICAgICAgICAgIG51bWJlci4gUG9zc2libGUgQXJyYXkgZWxlbWVudHMgYXJlOlxuICAgKiAgICAgICAgICAgICAgICAgLSB0eXBlOiBudW1iZXIgaXMgb25lIG9mIHRoZSBmb2xsb3dpbmc6IG1vYmlsZSwgbGFuZGxpbmUsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAgICBsYW5kbGluZV9wcmVtaXVtIG9yIHVua25vd24gcGhvbmUgbnVtYmVyLlxuICAgKiAgICAgICAgICAgICAgICAgLSB2YWxpZDogbnVtYmVyIGV4aXN0cy5cbiAgICogICAgICAgICAgICAgICAgIC0gcmVhY2hhYmxlOiBpcyBudW1iZXIgYXZhaWxhYmxlIG5vdy5cbiAgICogICAgICAgICAgICAgICAgIC0gY2FycmllcjogdGhlIE1DQ01OQyBmb3IgdGhlIGNhcnJpZXIgbnVtYmVyIGlzIHJlZ2lzdGVyZWRcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpdGguIFRoaXMgaXMgZWl0aGVyOiA8SVNPIGNvdW50cnkgY29kZT4tRklYRURcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yIDxJU08gY291bnRyeSBjb2RlPi1QUkVNSVVNLlxuICAgKiAgICAgICAgICAgICAgICAgLSBwb3J0ZWQ6IGlmIHRoZSB1c2VyIGhhcyBjaGFuZ2VkIGNhcnJpZXIgZm9yIG51bWJlci5cbiAgICogICAgICAgICAgICAgICAgIC0gcm9hbWluZzogdGhlIHN1YnNjcmliZXIgaXMgb3V0c2lkZSB0aGVpciBob21lIG5ldHdvcmtcbiAgICpcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY2FsbGJhY2sgLSAnYWR2YW5jZWQnIG9ubHkuXG4gICAqICAgICAgICAgICAgICAgICBUaGUgY2FsbGJhY2sgdG8gYmUgY2FsbGVkIHdoZW4gdGhlIEFQSSBjYWxsIGNvbXBsZXRlcy5cbiAgICogQHBhcmFtIHtOdW1iZXJ9IG9wdGlvbnMuY2FsbGJhY2tfdGltZW91dCAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIFRoZSBtYXhpbXVtIHdhaXQgdW50aWwgdGhlIE51bWJlciBJbnNpZ2h0IFJldHVybiBQYXJhbWV0ZXJzXG4gICAqICAgICAgICAgICAgICAgICBhcmUgc2VudCB0byBjYWxsYmFjay4gVGhpcyBpcyBhIHZhbHVlIGJldHdlZW4gMTAwMCAtIDMwMDAwbXNcbiAgICogICAgICAgICAgICAgICAgIGluY2x1c2l2ZS4gVGhlIGRlZmF1bHQgaXMgMzAwMDAgbXMuXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBvcHRpb25zLmNhbGxiYWNrX21ldGhvZCAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIFRoZSBIVF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cgfHwgbGV2ZWwgPT09ICdhZHZhbmNlZEFzeW5jJykge1xuICAgICAgaWYgKGxldmVsID09PSAnYWR2YW5jZWQnKSB7IGNvbnNvbGUud2FybignREVQUkVDQVRJT04gV0FSTklORzogTnVtYmVyIEluc2lnaHQgQWR2YW5jZWQgd2l0aCBhIGxldmVsIG9mIFwiYWR2YW5jZWRcIiB3aWxsIGJlIHN5bmNocm9ub3VzIGluIHYyLjArLiBDb25zaWRlciB1c2luZyB0aGUgbGV2ZWwgXCJhZHZhbmNlZEFzeW5jXCIgdG8ga2VlcCB1c2luZyB0aGUgYXN5bmMgb3B0aW9uLicpIH07XG4gICAgICB0aGlzLl9uZXhtby5udW1iZXJJbnNpZ2h0QWR2YW5jZWRBc3luYy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSBpZihsZXZlbCA9PT0gJ2FkdmFuY2VkU3luYycpIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRBZHZhbmNlZC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSBpZihsZXZlbCA9PT0gJ3N0YW5kYXJkJykge1xuICAgICAgdGhpcy5fbmV4bW8ubnVtYmVySW5zaWdodFN0YW5kYXJkLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICAgIH1cbiAgICBlbHNlIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRCYXNpYy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXJJbnNpZ2h0O1xuIl19 |
@@ -20,3 +20,2 @@ 'use strict'; | ||
*/ | ||
var StreamResource = function () { | ||
@@ -105,2 +104,2 @@ _createClass(StreamResource, null, [{ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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IGEgY2FsbC5cbiAgICpcbiAgICogQHBhcmFtIHtzdHJpbmd9IGNhbGxJZCAtIFRoZSB1bmlxdWUgaWRlbnRpZmllciBmb3IgdGhlIGNhbGwgZm9yIHRoZSBzdHJlYW0gdG8gYmUgc3RvcHBlZCBpbi5cbiAgICogQHBhcmFtIHtmdW5jdGlvbn0gY2FsbGJhY2sgLSBmdW5jdGlvbiB0byBiZSBjYWxsZWQgd2hlbiB0aGUgcmVxdWVzdCBjb21wbGV0ZXMuXG4gICAqL1xuICBzdG9wKGNhbGxJZCwgY2FsbGJhY2spIHtcbiAgICB2YXIgY29uZmlnID0ge1xuICAgICAgaG9zdDonYXBpLm5leG1vLmNvbScsXG4gICAgICBwYXRoOiBTdHJlYW1SZXNvdXJjZS5QQVRILnJlcGxhY2UoJ3tjYWxsX3V1aWR9JywgY2FsbElkKSxcbiAgICAgIG1ldGhvZDogJ0RFTEVURScsXG4gICAgICBoZWFkZXJzOiB7XG4gICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgICdBdXRob3JpemF0aW9uJzogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBTdHJlYW1SZXNvdXJjZTtcbiJdfQ== |
@@ -20,3 +20,2 @@ 'use strict'; | ||
*/ | ||
var TalkResource = function () { | ||
@@ -105,2 +104,2 @@ _createClass(TalkResource, null, [{ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWxrUmVzb3VyY2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7Ozs7Oz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GJlIGNhbGxlZCB3aGVuIHRoZSByZXF1ZXN0IGNvbXBsZXRlcy5cbiAgICovXG4gIHN0b3AoY2FsbElkLCBjYWxsYmFjaykge1xuICAgIHZhciBjb25maWcgPSB7XG4gICAgICBob3N0OidhcGkubmV4bW8uY29tJyxcbiAgICAgIHBhdGg6IFRhbGtSZXNvdXJjZS5QQVRILnJlcGxhY2UoJ3tjYWxsX3V1aWR9JywgY2FsbElkKSxcbiAgICAgIG1ldGhvZDogJ0RFTEVURScsXG4gICAgICBoZWFkZXJzOiB7XG4gICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgICdBdXRob3JpemF0aW9uJzogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBUYWxrUmVzb3VyY2U7XG4iXX0= |
@@ -25,5 +25,4 @@ "use strict"; | ||
*/ | ||
function Verify(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -88,2 +87,2 @@ _classCallCheck(this, Verify); | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9WZXJpZnkuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7O0FBRUE7Ozs7Ozs7O0lBRU0sTTs7Ozs7Ozs7O0FBUUosa0JBQVksV0FBWixFQUF1QztBQUFBLFFBQWQsT0FBYyx5REFBSixFQUFJOztBQUFBOztBQUNyQyxTQUFLLEtBQUwsR0FBYSxXQUFiO0FBQ0EsU0FBSyxPQU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XhtbztcbiAgICBcbiAgICB0aGlzLl9uZXhtby5pbml0aWFsaXplKHRoaXMuY3JlZHMuYXBpS2V5LCB0aGlzLmNyZWRzLmFwaVNlY3JldCwgdGhpcy5vcHRpb25zKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICByZXF1ZXN0KCkge1xuICAgIHRoaXMuX25leG1vLnZlcmlmeU51bWJlci5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBjaGVjaygpIHtcbiAgICB0aGlzLl9uZXhtby5jaGVja1ZlcmlmeVJlcXVlc3QuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgY29udHJvbCgpIHtcbiAgICB0aGlzLl9uZXhtby5jb250cm9sVmVyaWZ5UmVxdWVzdC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBzZWFyY2goKSB7XG4gICAgdGhpcy5fbmV4bW8uc2VhcmNoVmVyaWZ5UmVxdWVzdC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbn1cblxuZXhwb3J0IGRlZmF1bHQgVmVyaWZ5O1xuIl19 |
@@ -24,5 +24,4 @@ "use strict"; | ||
*/ | ||
function Voice(credentials) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -87,2 +86,2 @@ _classCallCheck(this, Voice); | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpb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seSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICAgIFxufVxuXG5leHBvcnQgZGVmYXVsdCBWb2ljZTtcbiJdfQ== |
{ | ||
"name": "nexmo", | ||
"author": "nexmo", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "lib/Nexmo", | ||
@@ -54,3 +54,4 @@ "keywords": [ | ||
"sinon": "^1.17.4", | ||
"sinon-chai": "^2.8.0" | ||
"sinon-chai": "^2.8.0", | ||
"sinon-expect": "^0.3.0" | ||
}, | ||
@@ -60,3 +61,4 @@ "dependencies": { | ||
"uuid": "^2.0.2" | ||
} | ||
}, | ||
"license": "MIT" | ||
} |
import sinon from 'sinon'; | ||
import expect from 'expect.js'; | ||
import expectjs from 'expect.js'; | ||
@@ -7,2 +7,4 @@ import HttpClient from '../lib/HttpClient'; | ||
var expect = require('sinon-expect').enhance(expectjs, sinon, 'was'); | ||
var logger = new NullLogger(); | ||
@@ -22,2 +24,4 @@ var fakeHttp = { | ||
var client = null; | ||
describe('HttpClient Object', function() { | ||
@@ -245,3 +249,44 @@ | ||
}); | ||
}); | ||
describe('parseResponse', function() { | ||
beforeEach(function(){ | ||
client = new HttpClient({ | ||
https: fakeHttp, | ||
logger: logger | ||
}); | ||
}); | ||
it ('should parse a 500+ status code as an error', function() { | ||
var callback = sinon.spy(); | ||
client.__parseReponse(504, '', 'GET', callback); | ||
expect(callback).was.calledWith({ message: 'Server Error: 504' }, null); | ||
}); | ||
it ('should parse a 400-499 status code as a JSON error', function() { | ||
var callback = sinon.spy(); | ||
client.__parseReponse(404, '{ "error" : "error" }', 'GET', callback); | ||
expect(callback).was.calledWith({ 'error' : 'error' }, null); | ||
}); | ||
it ('should parse a 200-299 status code as a JSON object', function() { | ||
var callback = sinon.spy(); | ||
client.__parseReponse(201, '{ "data" : "data" }', 'GET', callback); | ||
expect(callback).was.calledWith(null, { 'data' : 'data' }); | ||
}); | ||
it ('should not try and parse successful DELETE request to JSON', function() { | ||
var callback = sinon.spy(); | ||
client.__parseReponse(201, '', 'DELETE', callback); | ||
expect(callback).was.calledWith(null, ''); | ||
}); | ||
it ('should catch invalid json', function() { | ||
var callback = sinon.spy(); | ||
client.__parseReponse(201, 'not_json', 'GET', callback); | ||
expect(callback).was.calledWith(sinon.match({ | ||
message: 'The API response could not be parsed.' | ||
}), null); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305149
62
3602
17
3