@newrelic/test-utilities
Advanced tools
Comparing version 8.3.0 to 8.4.0
@@ -14,2 +14,3 @@ /* | ||
const configurator = require(newRelicLoc + '/lib/config') | ||
const InstrumentationTracker = require(newRelicLoc + '/lib/instrumentation-tracker') | ||
const shimmer = require(newRelicLoc + '/lib/shimmer') | ||
@@ -160,3 +161,10 @@ | ||
shimmer.debug = false | ||
shimmer.registeredInstrumentations = Object.create(null) | ||
if ( | ||
Object.prototype.toString.call(shimmer.registeredInstrumentations) === | ||
'[object InstrumentationTracker]' | ||
) { | ||
shimmer.registeredInstrumentations = new InstrumentationTracker() | ||
} else { | ||
shimmer.registeredInstrumentations = Object.create(null) | ||
} | ||
@@ -163,0 +171,0 @@ testUtil.removeListenerByName(process, 'uncaughtException', '__NR_uncaughtExceptionHandler') |
{ | ||
"name": "@newrelic/test-utilities", | ||
"version": "8.3.0", | ||
"version": "8.4.0", | ||
"description": "Test library for New Relic instrumentation modules.", | ||
@@ -48,3 +48,3 @@ "main": "index.js", | ||
"lockfile-lint": "^4.9.6", | ||
"newrelic": "^11.0.0", | ||
"newrelic": "^11.14.0", | ||
"prettier": "^2.3.2", | ||
@@ -51,0 +51,0 @@ "sinon": "^11.1.1", |
@@ -231,3 +231,3 @@ <a href="https://opensource.newrelic.com/oss-category/#community-project"><picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/dark/Community_Project.png"><source media="(prefers-color-scheme: light)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Project.png"><img alt="New Relic Open Source community project banner." src="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Project.png"></picture></a> | ||
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through [HackerOne](https://hackerone.com/newrelic). | ||
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through [Hacour bug bounty program](https://docs.newrelic.com/docs/security/security-privacy/information-security/report-security-vulnerabilities/). | ||
@@ -234,0 +234,0 @@ If you would like to contribute to this project, review [these guidelines](./CONTRIBUTING.md). |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
121152
3013
23