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

@types/newrelic

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/newrelic - npm Package Compare versions

Comparing version 7.0.4 to 9.4.0

44

newrelic/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for newrelic 7.0
// Type definitions for newrelic 9.4
// Project: https://github.com/newrelic/node-newrelic

@@ -110,2 +110,22 @@ // Definitions by: Matt R. Wilson <https://github.com/mastermatt>

/**
* Sends an application log message to New Relic. The agent already
* automatically does this for some instrumented logging libraries,
* but in case you are using another logging method that is not
* already instrumented by the agent, you can use this function
* instead.
*
* If application log forwarding is disabled in the agent
* configuration, this function does nothing.
*
* An example of using this function is
*
* newrelic.recordLogEvent({
* message: 'cannot find file',
* level: 'ERROR',
* error: new SystemError('missing.txt')
* })
*/
export function recordLogEvent(logEvent: LogEvent): void;
/**
* If the URL for a transaction matches the provided pattern, name the

@@ -475,2 +495,24 @@ * transaction with the provided name.

export interface LogEvent {
/**
* The log message
*/
message: string;
/**
* The log level severity. If this key is missing, it will default to "UNKNOWN"
*/
level?: string | undefined;
/**
* ECMAScript epoch number denoting the time that this log message was produced. If this key is missing, it will default to the output of `Date.now()`
*/
timestamp?: number | undefined;
/**
* Error associated to this log event. Ignored if missing.
*/
error?: Error | undefined;
}
export interface TraceMetadata {

@@ -477,0 +519,0 @@ /**

6

newrelic/package.json
{
"name": "@types/newrelic",
"version": "7.0.4",
"version": "9.4.0",
"description": "TypeScript definitions for newrelic",

@@ -58,4 +58,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/newrelic",

"dependencies": {},
"typesPublisherContentHash": "18b231c35a2a70b4a4cd7bf127c13e2907cb9b18e64b79a70f51faed1a11af04",
"typeScriptVersion": "4.1"
"typesPublisherContentHash": "860b3ab874f45e95383cbd26687a923db9f79285329504c17133b330e2b84488",
"typeScriptVersion": "4.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 04 Oct 2022 15:02:51 GMT
* Last updated: Thu, 17 Nov 2022 22:03:07 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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