winston-newrelic-logs-transport
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -16,3 +16,3 @@ "use strict"; | ||
var _a, _b, _c; | ||
super(); | ||
super(options); | ||
this.logs = []; | ||
@@ -19,0 +19,0 @@ this.axiosClient = axios_1.default.create(Object.assign(Object.assign({ timeout: 5000 }, options.axiosOptions), { baseURL: options.apiUrl, headers: Object.assign(Object.assign({}, (_a = options.axiosOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'Api-Key': options.licenseKey, 'Content-Type': 'application/json' }) })); |
@@ -6,3 +6,3 @@ import axios, { AxiosInstance, AxiosRequestConfig } from "axios"; | ||
export interface WinstonNewrelicLogsTransportOptions { | ||
export interface WinstonNewrelicLogsTransportOptions extends TransportStream.TransportStreamOptions { | ||
/** | ||
@@ -58,3 +58,3 @@ * Your NewRelic key. | ||
constructor(options: WinstonNewrelicLogsTransportOptions) { | ||
super(); | ||
super(options); | ||
@@ -61,0 +61,0 @@ this.logs = []; |
{ | ||
"name": "winston-newrelic-logs-transport", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "NewRelic Logs API Transport for Winston", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
46189
23
902
2