angular2-cool-http
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "angular2-cool-http", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Cool features over angular Http Client.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,2 +16,3 @@ "use strict"; | ||
function HttpError(method, url, status, statusText, body) { | ||
var _newTarget = this.constructor; | ||
var _this = _super.call(this, "Failed to call api " + method + " " + url + ", status code: " + status) || this; | ||
@@ -24,3 +25,3 @@ _this.method = method; | ||
// Set the prototype explicitly. | ||
Object.setPrototypeOf(_this, HttpError.prototype); | ||
Object.setPrototypeOf(_this, _newTarget.prototype); | ||
return _this; | ||
@@ -27,0 +28,0 @@ } |
Sorry, the diff of this file is not supported yet
71131
620