@appsignal/javascript
Advanced tools
Comparing version 1.3.31 to 1.4.0
# AppSignal for JavaScript changelog | ||
## 1.4.0 | ||
_Published on 2024-10-01._ | ||
### Changed | ||
- Remove error throw in development mode when sending an error with `send/sendError`. (minor [9c778f9](https://github.com/appsignal/appsignal-javascript/commit/9c778f96edbfa8156a2f8fef8fc71f08f54d7eaa)) | ||
- Update @appsignal/core dependency to 1.1.23. (patch) | ||
## 1.3.31 | ||
@@ -4,0 +13,0 @@ |
@@ -101,5 +101,2 @@ "use strict"; | ||
console.warn("[APPSIGNAL]: Span not sent because we're in development mode:", span); | ||
if (data instanceof Error) { | ||
throw data; | ||
} | ||
} | ||
@@ -142,3 +139,3 @@ else { | ||
case 0: | ||
_a.trys.push([0, 2, , 4]); | ||
_a.trys.push([0, 2, , 5]); | ||
return [4, fn()]; | ||
@@ -148,7 +145,9 @@ case 1: return [2, _a.sent()]; | ||
e_1 = _a.sent(); | ||
if (!(e_1 instanceof Error || e_1 instanceof ErrorEvent)) return [3, 4]; | ||
return [4, this.sendError(e_1, tagsOrFn, namespace)]; | ||
case 3: | ||
_a.sent(); | ||
return [2, Promise.reject(e_1)]; | ||
case 4: return [2]; | ||
_a.label = 4; | ||
case 4: return [2, Promise.reject(e_1)]; | ||
case 5: return [2]; | ||
} | ||
@@ -155,0 +154,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.30"; | ||
export declare const VERSION = "1.3.31"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = "1.3.30"; | ||
exports.VERSION = "1.3.31"; | ||
//# sourceMappingURL=version.js.map |
@@ -99,5 +99,2 @@ import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib"; | ||
console.warn("[APPSIGNAL]: Span not sent because we're in development mode:", span); | ||
if (data instanceof Error) { | ||
throw data; | ||
} | ||
} | ||
@@ -140,3 +137,3 @@ else { | ||
case 0: | ||
_a.trys.push([0, 2, , 4]); | ||
_a.trys.push([0, 2, , 5]); | ||
return [4, fn()]; | ||
@@ -146,7 +143,9 @@ case 1: return [2, _a.sent()]; | ||
e_1 = _a.sent(); | ||
if (!(e_1 instanceof Error || e_1 instanceof ErrorEvent)) return [3, 4]; | ||
return [4, this.sendError(e_1, tagsOrFn, namespace)]; | ||
case 3: | ||
_a.sent(); | ||
return [2, Promise.reject(e_1)]; | ||
case 4: return [2]; | ||
_a.label = 4; | ||
case 4: return [2, Promise.reject(e_1)]; | ||
case 5: return [2]; | ||
} | ||
@@ -153,0 +152,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.30"; | ||
export declare const VERSION = "1.3.31"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export var VERSION = "1.3.30"; | ||
export var VERSION = "1.3.31"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@appsignal/javascript", | ||
"version": "1.3.31", | ||
"version": "1.4.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -31,3 +31,3 @@ "module": "dist/esm/index.js", | ||
"dependencies": { | ||
"@appsignal/core": "=1.1.22", | ||
"@appsignal/core": "=1.1.23", | ||
"@appsignal/types": "=3.0.1", | ||
@@ -34,0 +34,0 @@ "tslib": "^2.3.0" |
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
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
179089
110
1463
Updated@appsignal/core@=1.1.23