Socket
Socket
Sign inDemoInstall

@newrelic/test-utilities

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newrelic/test-utilities - npm Package Compare versions

Comparing version 7.3.2 to 8.0.0

2

lib/versioned/runner.js

@@ -103,3 +103,3 @@ #! /user/bin/env node

let args = [testFile]
if (process.env.PKG_TYPE === 'module') {
if (process.env.PKG_TYPE === 'module' && process.env.NR_LOADER) {
const loaderPath = path.resolve(process.env.NR_LOADER)

@@ -106,0 +106,0 @@ const loaderArg = semver.lt(process.version, '18.0.0') ? '--experimental-loader' : '--loader'

@@ -133,11 +133,6 @@ /*

if (this.type === 'module') {
if (this.type === 'module' && process.env.NR_LOADER) {
// The test loader is defined in the agent, so this uses process.cwd() instead of __directory.
const cwd = process.cwd()
let loaderPath = path.resolve(`${cwd}/test/lib/`, 'test-loader.mjs')
if (process.env.NR_LOADER) {
// Allow for override from environment
// This assumes that the loader path is defined in relation to the agent root.
loaderPath = path.resolve(cwd, process.env.NR_LOADER)
}
const loaderPath = path.resolve(cwd, process.env.NR_LOADER)
// changing env var for loader so subsequent commonjs

@@ -144,0 +139,0 @@ // runs that have NR_LOADER do not try to load it

{
"name": "@newrelic/test-utilities",
"version": "7.3.2",
"version": "8.0.0",
"description": "Test library for New Relic instrumentation modules.",

@@ -27,3 +27,3 @@ "main": "index.js",

"engines": {
"node": ">=14.0"
"node": ">=16.0"
},

@@ -52,3 +52,3 @@ "files": [

"sinon": "^11.1.1",
"tap": "^16.3.3"
"tap": "^16.3.8"
},

@@ -55,0 +55,0 @@ "dependencies": {

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