@airbrake/node
Advanced tools
Comparing version 1.4.1 to 1.4.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Notifier = void 0; | ||
var notifier_1 = require("./notifier"); | ||
Object.defineProperty(exports, "Notifier", { enumerable: true, get: function () { return notifier_1.Notifier; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -5,4 +5,4 @@ import { BaseNotifier, INotice, IOptions } from '@airbrake/browser'; | ||
_inFlight: number; | ||
_scopeManager: ScopeManager; | ||
_mainScope: Scope; | ||
_scopeManager?: ScopeManager; | ||
_mainScope?: Scope; | ||
constructor(opt: IOptions); | ||
@@ -9,0 +9,0 @@ scope(): Scope; |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -68,4 +68,2 @@ }; | ||
_this._inFlight = 0; | ||
_this._scopeManager = new scope_1.ScopeManager(); | ||
_this._mainScope = new scope_1.Scope(); | ||
process.on('beforeExit', function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -109,9 +107,13 @@ return __generator(this, function (_a) { | ||
_this._instrument(); | ||
_this._scopeManager = new scope_1.ScopeManager(); | ||
} | ||
_this._mainScope = new scope_1.Scope(); | ||
return _this; | ||
} | ||
Notifier.prototype.scope = function () { | ||
var scope = this._scopeManager.active(); | ||
if (scope) { | ||
return scope; | ||
if (this._scopeManager) { | ||
var scope = this._scopeManager.active(); | ||
if (scope) { | ||
return scope; | ||
} | ||
} | ||
@@ -118,0 +120,0 @@ return this._mainScope; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
export declare const NOTIFIER_NAME = "airbrake-js/node"; | ||
export declare const NOTIFIER_VERSION = "1.4.1"; | ||
export declare const NOTIFIER_VERSION = "1.4.2"; | ||
export declare const NOTIFIER_URL = "https://github.com/airbrake/airbrake-js/tree/master/packages/node"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,4 +5,4 @@ "use strict"; | ||
exports.NOTIFIER_NAME = 'airbrake-js/node'; | ||
exports.NOTIFIER_VERSION = '1.4.1'; | ||
exports.NOTIFIER_VERSION = '1.4.2'; | ||
exports.NOTIFIER_URL = 'https://github.com/airbrake/airbrake-js/tree/master/packages/node'; | ||
//# sourceMappingURL=version.js.map |
@@ -5,4 +5,4 @@ import { BaseNotifier, INotice, IOptions } from '@airbrake/browser'; | ||
_inFlight: number; | ||
_scopeManager: ScopeManager; | ||
_mainScope: Scope; | ||
_scopeManager?: ScopeManager; | ||
_mainScope?: Scope; | ||
constructor(opt: IOptions); | ||
@@ -9,0 +9,0 @@ scope(): Scope; |
@@ -5,3 +5,3 @@ var __extends = (this && this.__extends) || (function () { | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -65,4 +65,2 @@ }; | ||
_this._inFlight = 0; | ||
_this._scopeManager = new ScopeManager(); | ||
_this._mainScope = new Scope(); | ||
process.on('beforeExit', function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -106,9 +104,13 @@ return __generator(this, function (_a) { | ||
_this._instrument(); | ||
_this._scopeManager = new ScopeManager(); | ||
} | ||
_this._mainScope = new Scope(); | ||
return _this; | ||
} | ||
Notifier.prototype.scope = function () { | ||
var scope = this._scopeManager.active(); | ||
if (scope) { | ||
return scope; | ||
if (this._scopeManager) { | ||
var scope = this._scopeManager.active(); | ||
if (scope) { | ||
return scope; | ||
} | ||
} | ||
@@ -115,0 +117,0 @@ return this._mainScope; |
export declare const NOTIFIER_NAME = "airbrake-js/node"; | ||
export declare const NOTIFIER_VERSION = "1.4.1"; | ||
export declare const NOTIFIER_VERSION = "1.4.2"; | ||
export declare const NOTIFIER_URL = "https://github.com/airbrake/airbrake-js/tree/master/packages/node"; | ||
//# sourceMappingURL=version.d.ts.map |
export var NOTIFIER_NAME = 'airbrake-js/node'; | ||
export var NOTIFIER_VERSION = '1.4.1'; | ||
export var NOTIFIER_VERSION = '1.4.2'; | ||
export var NOTIFIER_URL = 'https://github.com/airbrake/airbrake-js/tree/master/packages/node'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@airbrake/node", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Official Airbrake notifier for Node.js", | ||
@@ -20,3 +20,3 @@ "author": "Airbrake", | ||
"dependencies": { | ||
"@airbrake/browser": "^1.4.1", | ||
"@airbrake/browser": "^1.4.2", | ||
"cross-fetch": "^3.0.4", | ||
@@ -36,3 +36,3 @@ "error-stack-parser": "^2.0.4", | ||
"tslint-plugin-prettier": "^2.3.0", | ||
"typescript": "^3.9.7" | ||
"typescript": "^4.0.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "main": "dist/index.js", |
@@ -0,1 +1,5 @@ | ||
<p align="center"> | ||
<img src="https://airbrake-github-assets.s3.amazonaws.com/brand/airbrake-full-logo.png" width="200"> | ||
</p> | ||
# Official Airbrake Notifier for Node.js | ||
@@ -11,4 +15,2 @@ | ||
![Airbrake Arthur Node](https://camo.githubusercontent.com/9b7c0aad92f9dd2eb03b4dafd2e53784a2199216/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6169726272616b652d6769746875622d6173736574732f6e6f64652d6169726272616b652f6172746875722d6e6f64652e6a706567) | ||
## Installation | ||
@@ -30,5 +32,9 @@ | ||
First, initialize the notifier with the project ID and API key taken from | ||
[Airbrake](https://airbrake.io): | ||
First, initialize the notifier with the project ID and project key taken from | ||
[Airbrake](https://airbrake.io). To find your `project_id` and `project_key` | ||
navigate to your project's _Settings_ and copy the values from the right | ||
sidebar: | ||
![][project-idkey] | ||
```js | ||
@@ -226,1 +232,3 @@ const { Notifier } = require('@airbrake/node'); | ||
``` | ||
[project-idkey]: https://s3.amazonaws.com/airbrake-github-assets/airbrake-js/project-id-key.png |
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
105262
1356
232
+ Added@types/node@22.9.2(transitive)
- Removed@types/node@22.9.3(transitive)
Updated@airbrake/browser@^1.4.2