@appsignal/core
Advanced tools
Comparing version 1.1.17 to 1.1.18
@@ -1,3 +0,9 @@ | ||
# AppSignal for Angular changelog | ||
# AppSignal Core changelog | ||
## 1.1.18 | ||
### Fixed | ||
- [750d9fa](https://github.com/appsignal/appsignal-javascript/commit/750d9fa118f8a166156fd16e1ff99bcc3d93977d) patch - Fix `isError` so that it does not throw an error when the given error is not an object. | ||
## 1.1.17 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,4 @@ "use strict"; | ||
function isError(error) { | ||
return (typeof error.message !== "undefined" && | ||
return (typeof error === "object" && | ||
typeof error.message !== "undefined" && | ||
(typeof error.stacktrace !== "undefined" || | ||
@@ -8,0 +9,0 @@ typeof error["opera#sourceloc"] !== "undefined" || |
@@ -21,3 +21,3 @@ "use strict"; | ||
} | ||
return a(b.apply(void 0, tslib_1.__spread(args))); | ||
return a(b.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(args), false))); | ||
}; }); | ||
@@ -24,0 +24,0 @@ } |
@@ -12,3 +12,3 @@ "use strict"; | ||
switch (_c.label) { | ||
case 0: return [4, isomorphic_unfetch_1.default(endpoint + "/1/auth?api_key=" + apiKey)]; | ||
case 0: return [4, (0, isomorphic_unfetch_1.default)("".concat(endpoint, "/1/auth?api_key=").concat(apiKey))]; | ||
case 1: | ||
@@ -22,3 +22,3 @@ status = (_c.sent()).status; | ||
default: | ||
throw new Error("Invalid " + status + " response from server when authenticating"); | ||
throw new Error("Invalid ".concat(status, " response from server when authenticating")); | ||
} | ||
@@ -25,0 +25,0 @@ return [2]; |
@@ -6,3 +6,3 @@ "use strict"; | ||
return Object.keys(object) | ||
.map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(object[key]); }) | ||
.map(function (key) { return "".concat(encodeURIComponent(key), "=").concat(encodeURIComponent(object[key])); }) | ||
.join("&"); | ||
@@ -9,0 +9,0 @@ } |
export function isError(error) { | ||
return (typeof error.message !== "undefined" && | ||
return (typeof error === "object" && | ||
typeof error.message !== "undefined" && | ||
(typeof error.stacktrace !== "undefined" || | ||
@@ -4,0 +5,0 @@ typeof error["opera#sourceloc"] !== "undefined" || |
@@ -1,2 +0,2 @@ | ||
import { __read, __spread } from "tslib"; | ||
import { __read, __spreadArray } from "tslib"; | ||
export function compose() { | ||
@@ -18,5 +18,5 @@ var funcs = []; | ||
} | ||
return a(b.apply(void 0, __spread(args))); | ||
return a(b.apply(void 0, __spreadArray([], __read(args), false))); | ||
}; }); | ||
} | ||
//# sourceMappingURL=functional.js.map |
@@ -9,3 +9,3 @@ import { __awaiter, __generator } from "tslib"; | ||
switch (_c.label) { | ||
case 0: return [4, fetch(endpoint + "/1/auth?api_key=" + apiKey)]; | ||
case 0: return [4, fetch("".concat(endpoint, "/1/auth?api_key=").concat(apiKey))]; | ||
case 1: | ||
@@ -19,3 +19,3 @@ status = (_c.sent()).status; | ||
default: | ||
throw new Error("Invalid " + status + " response from server when authenticating"); | ||
throw new Error("Invalid ".concat(status, " response from server when authenticating")); | ||
} | ||
@@ -22,0 +22,0 @@ return [2]; |
export function urlEncode(object) { | ||
return Object.keys(object) | ||
.map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(object[key]); }) | ||
.map(function (key) { return "".concat(encodeURIComponent(key), "=").concat(encodeURIComponent(object[key])); }) | ||
.join("&"); | ||
} | ||
//# sourceMappingURL=url.js.map |
{ | ||
"name": "@appsignal/core", | ||
"version": "1.1.17", | ||
"version": "1.1.18", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52420
83
413