@appsignal/javascript
Advanced tools
Comparing version 1.3.6 to 1.3.7
# Changelog | ||
## 1.3.6 | ||
- Add even more detail to default error message in setError if no `error.message` exists | ||
- Dependency bumps | ||
## 1.3.5 | ||
@@ -4,0 +8,0 @@ - Dependency bumps |
import { Span } from "./span"; | ||
import { PushApiOptions } from "./types/options"; | ||
import { PushApiOptions } from "./interfaces/options"; | ||
export declare class PushApi { | ||
@@ -4,0 +4,0 @@ private _uri; |
@@ -1,6 +0,5 @@ | ||
import { Breadcrumb } from "@appsignal/types"; | ||
import { Breadcrumb, JSClient, Hook } from "@appsignal/types"; | ||
import { Span } from "./span"; | ||
import { Hook } from "./interfaces/hook"; | ||
import { AppsignalOptions } from "./types/options"; | ||
export default class Appsignal { | ||
import { AppsignalOptions } from "./interfaces/options"; | ||
export default class Appsignal implements JSClient { | ||
VERSION: string; | ||
@@ -20,4 +19,4 @@ ignored: RegExp[]; | ||
use(plugin: Function): void; | ||
createSpan(fn?: Function): Span; | ||
wrap(fn: Function, tags?: {}, namespace?: string): Promise<any>; | ||
createSpan(fn?: (span: Span) => void): Span; | ||
wrap<T>(fn: () => T, tags?: {}, namespace?: string): Promise<T>; | ||
addDecorator<T extends Hook>(decorator: T): void; | ||
@@ -24,0 +23,0 @@ addOverride<T extends Hook>(override: T): void; |
@@ -14,2 +14,4 @@ "use strict"; | ||
this.VERSION = version_1.VERSION; | ||
this.ignored = []; | ||
this._breadcrumbs = []; | ||
this._hooks = { | ||
@@ -21,3 +23,3 @@ decorators: Array(), | ||
this._queue = new queue_1.Queue([]); | ||
var _a = options.key, key = _a === void 0 ? "" : _a, uri = options.uri, revision = options.revision; | ||
var _a = options.key, key = _a === void 0 ? "" : _a, uri = options.uri, revision = options.revision, ignoreErrors = options.ignoreErrors; | ||
if (revision && typeof revision !== "string") { | ||
@@ -34,4 +36,5 @@ options.revision = String(revision); | ||
}); | ||
this.ignored = options.ignoreErrors || []; | ||
this._breadcrumbs = []; | ||
if (ignoreErrors && Array.isArray(ignoreErrors)) { | ||
this.ignored = ignoreErrors; | ||
} | ||
this._dispatcher = new dispatcher_1.Dispatcher(this._queue, this._api); | ||
@@ -38,0 +41,0 @@ this._options = options; |
import { Serializable } from "@appsignal/core"; | ||
import { SpanData, Breadcrumb, HashMap, HashMapValue } from "@appsignal/types"; | ||
export declare class Span extends Serializable<SpanData> { | ||
constructor(span?: Partial<SpanData>); | ||
import { JSSpanData, Breadcrumb, HashMap, HashMapValue } from "@appsignal/types"; | ||
export declare class Span extends Serializable<JSSpanData> { | ||
constructor(span?: Partial<JSSpanData>); | ||
setAction(name: string): this; | ||
@@ -6,0 +6,0 @@ setNamespace(name: string): this; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.6"; | ||
export declare const VERSION = "1.3.7"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = "1.3.6"; | ||
exports.VERSION = "1.3.7"; | ||
//# sourceMappingURL=version.js.map |
import { Span } from "./span"; | ||
import { PushApiOptions } from "./types/options"; | ||
import { PushApiOptions } from "./interfaces/options"; | ||
export declare class PushApi { | ||
@@ -4,0 +4,0 @@ private _uri; |
@@ -1,6 +0,5 @@ | ||
import { Breadcrumb } from "@appsignal/types"; | ||
import { Breadcrumb, JSClient, Hook } from "@appsignal/types"; | ||
import { Span } from "./span"; | ||
import { Hook } from "./interfaces/hook"; | ||
import { AppsignalOptions } from "./types/options"; | ||
export default class Appsignal { | ||
import { AppsignalOptions } from "./interfaces/options"; | ||
export default class Appsignal implements JSClient { | ||
VERSION: string; | ||
@@ -20,4 +19,4 @@ ignored: RegExp[]; | ||
use(plugin: Function): void; | ||
createSpan(fn?: Function): Span; | ||
wrap(fn: Function, tags?: {}, namespace?: string): Promise<any>; | ||
createSpan(fn?: (span: Span) => void): Span; | ||
wrap<T>(fn: () => T, tags?: {}, namespace?: string): Promise<T>; | ||
addDecorator<T extends Hook>(decorator: T): void; | ||
@@ -24,0 +23,0 @@ addOverride<T extends Hook>(override: T): void; |
@@ -12,2 +12,4 @@ import { __assign, __awaiter, __generator, __read, __spread } from "tslib"; | ||
this.VERSION = VERSION; | ||
this.ignored = []; | ||
this._breadcrumbs = []; | ||
this._hooks = { | ||
@@ -19,3 +21,3 @@ decorators: Array(), | ||
this._queue = new Queue([]); | ||
var _a = options.key, key = _a === void 0 ? "" : _a, uri = options.uri, revision = options.revision; | ||
var _a = options.key, key = _a === void 0 ? "" : _a, uri = options.uri, revision = options.revision, ignoreErrors = options.ignoreErrors; | ||
if (revision && typeof revision !== "string") { | ||
@@ -32,4 +34,5 @@ options.revision = String(revision); | ||
}); | ||
this.ignored = options.ignoreErrors || []; | ||
this._breadcrumbs = []; | ||
if (ignoreErrors && Array.isArray(ignoreErrors)) { | ||
this.ignored = ignoreErrors; | ||
} | ||
this._dispatcher = new Dispatcher(this._queue, this._api); | ||
@@ -36,0 +39,0 @@ this._options = options; |
import { Serializable } from "@appsignal/core"; | ||
import { SpanData, Breadcrumb, HashMap, HashMapValue } from "@appsignal/types"; | ||
export declare class Span extends Serializable<SpanData> { | ||
constructor(span?: Partial<SpanData>); | ||
import { JSSpanData, Breadcrumb, HashMap, HashMapValue } from "@appsignal/types"; | ||
export declare class Span extends Serializable<JSSpanData> { | ||
constructor(span?: Partial<JSSpanData>); | ||
setAction(name: string): this; | ||
@@ -6,0 +6,0 @@ setNamespace(name: string): this; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.6"; | ||
export declare const VERSION = "1.3.7"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export var VERSION = "1.3.6"; | ||
export var VERSION = "1.3.7"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@appsignal/javascript", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"main": "dist/cjs/index.js", | ||
@@ -27,5 +27,5 @@ "module": "dist/esm/index.js", | ||
"dependencies": { | ||
"@appsignal/core": "^1.1.1", | ||
"@appsignal/types": "^1.0.0", | ||
"tslib": "^2.0.1" | ||
"@appsignal/core": "^1.1.2", | ||
"@appsignal/types": "^2.0.0", | ||
"tslib": "^2.0.3" | ||
}, | ||
@@ -35,3 +35,3 @@ "browser": { | ||
}, | ||
"gitHead": "f2c246685d6f01420d6d10a40a31322cdc08f293" | ||
"gitHead": "f6c4f76fa18eae685f8f5690060793627b8a319e" | ||
} |
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
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
95941
107
1385
+ Added@appsignal/types@2.1.7(transitive)
- Removed@appsignal/types@1.0.0(transitive)
Updated@appsignal/core@^1.1.2
Updated@appsignal/types@^2.0.0
Updatedtslib@^2.0.3