Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backtrace-node

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backtrace-node - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

lib/backtraceApi.d.ts

6

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc