Comparing version 1.2.1 to 2.0.0
@@ -5,3 +5,16 @@ # Changelog | ||
## 2.0.0 | ||
- FIXED: #110 - check the `statusCode` on the response | ||
- FIXED: #114 - handle 429 HTTP status codes | ||
- UPDATED: To allow errors to be programmatically useful the `error` callback objects has been updated to `{statusCode: STATUS_CODE, body: JSON_BODY, headers: HEADERS}` | ||
## 1.2.0 | ||
- ADDED: Add File API to library. `nexmo.files.get` and `nexmo.files.save`. | ||
## 1.1.2 | ||
- Fixed: Bug #104 - Fix JSON parsing error | ||
## 1.1.1 | ||
@@ -8,0 +21,0 @@ |
@@ -25,3 +25,2 @@ "use strict"; | ||
*/ | ||
function Account(credentials) { | ||
@@ -88,2 +87,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BY2NvdW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNLE87Ozs7Ozs7OztBQVFKLG1CQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMsdUVBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQUdBLFNBQUssTUFBTCxHQUFjLEtBQUssT0FBTCxDQUFhLGFBQWIsbUJBQWQ7O0FBRUEsU0FBSyxNQUFMLENBQVksVUFBWixDQUF1QixLQUFLLEtBQUwsQ0FBVyxNQUFsQyxFQUEwQyxLQUFLLEtBQUwsQ0FBVyxTQUFyRCxFQUFnRSxLQUFLLE9BQXJFO0FBQ0Q7Ozs7Ozs7OzttQ0FLYztBQUNiLFdBQUssTUFBTCxDQUFZLFlBQVosQ0FBeUIsS0FBekIsQ0FBK0IsS0FBSyxNQUFwQyxFQUE0QyxTQUE1QztBQ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5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGVQYXNzd29yZCgpIHtcbiAgICB0aGlzLl9uZXhtby5jaGFuZ2VQYXNzd29yZC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGVTTVNDYWxsYmFjaygpIHtcbiAgICB0aGlzLl9uZXhtby5jaGFuZ2VNb0NhbGxiYWNrVXJsLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHVwZGF0ZURlbGl2ZXJ5UmVjZWlwdENhbGxiYWNrKCkge1xuICAgIHRoaXMuX25leG1vLmNoYW5nZURyQ2FsbGJhY2tVcmwuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFjY291bnQ7XG4iXX0= |
@@ -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,3 +28,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; }; }(); | ||
*/ | ||
function App(credentials) { | ||
@@ -95,2 +94,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHAuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7SUFFTSxHOzs7Ozs7Ozs7QUFRSixlQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMsdUVBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQUdBLFNBQUssTUFBTCxHQUFjLEtBQUssT0FBTCxDQUFhLGFBQWIsbUJBQWQ7O0FBRUEsU0FBSyxNQUFMLENBQVksVUFBWixDQUF1QixLQUFLLEtBQUwsQ0FBVyxNQUFsQyxFQUEwQyxLQUFLLEtBQUwsQ0FBVyxTQUFyRCxFQUFnRSxLQUFLLE9BQXJFO0FBQ0Q7Ozs7Ozs7Ozs2QkFLUTtBQUNQLFdBQUssTUFBTCxDQUFZLGlCQUFaLENBQThCLEtBQTlCLENBQW9DLEtBQUssTUFBekMsRUFBaUQsU0FBakQ7QUFDRDs7Ozs7Ozs7d0JBS0csSyxFQUFPO0FBQ1QsVUFBRyxRQUFPLEtBQVAseUNBQU8sS0FBUCxPQUFrQixRQUFyQixFQUErQjtBQUM3QixhQUFLLE1BQUwsQ0FBWSxjQUFaLENBQTJCLEtBQTNCLENBQWlDLEtBQUssTUFBdEMsRUFBOEMsU0FBOUM7QUFDRCxPQUZELE1BR0s7QUFDSCxhQUFLLE1BQUwsQ0FBWSxlQUFaLENBQTRCLEtBQTVCLENBQWtDLEtB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dGhpcy5vcHRpb25zKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqLyBcbiAgY3JlYXRlKCkge1xuICAgIHRoaXMuX25leG1vLmNyZWF0ZUFwcGxpY2F0aW9uLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGdldChhcHBJZCkge1xuICAgIGlmKHR5cGVvZihhcHBJZCkgIT09ICdvYmplY3QnKSB7XG4gICAgICB0aGlzLl9uZXhtby5nZXRBcHBsaWNhdGlvbi5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICB0aGlzLl9uZXhtby5nZXRBcHBsaWNhdGlvbnMuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gICAgfVxuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHVwZGF0ZSgpIHtcbiAgICB0aGlzLl9uZXhtby51cGRhdGVBcHBsaWNhdGlvbi5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBkZWxldGUoKSB7XG4gICAgdGhpcy5fbmV4bW8uZGVsZXRlQXBwbGljYXRpb24uYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFwcDtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9BcHAuanMiXSwibmFtZXMiOlsiQXBwIiwiY3JlZGVudGlhbHMiLCJvcHRpb25zIiwiY3JlZHMiLCJfbmV4bW8iLCJuZXhtb092ZXJyaWRlI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3JlZHMuYXBpS2V5LCB0aGlzLmNyZWRzLmFwaVNlY3JldCwgdGhpcy5vcHRpb25zKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqLyBcbiAgY3JlYXRlKCkge1xuICAgIHRoaXMuX25leG1vLmNyZWF0ZUFwcGxpY2F0aW9uLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGdldChhcHBJZCkge1xuICAgIGlmKHR5cGVvZihhcHBJZCkgIT09ICdvYmplY3QnKSB7XG4gICAgICB0aGlzLl9uZXhtby5nZXRBcHBsaWNhdGlvbi5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICB0aGlzLl9uZXhtby5nZXRBcHBsaWNhdGlvbnMuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gICAgfVxuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIHVwZGF0ZSgpIHtcbiAgICB0aGlzLl9uZXhtby51cGRhdGVBcHBsaWNhdGlvbi5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICBkZWxldGUoKSB7XG4gICAgdGhpcy5fbmV4bW8uZGVsZXRlQXBwbGljYXRpb24uYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFwcDtcbiJdfQ== |
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DYWxsc1Jlc291cmNlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTs7OztBQUVBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7Ozs7Ozs7O0lBS00sYTs7Ozs7Ozs7d0JBS2M7QUFDaEIsYUFBTyxXQUFQO0FBQ0Q7Ozs7Ozs7Ozs7O0FBUUQseUJBQVksS0FBWixFQUFtQixPQUFuQixFQUE0QjtBQUFBOztBQUMxQixTQUFLLEtBQUwsR0FBYSxLQUFiO0FBQ0EsU0FBSyxPQUFMLEdBQWUsT0FBZjs7Ozs7QUFLQSxTQUFLLE1BQUwsR0FBYyw2QkFBbUIsS0FBSyxLQUF4QixFQUErQixLQUFLLE9BQXBDLENBQWQ7Ozs7O0FBS0EsU0FBSyxJQUFMLEdBQVksMkJBQWlCLEtBQUssS0FBdEIsRUFBNkIsS0FBSyxPQUFsQyxDQUFaOzs7OztBQUtBLFNBQUssSUFBTCxHQUFZLDJCQUFpQixLQUFLLEtBQXRCLE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gY2FsbGJhY2sgLSBmdW5jdGlvbiB0byBiZSBjYWxsZWQgd2hlbiB0aGUgcmVxdWVzdCBjb21wbGV0ZXMuXG4gICAqL1xuICB1cGRhdGUoY2FsbElkLCBwYXJhbXMsIGNhbGxiYWNrKSB7XG4gICAgcGFyYW1zID0gSlNPTi5zdHJpbmdpZnkocGFyYW1zKTtcblxuICAgIHZhciBjb25maWcgPSB7XG4gICAgICBob3N0OidhcGkubmV4bW8uY29tJyxcbiAgICAgIHBhdGg6YCR7Q2FsbHNSZXNvdXJjZS5QQVRIfS8ke2NhbGxJZH1gLFxuICAgICAgbWV0aG9kOiAnUFVUJyxcbiAgICAgIGJvZHk6IHBhcmFtcyxcbiAgICAgIGhlYWRlcnM6IHtcbiAgICAgICAgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJyxcbiAgICAgICAgJ0NvbnRlbnQtTGVuZ3RoJzogcGFyYW1zLmxlbmd0aCxcbiAgICAgICAgJ0F1dGhvcml6YXRpb24nOiBgQmVhcmVyICR7dGhpcy5jcmVkcy5nZW5lcmF0ZUp3dCgpfWBcbiAgICAgIH1cbiAgICB9O1xuICAgIHRoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoY29uZmlnLCBjYWxsYmFjayk7XG4gIH1cbiAgXG59XG5cbmV4cG9ydCBkZWZhdWx0IENhbGxzUmVzb3VyY2U7XG4iXX0= |
@@ -71,2 +71,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db25zb2xlTG9nZ2VyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7OztJQUVNLGE7OztBQUNKLHlCQUFZLGVBQVosRUFBNkI7QUFBQTs7QUFBQTs7QUFHM0IsVUFBSyxHQUFMLEdBQVcsbUJBQW1CLE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gIHN1cGVyKCk7XG4gICAgXG4gICAgdGhpcy5vdXQgPSBjb25zb2xlT3ZlcnJpZGUgfHwgY29uc29sZTtcbiAgfVxuICBcbiAgbG9nKGxldmVsLCAuLi5hcmdzKSB7XG4gICAgdGhpcy5vdXQubG9nKGAke2xldmVsfTpgLCAuLi5hcmdzKTtcbiAgfVxuXG4gIHdhcm4oLi4uYXJncykge1xuICAgIHRoaXMubG9nKCd3YXJuJywgLi4uYXJncyk7XG4gIH1cbiAgXG4gIGVycm9yKC4uLmFyZ3MpIHtcbiAgICB0aGlzLm91dC5lcnJvcignZXJyb3I6JywgLi4uYXJncyk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29uc29sZUxvZ2dlcjtcbiJdfQ== |
@@ -33,3 +33,2 @@ "use strict"; | ||
*/ | ||
var Credentials = function () { | ||
@@ -116,2 +115,2 @@ function Credentials(apiKey, apiSecret, privateKey, applicationId) { | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9DcmVkZW50aWFscy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7QUFFQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFjTSxXO0FBQ0osdUJBQVksTUFBWixFQUFvQixTQUFwQixFQUErQixVQUEvQixFQUEyQyxhQUEzQyxFQUEwRDtBQUFBOztBQUN4RCxTQUFLLE1BQUwsR0FBYyxNQUFkO0FBQ0EsU0FBSyxTQUFMLEdBQWlCLFNBQWpCOztBQUVBLFNBQUssVUFBTCxHQUFrQixJQUFsQjtBQUNBLFNBQUssYUFBTCxHQUFxQixhQUFyQjs7QUFFQSxRQUFHLHNCQUFzQixNQUF6QixFQUFpQztBQUMvQixXQUFLLFVBQUwsR0FBa0IsVUFBbEI7QUFDRCxLQUZELE1BR0ssSUFBRyxPQUFPLFVBQVAsS0FB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gKiBLZXkvU2VjcmV0IGNyZWRlbnRpYWxzIGFyZSBvbmx5IHN1cHBvcnRlZCBhdCBwcmVzZW50LlxuICAgKi9cbiAgc3RhdGljIHBhcnNlKG9iaikge1xuICAgIGlmKG9iaiBpbnN0YW5jZW9mIENyZWRlbnRpYWxzKSB7XG4gICAgICByZXR1cm4gb2JqO1xuICAgIH1cbiAgICBlbHNlIHtcbiAgICAgIHJldHVybiBuZXcgQ3JlZGVudGlhbHMob2JqLmFwaUtleSwgb2JqLmFwaVNlY3JldCwgb2JqLnByaXZhdGVLZXksIG9iai5hcHBsaWNhdGlvbklkKTtcbiAgICB9XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ3JlZGVudGlhbHM7XG4iXX0= |
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9EdG1mUmVzb3VyY2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7O0lBS00sWTs7Ozs7Ozs7d0JBS2M7QUFDaEIsYUFBTyw0QkFBUDtBQUNEOzs7Ozs7Ozs7OztBQVFELHdCQUFZLEtBQVosRUFBbUIsT0FBbkIsRUFBNEI7QUFBQTs7QUFDMUIsU0FBSyxLQUFMLEdBQWEsS0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7QUFDRDs7Ozs7Ozs7Ozs7O3lCQVFJLE0sRUFBUSxNLEVBQVEsUSxFQUFVO0FBQzdCLGVBQVMsS0FBSyxTQUFMLENBQWUsTUFBZixDQUFUOztBQUVBLFVBQUksU0FBUztBQUNYLGNBQU0sZUFESztBQUVYLGNBQU0sYUFBYSxJQUFiLENBQWtCLE9BQWxCLENBQTBCLGF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B9KVxuICB9XG5cbiAgX19zdG9yZUZpbGUoZGF0YSwgZmlsZSwgY2FsbGJhY2spIHtcbiAgICBmcy53cml0ZUZpbGUoZmlsZSwgZGF0YSwgKGVycm9yKSA9PiB7XG4gICAgICBpZiAoZXJyb3IpIHtcbiAgICAgICAgY2FsbGJhY2soZXJyb3IsIG51bGwpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY2FsbGJhY2sobnVsbCwgZmlsZSk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBGaWxlc1Jlc291cmNlO1xuIl19 |
@@ -98,3 +98,3 @@ 'use strict'; | ||
_this.__parseReponse(response.status, response.headers['content-type'], responseData, method, callback); | ||
_this.__parseResponse(response, responseData, method, callback); | ||
} | ||
@@ -115,4 +115,12 @@ }); | ||
}, { | ||
key: '__parseReponse', | ||
value: function __parseReponse(status, contentType, data, method, callback) { | ||
key: '__parseResponse', | ||
value: function __parseResponse(httpResponse, data, method, callback) { | ||
var isArrayOrBuffer = data instanceof Array || data instanceof Buffer; | ||
if (!isArrayOrBuffer) { | ||
throw new Error('data should be of type Array or Buffer'); | ||
} | ||
var status = httpResponse.statusCode; | ||
var headers = httpResponse.headers; | ||
var response = null; | ||
@@ -123,9 +131,17 @@ var error = null; | ||
if (status >= 500) { | ||
error = { message: 'Server Error: ' + status }; | ||
error = { message: 'Server Error', statusCode: status }; | ||
} else if (httpResponse.headers['content-type'] === 'application/octet-stream') { | ||
response = data; | ||
} else if (status === 429) { | ||
// 429 does not return a parsable body | ||
if (!headers['retry-after']) { | ||
// retry based on allowed per second | ||
var retryAfterMillis = method === 'POST' ? 1000 / 2 : 1000 / 5; | ||
headers['retry-after'] = retryAfterMillis; | ||
} | ||
error = { statusCode: 429, body: data }; | ||
} else if (status >= 400 || status < 200) { | ||
error = JSON.parse(data); | ||
} else if (contentType === 'application/octet-stream') { | ||
response = data; | ||
error = { body: JSON.parse(data.join('')), headers: headers }; | ||
} else if (method !== 'DELETE') { | ||
response = JSON.parse(data); | ||
response = JSON.parse(data.join('')); | ||
} else { | ||
@@ -138,6 +154,7 @@ response = data; | ||
this.logger.error('Raw Error message from API '); | ||
this.logger.error(data); | ||
this.logger.error('"' + data + '"'); | ||
error = { | ||
message: "The API response could not be parsed.", | ||
body: data.join(''), | ||
parseError: parseError | ||
@@ -147,2 +164,7 @@ }; | ||
if (error) { | ||
error.statusCode = status; | ||
error.headers = headers; | ||
} | ||
callback(error, response); | ||
@@ -157,2 +179,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9IdHRwQ2xpZW50LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFJLFFBQVEsUUFBUSxPQUFSLENBQVo7QUFDQSxJQUFJLE9BQU8sUUFBUSxNQUFSLENBQVg7O0lBRU0sVTtBQUNKLHNCQUFZLE9BQVosRUFBcUI7QUFBQTs7QUFDbkIsU0FBSyxJQUFMLEdBQVksT0FBTyxRQUFRLElBQTNCO0FBQ0EsU0FBSyxLQUFMLEdBQWEsUUFBUSxLQUFSLElBQWlCLEtBQTlCO0FBQ0EsU0FBSyxJQUFMLEdBQWEsUUFBUSxJQUFSLElBQWdCLElBQTdCO0FBQ0EsU0FBSyxPQUFMLEdBQWU7QUFDWCxzQkFBZ0IsbUNBREw7QUFFWCxnQkFBVTtBQUZDLEtBQWY7QUFJQSxTQUFLLE1BQUwsR0FBYyxRQUFRLE1BQXRCOztBQUVBLFFBQUcsUUFBUSxTQUFYLEVBQXNCO0FBQ3BCLFdBQUssT0FBTCxDQUFhLFlBQWIsSUFBNkIsUUFBUSxTQUFyQztBQUNEO0FBQ0Y7Ozs7NEJBRU8sUSxFQUFVLE0sRUFBUSxRLEVBQVU7QUFBQTs7QUFDbEMsVUFBSSxPQUFPLE1BQVAsSUFBaUIsVUF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SA9IHJlc3BvbnNlLmhlYWRlcnNbJ2NvbnRlbnQtdHlwZSddID09PSAnYXBwbGljYXRpb24vb2N0ZXQtc3RyZWFtJztcbiAgICAgICAgaWYgKCFpc0JpbmFyeSkgeyByZXNwb25zZS5zZXRFbmNvZGluZygndXRmOCcpOyB9XG5cbiAgICAgICAgcmVzcG9uc2Uub24oJ2RhdGEnLCAoY2h1bmspID0+IHtcbiAgICAgICAgICByZXNwb25zZURhdGEucHVzaChjaHVuayk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJlc3BvbnNlLm9uKCdlbmQnLCAoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLmxvZ2dlci5pbmZvKCdyZXNwb25zZSBlbmRlZDonLCByZXNwb25zZS5zdGF0dXNDb2RlKTtcbiAgICAgICAgICAgIGlmIChjYWxsYmFjaykge1xuICAgICAgICAgICAgICBpZiAoaXNCaW5hcnkpIHsgcmVzcG9uc2VEYXRhID0gQnVmZmVyLmNvbmNhdChyZXNwb25zZURhdGEpOyB9XG5cbiAgICAgICAgICAgICAgdGhpcy5fX3BhcnNlUmVzcG9uc2UoXG4gICAgICAgICAgICAgICAgcmVzcG9uc2UsXG4gICAgICAgICAgICAgICAgcmVzcG9uc2VEYXRhLFxuICAgICAgICAgICAgICAgIG1ldGhvZCxcbiAgICAgICAgICAgICAgICBjYWxsYmFja1xuICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICByZXNwb25zZS5vbignY2xvc2UnLCAoZSkgPT4ge1xuICAgICAgICAgICAgdGhpcy5sb2dnZXIuZXJyb3IoJ3Byb2JsZW0gd2l0aCBBUEkgcmVxdWVzdCBkZXRhaWxlZCBzdGFja3RyYWNlIGJlbG93ICcpO1xuICAgICAgICAgICAgdGhpcy5sb2dnZXIuZXJyb3IoZSk7XG4gICAgICAgICAgICBjYWxsYmFjayhlKTtcbiAgICAgICAgfSk7XG4gICAgfSk7XG4gICAgcmVxdWVzdC5vbignZ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Ghpcy5sb2dnZXIuZXJyb3IoYFwiJHtkYXRhfVwiYCk7XG5cbiAgICAgIGVycm9yID0ge1xuICAgICAgICBtZXNzYWdlOiBcIlRoZSBBUEkgcmVzcG9uc2UgY291bGQgbm90IGJlIHBhcnNlZC5cIixcbiAgICAgICAgYm9keTogZGF0YS5qb2luKCcnKSxcbiAgICAgICAgcGFyc2VFcnJvcjogcGFyc2VFcnJvclxuICAgICAgfTtcbiAgICB9XG5cbiAgICBpZihlcnJvcikge1xuICAgICAgZXJyb3Iuc3RhdHVzQ29kZSA9IHN0YXR1cztcbiAgICAgIGVycm9yLmhlYWRlcnMgPSBoZWFkZXJzO1xuICAgIH1cblxuICAgIGNhbGxiYWNrKGVycm9yLCByZXNwb25zZSk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgSHR0cENsaWVudDtcbiJdfQ== |
'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; }; | ||
@@ -64,2 +64,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; }; }(); | ||
module.exports = JwtGenerator; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Kd3RHZW5lcmF0b3IuanMiXSwibmFtZXMiOltd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lwZW9mIGNsYWltcyAhPT0gJ29iamVjdCcpIHtcblx0XHRcdHRocm93IG5ldyBFcnJvcignY2xhaW1zIG11c3QgYmUgb2YgdHlwZSBvYmplY3QnKTtcblx0XHR9XG5cdFx0XG5cdFx0dmFyIHRvU2lnbiA9IHtcblx0XHRcdCdpYXQnOiBjbGFpbXMuaXNzdWVkQXQgfHwgcGFyc2VJbnQoRGF0ZS5ub3coKS8xMDAwLCAxMCksXG5cdFx0XHQnanRpJzogY2xhaW1zLmp0aSB8fCB1dWlkLnYxKClcblx0XHR9O1xuXHRcdE9iamVjdC5rZXlzKGNsYWltcykuZm9yRWFjaCgoa2V5KSA9PiB7XG5cdFx0XHR0b1NpZ25ba2V5XSA9IGNsYWltc1trZXldO1xuXHRcdH0pO1xuXHRcdFxuXHRcdHZhciB0b2tlbiA9IGp3dC5zaWduKHRvU2lnbiwgY2VydCwge2FsZ29yaXRobTogJ1JTMjU2J30pO1xuXHRcdHJldHVybiB0b2tlbjtcblx0fVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IEp3dEdlbmVyYXRvcjtcbiJdfQ== |
@@ -24,3 +24,2 @@ "use strict"; | ||
*/ | ||
function Message(credentials) { | ||
@@ -107,2 +106,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZXNzYWdlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNLE87Ozs7Ozs7O0FBT0osbUJBQVksV0FBWixFQUF1QztBQUFBLFFBQWQsT0FBYyx1RUFBSixFQUFJOztBQUFBOztBQUNyQyxTQUFLLEtBQUwsR0FBYSxXQUFiO0FBQ0EsU0FBSyxPQUFMLEdBQWUsT0FBZjs7O0FBR0EsU0FBSyxNQUFMLEdBQWMsS0FBSyx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ials) { | ||
@@ -188,2 +187,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { debug: false }; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OZXhtby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOzs7O0FBRUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7Ozs7QUFFQSxJQUFNLHVCQUF1Qiw0QkFBN0I7O0lBRU0sSzs7Ozs7Ozs7Ozs7OztBQVlKLGlCQUFZLFdBQVosRUFBa0Q7QUFBQSxRQUF6QixPQUF5Qix1RUFBZixFQUFDLE9BQU0sS0FBUCxFQUFlOztBQUFBOztBQUNoRCxTQUFLLFdBQUwsR0FBbUIsc0JBQVksS0FBWixDQUFrQixXQUFsQixDQUFuQjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7Ozs7QUFJQSxRQUFHLENBQUMsS0FBSyxPQUFMLENBQWEsTUFBZCxJQUF3QixLQUFLLE9BQUwsQ0FBYSxLQUF4QyxFQUErQztBQUM3QyxXQUFLLE9BQUwsQ0FBYSxNQUFiLEdBQXNCLDZCQUF0QjtBQUNELEtBRkQsTUFHSyxJQUFHLENBQUMsS0FBSyxPQUFMLENBQWEsTUFBakIsRUFBeUI7O0FBRTVCLFdBQUssT0FBTCxDQUFhLE1BQWIsR0FBc0IsMEJBQXRCO0FBQ0Q7O0FBRUQsUUFBSSxZQUFZLGlDQUFoQjtBQUNBLFFBQUk7QUFDRixVQUFJLGlCQUFpQixRQUFRLFlBQVksa0JBQXBCLENBQXJCO0FBQ0Esa0NBQTBCLGVBQWUsT0FBekMsY0FBeUQ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XG4gIHNlYXJjaCgpIHtcbiAgICB0aGlzLl9uZXhtby5zZWFyY2hOdW1iZXJzLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGJ1eSgpIHtcbiAgICB0aGlzLl9uZXhtby5idXlOdW1iZXIuYXBwbHkodGhpcy5fbmV4bW8sIGFyZ3VtZW50cyk7XG4gIH1cbiAgXG4gIC8qKlxuICAgKiBUT0RPOiBkb2N1bWVudFxuICAgKi9cbiAgY2FuY2VsKCkge1xuICAgIHRoaXMuX25leG1vLmNhbmNlbE51bWJlci5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICBcbiAgLyoqXG4gICAqIFRPRE86IGRvY3VtZW50XG4gICAqL1xuICB1cGRhdGUoKSB7XG4gICAgdGhpcy5fbmV4bW8udXBkYXRlTnVtYmVyLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXI7XG4iXX0= |
@@ -25,3 +25,2 @@ "use strict"; | ||
*/ | ||
function NumberInsight(credentials) { | ||
@@ -116,2 +115,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9OdW1iZXJJbnNpZ2h0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBOzs7Ozs7OztJQUVNLGE7Ozs7Ozs7OztBQVFKLHlCQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMsdUVBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQU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RhbmRhcmQnXG4gICAqICAgICAgICAgICAgICAgICBvciAnYWR2YW5jZWQnLlxuICAgKiAgICAgICAgICAgICAgICAgSWYgbm8gYGxldmVsYCB2YWx1ZSBpcyBwcm92aWRlZCwgb3IgYW4gdW5yZWNvZ25pc2VkIHZhbHVlXG4gICAqICAgICAgICAgICAgICAgICBpcyB1c2VkLCAnYmFzaWMnIGxldmVsIGluc2lnaHQgd2lsbCBiZSB1c2VkLlxuICAgKiBAcGFyYW0ge3N0cmluZ30gb3B0aW9ucy5udW1iZXIgLSB0aGUgcGhvbmUgbnVtYmVyIHRvIHJldHJpZXZlIGluc2lnaHQgb25cbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY291bnRyeSAtICdiYXNpYycgYW5kICdzdGFuZGFyZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIElTTyAzMTY2IEFscGhhIDIgY291bnRyeSBjb2RlXG4gICAqICAgICAgICAgICAgICAgICBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fMzE2Ni0xX2FscGhhLTJcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuIGlwIC0gJ2FkdmFuY2VkJyBvbmx5LlxuICAgKiAgICAgICAgICAgICAgICAgVGhlIElQIGFkZHJlc3MgaW4gSVB2NCBub3RhdGlvbiBvZiB0aGUgZW5kcG9pbnQgdGhlXG4gICAqICAgICAgICAgICAgICAgICB1c2VyIGNvbm5lY3RlZCBmcm9tLlxuICAgKiBAcGFyYW0ge0FycmF5fSAgb3B0aW9ucy5mZWF0dXJlcyAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIEFycmF5IGRldGFpbGluZyB0aGUgaW5mb3JtYXRpb24geW91IHdhbnQgZm9yIHRoaXMgcGhvbmVcbiAgICogICAgICAgICAgICAgICAgIG51bWJlci4gUG9zc2libGUgQXJyYXkgZWxlbWVudHMgYXJlOlxuICAgKiAgICAgICAgICAgICAgICAgLSB0eXBlOiBudW1iZXIgaXMgb25lIG9mIHRoZSBmb2xsb3dpbmc6IG1vYmlsZSwgbGFuZGxpbmUsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAgICBsYW5kbGluZV9wcmVtaXVtIG9yIHVua25vd24gcGhvbmUgbnVtYmVyLlxuICAgKiAgICAgICAgICAgICAgICAgLSB2YWxpZDogbnVtYmVyIGV4aXN0cy5cbiAgICogICAgICAgICAgICAgICAgIC0gcmVhY2hhYmxlOiBpcyBudW1iZXIgYXZhaWxhYmxlIG5vdy5cbiAgICogICAgICAgICAgICAgICAgIC0gY2FycmllcjogdGhlIE1DQ01OQyBmb3IgdGhlIGNhcnJpZXIgbnVtYmVyIGlzIHJlZ2lzdGVyZWRcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpdGguIFRoaXMgaXMgZWl0aGVyOiA8SVNPIGNvdW50cnkgY29kZT4tRklYRURcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yIDxJU08gY291bnRyeSBjb2RlPi1QUkVNSVVNLlxuICAgKiAgICAgICAgICAgICAgICAgLSBwb3J0ZWQ6IGlmIHRoZSB1c2VyIGhhcyBjaGFuZ2VkIGNhcnJpZXIgZm9yIG51bWJlci5cbiAgICogICAgICAgICAgICAgICAgIC0gcm9hbWluZzogdGhlIHN1YnNjcmliZXIgaXMgb3V0c2lkZSB0aGVpciBob21lIG5ldHdvcmtcbiAgICpcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY2FsbGJhY2sgLSAnYWR2YW5jZWQnIG9ubHkuXG4gICAqICAgICAgICAgICAgICAgICBUaGUgY2FsbGJhY2sgdG8gYmUgY2FsbGVkIHdoZW4gdGhlIEFQSSBjYWxsIGNvbXBsZXRlcy5cbiAgICogQHBhcmFtIHtOdW1iZXJ9IG9wdGlvbnMuY2FsbGJhY2tfdGltZW91dCAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIFRo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iAgICAgICAgICAgICAgICAgSWYgbm8gYGxldmVsYCB2YWx1ZSBpcyBwcm92aWRlZCwgb3IgYW4gdW5yZWNvZ25pc2VkIHZhbHVlXG4gICAqICAgICAgICAgICAgICAgICBpcyB1c2VkLCAnYmFzaWMnIGxldmVsIGluc2lnaHQgd2lsbCBiZSB1c2VkLlxuICAgKiBAcGFyYW0ge3N0cmluZ30gb3B0aW9ucy5udW1iZXIgLSB0aGUgcGhvbmUgbnVtYmVyIHRvIHJldHJpZXZlIGluc2lnaHQgb25cbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY291bnRyeSAtICdiYXNpYycgYW5kICdzdGFuZGFyZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIElTTyAzMTY2IEFscGhhIDIgY291bnRyeSBjb2RlXG4gICAqICAgICAgICAgICAgICAgICBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fMzE2Ni0xX2FscGhhLTJcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuIGlwIC0gJ2FkdmFuY2VkJyBvbmx5LlxuICAgKiAgICAgICAgICAgICAgICAgVGhlIElQIGFkZHJlc3MgaW4gSVB2NCBub3RhdGlvbiBvZiB0aGUgZW5kcG9pbnQgdGhlXG4gICAqICAgICAgICAgICAgICAgICB1c2VyIGNvbm5lY3RlZCBmcm9tLlxuICAgKiBAcGFyYW0ge0FycmF5fSAgb3B0aW9ucy5mZWF0dXJlcyAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIEFuIEFycmF5IGRldGFpbGluZyB0aGUgaW5mb3JtYXRpb24geW91IHdhbnQgZm9yIHRoaXMgcGhvbmVcbiAgICogICAgICAgICAgICAgICAgIG51bWJlci4gUG9zc2libGUgQXJyYXkgZWxlbWVudHMgYXJlOlxuICAgKiAgICAgICAgICAgICAgICAgLSB0eXBlOiBudW1iZXIgaXMgb25lIG9mIHRoZSBmb2xsb3dpbmc6IG1vYmlsZSwgbGFuZGxpbmUsXG4gICAqICAgICAgICAgICAgICAgICAgICAgICAgICBsYW5kbGluZV9wcmVtaXVtIG9yIHVua25vd24gcGhvbmUgbnVtYmVyLlxuICAgKiAgICAgICAgICAgICAgICAgLSB2YWxpZDogbnVtYmVyIGV4aXN0cy5cbiAgICogICAgICAgICAgICAgICAgIC0gcmVhY2hhYmxlOiBpcyBudW1iZXIgYXZhaWxhYmxlIG5vdy5cbiAgICogICAgICAgICAgICAgICAgIC0gY2FycmllcjogdGhlIE1DQ01OQyBmb3IgdGhlIGNhcnJpZXIgbnVtYmVyIGlzIHJlZ2lzdGVyZWRcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpdGguIFRoaXMgaXMgZWl0aGVyOiA8SVNPIGNvdW50cnkgY29kZT4tRklYRURcbiAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yIDxJU08gY291bnRyeSBjb2RlPi1QUkVNSVVNLlxuICAgKiAgICAgICAgICAgICAgICAgLSBwb3J0ZWQ6IGlmIHRoZSB1c2VyIGhhcyBjaGFuZ2VkIGNhcnJpZXIgZm9yIG51bWJlci5cbiAgICogICAgICAgICAgICAgICAgIC0gcm9hbWluZzogdGhlIHN1YnNjcmliZXIgaXMgb3V0c2lkZSB0aGVpciBob21lIG5ldHdvcmtcbiAgICpcbiAgICogQHBhcmFtIHtzdHJpbmd9IG9wdGlvbnMuY2FsbGJhY2sgLSAnYWR2YW5jZWQnIG9ubHkuXG4gICAqICAgICAgICAgICAgICAgICBUaGUgY2FsbGJhY2sgdG8gYmUgY2FsbGVkIHdoZW4gdGhlIEFQSSBjYWxsIGNvbXBsZXRlcy5cbiAgICogQHBhcmFtIHtOdW1iZXJ9IG9wdGlvbnMuY2FsbGJhY2tfdGltZW91dCAtICdhZHZhbmNlZCcgb25seS5cbiAgICogICAgICAgICAgICAgICAgIFRoZSBtYXhpbXVtIHdhaXQgdW50aWwgdGhlIE51bWJlciBJbnNpZ2h0IFJldHVybi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AgICBlbHNlIHtcbiAgICAgIHRoaXMuX25leG1vLm51bWJlckluc2lnaHRCYXNpYy5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgICB9XG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBOdW1iZXJJbnNpZ2h0O1xuIl19 |
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TdHJlYW1SZXNvdXJjZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7SUFLTSxjOzs7Ozs7Ozt3QkFLYztBQUNoQixhQUFPLDhCQUFQO0FBQ0Q7Ozs7Ozs7Ozs7O0FBUUQsMEJBQVksS0FBWixFQUFtQixPQUFuQixFQUE0QjtBQUFBOztBQUMxQixTQUFLLEtBQUwsR0FBYSxLQUFiO0FBQ0EsU0FBSyxPQUFMLEdBQWUsT0FBZjtBQUNEOzs7Ozs7Ozs7Ozs7MEJBUUssTSxFQUFRLE0sRUFBUSxRLEVBQVU7QUFDOUIsZUFBUyxLQUFLLFNBQUwsQ0FBZSxNQUFmLENBQVQ7O0FBRUEsVUFBSSxTQUFTO0FBQ1gsY0FBTSxlQURLO0FBRVgsY0FBTSxlQUFlLElBQWYsQ0FBb0IsT0FBcEIsQ0FBNEIsYUFBNUIsRUFBMkMsTUFBM0MsQ0FGSztBQUdYLGdCQUFRLEtBSEc7QUFJWCxjQUFNLE1BSks7QUFLWCxpQkFBUztBQUNQLDBCQUFnQixrQkFEVDtBQUVQLDRCQUFrQixPQUFPLE1BRmxCO0FBR1AsdUNBQTJCLEtBQUssS0FBTCxDQUFXLFdBQVg7QUFIcEI7QUFMRSxPQUFiO0FBV0EsV0FB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4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBTdHJlYW1SZXNvdXJjZTtcbiJdfQ== |
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWxrUmVzb3VyY2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7O0lBS00sWTs7Ozs7Ozs7d0JBS2M7QUFDaEIsYUFBTyw0QkFBUDtBQUNEOzs7Ozs7Ozs7OztBQVFELHdCQUFZLEtBQVosRUFBbUIsT0FBbkIsRUFBNEI7QUFBQTs7QUFDMUIsU0FBSyxLQUFMLEdBQWEsS0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7QUFDRDs7Ozs7Ozs7Ozs7OzBCQVFLLE0sRUFBUSxNLEVBQVEsUSxFQUFVO0FBQzlCLGVBQVMsS0FBSyxTQUFMLENBQWUsTUFBZixDQUFUOztBQUVBLFVBQUksU0FBUztBQUNYLGNBQU0sZUFESztBQUVYLGNBQU0sYUFBYSxJQUFiLENBQWtCLE9BQWxCLENBQTBCLGFBQTFCLEVBQXlDLE1BQXpDLENBRks7QUFHWCxnQkFBUSxLQUhHO0FBSVgsY0FBTSxNQUpLO0FBS1gsaUJBQVM7QUFDUCwwQkFBZ0Isa0JBRFQ7QUFFUCw0QkFBa0IsT0FBTyxNQUZsQjtBQUdQLHVDQUEyQixLQUFLLEtBQUwsQ0FBVyxXQUFYO0FBSHBCO0FBTEUsT0FBYjtBQVdBLFdBQUssT0FBTCxDQUFhLFVBQWIsQ0FBd0IsT0FBeEIsQ0FBZ0MsTUFBaEMsRUFBd0MsUUFBeEM7QUFDRDs7Ozs7Ozs7Ozs7eUJBUUksTSxFQUFRLF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1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG4gIFxuICAvKipcbiAgICogU3RvcCBhIHRhbGsgaW4gYSBjYWxsLlxuICAgKlxuICAgKiBAcGFyYW0ge3N0cmluZ30gY2FsbElkIC0gVGhlIHVuaXF1ZSBpZGVudGlmaWVyIGZvciB0aGUgY2FsbCBmb3IgdGhlIHRhbGsgdG8gYmUgc3RvcHBlZCBpbi5cbiAgICogQHBhcmFtIHtmdW5jdGlvbn0gY2FsbGJhY2sgLSBmdW5jdGlvbiB0byBiZSBjYWxsZWQgd2hlbiB0aGUgcmVxdWVzdCBjb21wbGV0ZXMuXG4gICAqL1xuICBzdG9wKGNhbGxJZCwgY2FsbGJhY2spIHtcbiAgICB2YXIgY29uZmlnID0ge1xuICAgICAgaG9zdDonYXBpLm5leG1vLmNvbScsXG4gICAgICBwYXRoOiBUYWxrUmVzb3VyY2UuUEFUSC5yZXBsYWNlKCd7Y2FsbF91dWlkfScsIGNhbGxJZCksXG4gICAgICBtZXRob2Q6ICdERUxFVEUnLFxuICAgICAgaGVhZGVyczoge1xuICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nLFxuICAgICAgICAnQXV0aG9yaXphdGlvbic6IGBCZWFyZXIgJHt0aGlzLmNyZWRzLmdlbmVyYXRlSnd0KCl9YFxuICAgICAgfVxuICAgIH07XG4gICAgdGhpcy5vcHRpb25zLmh0dHBDbGllbnQucmVxdWVzdChjb25maWcsIGNhbGxiYWNrKTtcbiAgfVxuICBcbn1cblxuZXhwb3J0IGRlZmF1bHQgVGFsa1Jlc291cmNlO1xuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9UYWxrUmVzb3VyY2UuanMiXSwibmFtZXMiOlsiVGFsa1Jlc291cmNlIiwiY3JlZHMiLCJvcHRpb25zIiwiY2FsbElkIiwicGFyYW1zIiwiY2FsbGJhY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RoaXMub3B0aW9ucy5odHRwQ2xpZW50LnJlcXVlc3QoY29uZmlnLCBjYWxsYmFjayk7XG4gIH1cbiAgXG4gIC8qKlxuICAgKiBTdG9wIGEgdGFsayBpbiBhIGNhbGwuXG4gICAqXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBjYWxsSWQgLSBUaGUgdW5pcXVlIGlkZW50aWZpZXIgZm9yIHRoZSBjYWxsIGZvciB0aGUgdGFsayB0byBiZSBzdG9wcGVkIGluLlxuICAgKiBAcGFyYW0ge2Z1bmN0aW9ufSBjYWxsYmFjayAtIGZ1bmN0aW9uIHRvIGJlIGNhbGxlZCB3aGVuIHRoZSByZXF1ZXN0IGNvbXBsZXRlcy5cbiAgICovXG4gIHN0b3AoY2FsbElkLCBjYWxsYmFjaykge1xuICAgIHZhciBjb25maWcgPSB7XG4gICAgICBob3N0OidhcGkubmV4bW8uY29tJyxcbiAgICAgIHBhdGg6IFRhbGtSZXNvdXJjZS5QQVRILnJlcGxhY2UoJ3tjYWxsX3V1aWR9JywgY2FsbElkKSxcbiAgICAgIG1ldGhvZDogJ0RFTEVURScsXG4gICAgICBoZWFkZXJzOiB7XG4gICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgICdBdXRob3JpemF0aW9uJzogYEJlYXJlciAke3RoaXMuY3JlZHMuZ2VuZXJhdGVKd3QoKX1gXG4gICAgICB9XG4gICAgfTtcbiAgICB0aGlzLm9wdGlvbnMuaHR0cENsaWVudC5yZXF1ZXN0KGNvbmZpZywgY2FsbGJhY2spO1xuICB9XG4gIFxufVxuXG5leHBvcnQgZGVmYXVsdCBUYWxrUmVzb3VyY2U7XG4iXX0= |
@@ -25,3 +25,2 @@ "use strict"; | ||
*/ | ||
function Verify(credentials) { | ||
@@ -88,2 +87,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2Z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b3J0IGRlZmF1bHQgVmVyaWZ5O1xuIl19 |
@@ -24,3 +24,2 @@ "use strict"; | ||
*/ | ||
function Voice(credentials) { | ||
@@ -87,2 +86,2 @@ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
module.exports = exports["default"]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Wb2ljZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7SUFFTSxLOzs7Ozs7OztBQU9KLGlCQUFZLFdBQVosRUFBdUM7QUFBQSxRQUFkLE9BQWMsdUVBQUosRUFBSTs7QUFBQTs7QUFDckMsU0FBSyxLQUFMLEdBQWEsV0FBYjtBQUNBLFNBQUssT0FBTCxHQUFlLE9BQWY7OztBQUdBLFNBQUssTUFBTCxHQUFjLEtBQUssT0FBTCxDQUFhLGFBQWIsbUJBQWQ7O0FBRUEsU0FBSyxNQUFMLENBQVksVUFBWixDQUF1QixLQUFLLEtBQUwsQ0FBVyxNQUFsQyxFQUEwQyxLQUFLLEtBQUwsQ0FBVyxTQUFyRCxFQUFnRSxLQUFLLE9BQXJFO0FBQ0Q7Ozs7Ozs7OztxQ0FLZ0I7QUFDZixXQUFLLE1BQUwsQ0FBWSxjQUFaLENBQTJCLEtBQTNCLENBQWlDLEtBQUssTUFBdEMsRUFBOEMsU0FBOUM7QUFDRDs7Ozs7Ozs7K0NBSzBCO0FBQ3pCLFdBQUssTUFBTCxDQUFZLHdCQUFaLENBQXFDLEtBQXJDLENBQTJDLEtBQUssTUFBaEQsRUFBd0QsU0FBeEQ7QUFDRDs7Ozs7Ozs7K0NBSzBCO0FBQ3pCLFdBQUssTUFBTCxDQUFZLHdCQUFaLENBQXFDLEtBQXJDLENBQTJDLEtBQUssTUFBaEQsRUFBd0QsU0FBeEQ7QUFDRDs7Ozs7Ozs7MkJBS007QUFDTCx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HJvbXB0V2l0aENvbmZpcm0oKSB7XG4gICAgdGhpcy5fbmV4bW8uc2VuZFRUU1Byb21wdFdpdGhDb25maXJtLmFwcGx5KHRoaXMuX25leG1vLCBhcmd1bWVudHMpO1xuICB9XG4gIFxuICAvKipcbiAgICogVE9ETzogZG9jdW1lbnRcbiAgICovXG4gIGNhbGwoKSB7XG4gICAgdGhpcy5fbmV4bW8uY2FsbC5hcHBseSh0aGlzLl9uZXhtbywgYXJndW1lbnRzKTtcbiAgfVxuICAgIFxufVxuXG5leHBvcnQgZGVmYXVsdCBWb2ljZTtcbiJdfQ== |
{ | ||
"name": "nexmo", | ||
"author": "nexmo", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"main": "lib/Nexmo", | ||
@@ -47,6 +47,6 @@ "keywords": [ | ||
"dotenv": "^2.0.0", | ||
"eslint": "^2", | ||
"eslint": "^3.18", | ||
"expect.js": "^0.3.1", | ||
"express": "^4.14.0", | ||
"mocha": "^2.4.5", | ||
"mocha": "^3.2.0", | ||
"ngrok": "^2.2.2", | ||
@@ -53,0 +53,0 @@ "nodemon": "^1.10.2", |
@@ -260,4 +260,6 @@ import sinon from 'sinon'; | ||
var callback = sinon.spy(); | ||
client.__parseReponse(504, 'application/json', '', 'GET', callback); | ||
expect(callback).was.calledWith({ message: 'Server Error: 504' }, null); | ||
const headers = {'content-type' : 'application/json'}; | ||
const response = {statusCode: 504, headers: headers}; | ||
client.__parseResponse(response, [''], 'GET', callback); | ||
expect(callback).was.calledWith({ message: 'Server Error', statusCode: 504, headers: headers }, null); | ||
}); | ||
@@ -267,4 +269,6 @@ | ||
var callback = sinon.spy(); | ||
client.__parseReponse(404, 'application/json', '{ "error" : "error" }', 'GET', callback); | ||
expect(callback).was.calledWith({ 'error' : 'error' }, null); | ||
const headers = {'content-type' : 'application/json'}; | ||
const response = {statusCode: 404, headers: headers}; | ||
client.__parseResponse(response, ['{ "error" : "error" }'], 'GET', callback); | ||
expect(callback).was.calledWith({ statusCode: 404, body: { 'error' : 'error' }, headers: headers}, null); | ||
}); | ||
@@ -274,3 +278,4 @@ | ||
var callback = sinon.spy(); | ||
client.__parseReponse(201, 'application/json', '{ "data" : "data" }', 'GET', callback); | ||
const response = {statusCode: 201, headers: {'content-type' : 'application/json'}}; | ||
client.__parseResponse(response, ['{ "data" : "data" }'], 'GET', callback); | ||
expect(callback).was.calledWith(null, { 'data' : 'data' }); | ||
@@ -281,11 +286,16 @@ }); | ||
var callback = sinon.spy(); | ||
client.__parseReponse(201, 'application/json', '', 'DELETE', callback); | ||
expect(callback).was.calledWith(null, ''); | ||
const response = {statusCode: 201, headers: {'content-type' : 'application/json'}}; | ||
client.__parseResponse(response, [''], 'DELETE', callback); | ||
expect(callback).was.calledWith(null, ['']); | ||
}); | ||
it ('should catch invalid json', function() { | ||
it ('should catch invalid json and expose the data in the error', function() { | ||
var callback = sinon.spy(); | ||
client.__parseReponse(201, 'application/json', 'not_json', 'GET', callback); | ||
const response = {statusCode: 201, headers: {'content-type' : 'application/json'}}; | ||
const data = 'not_json'; | ||
client.__parseResponse(response, [data], 'GET', callback); | ||
expect(callback).was.calledWith(sinon.match({ | ||
message: 'The API response could not be parsed.' | ||
message: 'The API response could not be parsed.', | ||
body: data, | ||
statusCode: 201 | ||
}), null); | ||
@@ -297,5 +307,7 @@ }); | ||
var data = new Buffer('data'); | ||
client.__parseReponse(200, 'application/octet-stream', data, 'GET', callback); | ||
const response = {statusCode: 200, headers: {'content-type' : 'application/octet-stream'}}; | ||
client.__parseResponse(response, data, 'GET', callback); | ||
expect(callback).was.calledWith(null, data); | ||
}); | ||
}); |
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
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
317971
64
3816