@appsignal/types
Advanced tools
Comparing version 2.1.1 to 2.1.2
# AppSignal types changelog | ||
## 2.1.2 | ||
- [91708f8](https://github.com/appsignal/appsignal-javascript/commit/91708f841c5c6440dbc6878c855f2e3b30e0d2bd) patch - Rename addError helper functions to setError in NodeJS | ||
## 2.1.1 | ||
@@ -4,0 +8,0 @@ |
@@ -23,3 +23,3 @@ import { HashMap, HashMapValue } from "../types/common"; | ||
child(): NodeSpan; | ||
addError(error: Error): this; | ||
setError(error: Error): this; | ||
setSampleData(key: string, data: Array<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined> | HashMap<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined>): this; | ||
@@ -26,0 +26,0 @@ setSQL(value: string): this; |
@@ -10,3 +10,3 @@ /// <reference types="node" /> | ||
rootSpan(): NodeSpan; | ||
addError(error: Error): NodeSpan | undefined; | ||
setError(error: Error): NodeSpan | undefined; | ||
withSpan<T>(span: NodeSpan, fn: (s: NodeSpan) => T): T; | ||
@@ -13,0 +13,0 @@ wrap<T>(fn: Func<T>): Func<T>; |
@@ -23,3 +23,3 @@ import { HashMap, HashMapValue } from "../types/common"; | ||
child(): NodeSpan; | ||
addError(error: Error): this; | ||
setError(error: Error): this; | ||
setSampleData(key: string, data: Array<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined> | HashMap<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined>): this; | ||
@@ -26,0 +26,0 @@ setSQL(value: string): this; |
@@ -10,3 +10,3 @@ /// <reference types="node" /> | ||
rootSpan(): NodeSpan; | ||
addError(error: Error): NodeSpan | undefined; | ||
setError(error: Error): NodeSpan | undefined; | ||
withSpan<T>(span: NodeSpan, fn: (s: NodeSpan) => T): T; | ||
@@ -13,0 +13,0 @@ wrap<T>(fn: Func<T>): Func<T>; |
{ | ||
"name": "@appsignal/types", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
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
32417