backtrace-js
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
# Backtrace JS Release Notes | ||
## Version 1.0.0 04.06.2019 | ||
## Version 1.0.0 | ||
@@ -10,2 +10,3 @@ * `Backtrace-js` now supports TypeScript. We care about your applications that using Backtrace-js library so we prepared compatible API for you. If you still want to use modern API please use `BacktraceClient` instead. | ||
* Modern Promise API is here! `Backtrace-js` allows you to use `async/await` syntax to send reports to Backtrace! | ||
* `reportSync` and `reportAsync` methods now returns `BacktraceResult` object that allows you to understand what happend with report. If you have connection/configuration problems `BacktraceResult` allows you to learn what happend inside library! | ||
* `reportSync` and `reportAsync` methods now returns `BacktraceResult` object that allows you to understand what happend with report. If you have connection/configuration problems `BacktraceResult` allows you to learn what happend inside library! | ||
* Breadcrumsb support API. |
import { BacktraceReport } from './model/backtraceReport'; | ||
import { BacktraceResult } from './model/backtraceResult'; | ||
export declare class BacktraceApi { | ||
private axiosInstance; | ||
constructor(backtraceUri: string, timeout: number, ignoreSslCert: boolean); | ||
private readonly _backtraceUri; | ||
private readonly _timeout; | ||
constructor(_backtraceUri: string, _timeout: number); | ||
send(report: BacktraceReport): Promise<BacktraceResult>; | ||
} |
@@ -9,3 +9,2 @@ import { BacktraceReport } from '../model/backtraceReport'; | ||
}; | ||
ignoreSslCert: boolean; | ||
disableGlobalHandler: boolean; | ||
@@ -12,0 +11,0 @@ handlePromises: boolean; |
@@ -1,2 +0,1 @@ | ||
import FormData from 'form-data'; | ||
import { IBacktraceData } from '../model/backtraceData'; | ||
@@ -17,4 +16,4 @@ import { BacktraceStackTrace } from '../model/backtraceStackTrace'; | ||
readonly langVersion: string; | ||
readonly agent: any; | ||
readonly agentVersion: any; | ||
readonly agent = "backtrace-js"; | ||
readonly agentVersion: string; | ||
readonly mainThread = "main"; | ||
@@ -51,4 +50,2 @@ sourceCode: { | ||
private annotations; | ||
private tabWidth; | ||
private contextLineCount; | ||
/** | ||
@@ -91,7 +88,9 @@ * Create new BacktraceReport - report information that will collect information | ||
addAnnotation(key: string, value: object): void; | ||
toJson(): Promise<IBacktraceData>; | ||
toFormData(): Promise<FormData>; | ||
toJson(): IBacktraceData; | ||
toFormData(): FormData; | ||
/** | ||
* @deprecated This method is not supported | ||
*/ | ||
setSourceCodeOptions(tabWidth: number, contextLineCount: number): void; | ||
private collectReportInformation; | ||
private readBuiltInAttributes; | ||
private detectReportType; | ||
@@ -98,0 +97,0 @@ private getGuid; |
@@ -33,4 +33,4 @@ /** | ||
*/ | ||
parseStackFrames(): void; | ||
private parseStackFrames; | ||
} | ||
export {}; |
{ | ||
"name": "backtrace-js", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"description": "Backtrace.io error reporting tool for client-side applications", | ||
@@ -9,3 +9,2 @@ "browser": "./lib/index.js", | ||
"files": [ | ||
"/source", | ||
"/lib" | ||
@@ -34,27 +33,14 @@ ], | ||
"watch": "./node_modules/.bin/webpack --watch", | ||
"build:production": "cross-env NODE_ENV=production ./node_modules/.bin/webpack -p", | ||
"build:production": "NODE_ENV=production ./node_modules/.bin/webpack -p", | ||
"prepublish": "npm run build:production" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.21.1", | ||
"form-data": "^3.0.0", | ||
"json-stringify-safe": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.1.7", | ||
"@types/expect": "^1.20.4", | ||
"@types/json-stringify-safe": "^5.0.0", | ||
"@types/mocha": "^5.2.6", | ||
"@types/nock": "^9.3.1", | ||
"chai": "~4.2.0", | ||
"cross-env": "^5.2.0", | ||
"fork-ts-checker-webpack-plugin": "^1.4.3", | ||
"mocha": "^5.2.0", | ||
"nock": "^10.0.6", | ||
"ts-loader": "^6.0.4", | ||
"ts-node": "^8.0.3", | ||
"tslint": "^5.18.0", | ||
"tslint": "^6.1.2", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^4.1.3", | ||
"webpack": "^4.39.0", | ||
"webpack-bundle-analyzer": "^4.4.0", | ||
"webpack-cli": "^3.3.6", | ||
@@ -61,0 +47,0 @@ "webpack-node-externals": "^1.7.2" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
10
91384
17
467
1
- Removedaxios@^0.21.1
- Removedform-data@^3.0.0
- Removedjson-stringify-safe@^5.0.1
- Removedasynckit@0.4.0(transitive)
- Removedaxios@0.21.4(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@3.0.2(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)