@contrast/agentify
Advanced tools
Comparing version
@@ -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, | ||
}; |
{ | ||
"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", |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
37407
-2.51%888
-2.31%+ Added
+ Added
- Removed
- Removed
Updated
Updated