backtrace-node
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "backtrace-node", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Backtrace error reporting tool", | ||
"main": "./lib/source/index.js", | ||
"types": "./lib/source/index.d.ts", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "/source", |
@@ -168,3 +168,3 @@ import { ClientRateLimit } from './clientRateLimit'; | ||
if (!!this.options.disableGlobalHandler) { | ||
if (!this.options.disableGlobalHandler) { | ||
this.registerGlobalHandler(!!this.options.allowMultipleUncaughtExceptionListeners); | ||
@@ -171,0 +171,0 @@ } |
@@ -0,0 +0,0 @@ import { BacktraceReport } from './model/backtraceReport'; |
@@ -28,2 +28,5 @@ import { BacktraceClient } from './backtraceClient'; | ||
export function use(client: BacktraceClient) { | ||
backtraceClient = client; | ||
} | ||
/** | ||
@@ -30,0 +33,0 @@ * Send report asynchronously to Backtrace |
export class BacktraceClientOptions { | ||
public timeout: number = 1000; | ||
public timeout: number = 15000; | ||
public endpoint!: string; | ||
@@ -4,0 +4,0 @@ public token!: string; |
@@ -0,1 +1,3 @@ | ||
// tslint:disable-next-line: no-var-requires | ||
const packageJson = require('./../../package.json'); | ||
import { pseudoRandomBytes } from 'crypto'; | ||
@@ -6,3 +8,2 @@ import { machineIdSync } from 'node-machine-id'; | ||
import { readProcessStatus } from '../helpers/processHelper'; | ||
import packageJson from './../../package.json'; | ||
import { IBacktraceData } from './backtraceData'; | ||
@@ -9,0 +10,0 @@ import { BacktraceStackTrace } from './backtraceStackTrace'; |
@@ -0,0 +0,0 @@ import { BacktraceReport } from './backtraceReport'; |
@@ -138,3 +138,3 @@ import * as fs from 'fs'; | ||
const parameter = { | ||
startLine: Math.max(minLine - 1 - this.contextLineCount, 0), | ||
startLine: Math.max(minLine - this.contextLineCount, 0), | ||
endLine: maxLine + this.contextLineCount, | ||
@@ -141,0 +141,0 @@ filePath: key, |
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
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
143277
2705
1