🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@contrast/agentify

Package Overview
Dependencies
Maintainers
0
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/agentify - npm Package Compare versions

Comparing version

to
1.42.4

22

lib/utils.js

@@ -18,3 +18,2 @@ /*

const { platform, arch } = require('os');
const path = require('path');

@@ -41,3 +40,2 @@ const process = require('process');

assertSupportedPreloadUsage();
assertEnvironmentMatchesBuild();
}

@@ -65,21 +63,2 @@

/**
* Checks that some of our precompiled dependencies are included and callable.
* This should ensure that we're running in the same environment that we were
* installed in.
* @throws {Error}
*/
function assertEnvironmentMatchesBuild() {
try {
/* eslint-disable node/no-extraneous-require */
// since swc is a codependency of the agent it should always be present but
// doesn't necessarily need to be included in this module's dependencies.
require('@swc/core').parseSync('');
} catch (cause) {
throw (cause.message === 'Bindings not found.') ?
new Error(`Contrast cannot detect the correct precompiled dependencies for the current environment: ${platform()}-${arch()}. This typically occurs when deploying an installation from one environment to a different execution environment.`, { cause })
: cause;
}
}
/**
* Checks that no experimental feature flags are used.

@@ -196,4 +175,3 @@ * @throws {Error}

assertNoExperimentalFeatureFlags,
assertEnvironmentMatchesBuild,
preStartupValidation,
};

6

package.json
{
"name": "@contrast/agentify",
"version": "1.42.3",
"version": "1.42.4",
"description": "Configures Contrast agent services and instrumentation within an application",

@@ -28,3 +28,3 @@ "license": "SEE LICENSE IN LICENSE",

"@contrast/dep-hooks": "1.14.2",
"@contrast/esm-hooks": "2.19.3",
"@contrast/esm-hooks": "2.19.4",
"@contrast/find-package-json": "^1.1.0",

@@ -37,3 +37,3 @@ "@contrast/instrumentation": "1.24.2",

"@contrast/reporter": "1.41.2",
"@contrast/rewriter": "1.21.3",
"@contrast/rewriter": "1.21.4",
"@contrast/scopes": "1.15.2",

@@ -40,0 +40,0 @@ "on-finished": "^2.4.1",