@contrast/agentify 1.42.3 → 1.42.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils.js +0 -22
- package/package.json +3 -3
package/lib/utils.js
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const { platform, arch } = require('os');
|
|
19
18
|
const path = require('path');
|
|
20
19
|
const process = require('process');
|
|
21
20
|
const semver = require('semver');
|
|
@@ -37,7 +36,6 @@ function preStartupValidation(core) {
|
|
|
37
36
|
assertNoExperimentalFeatureFlags();
|
|
38
37
|
assertSupportedNodeVersion(core.nodeEngines || nodeEngines);
|
|
39
38
|
assertSupportedPreloadUsage();
|
|
40
|
-
assertEnvironmentMatchesBuild();
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
/**
|
|
@@ -59,25 +57,6 @@ function assertSupportedNodeVersion(engines) {
|
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
|
|
62
|
-
/**
|
|
63
|
-
* Checks that some of our precompiled dependencies are included and callable.
|
|
64
|
-
* This should ensure that we're running in the same environment that we were
|
|
65
|
-
* installed in.
|
|
66
|
-
* @throws {Error}
|
|
67
|
-
*/
|
|
68
|
-
function assertEnvironmentMatchesBuild() {
|
|
69
|
-
try {
|
|
70
|
-
/* eslint-disable node/no-extraneous-require */
|
|
71
|
-
// since swc is a codependency of the agent it should always be present but
|
|
72
|
-
// doesn't necessarily need to be included in this module's dependencies.
|
|
73
|
-
require('@swc/core').parseSync('');
|
|
74
|
-
} catch (cause) {
|
|
75
|
-
throw (cause.message === 'Bindings not found.') ?
|
|
76
|
-
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 })
|
|
77
|
-
: cause;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
60
|
/**
|
|
82
61
|
* Checks that no experimental feature flags are used.
|
|
83
62
|
* @throws {Error}
|
|
@@ -190,6 +169,5 @@ module.exports = {
|
|
|
190
169
|
assertSupportedNodeVersion,
|
|
191
170
|
assertSupportedPreloadUsage,
|
|
192
171
|
assertNoExperimentalFeatureFlags,
|
|
193
|
-
assertEnvironmentMatchesBuild,
|
|
194
172
|
preStartupValidation,
|
|
195
173
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agentify",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.4",
|
|
4
4
|
"description": "Configures Contrast agent services and instrumentation within an application",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@contrast/core": "1.45.2",
|
|
26
26
|
"@contrast/deadzones": "1.17.2",
|
|
27
27
|
"@contrast/dep-hooks": "1.14.2",
|
|
28
|
-
"@contrast/esm-hooks": "2.19.
|
|
28
|
+
"@contrast/esm-hooks": "2.19.4",
|
|
29
29
|
"@contrast/find-package-json": "^1.1.0",
|
|
30
30
|
"@contrast/instrumentation": "1.24.2",
|
|
31
31
|
"@contrast/logger": "1.18.2",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@contrast/patcher": "1.17.2",
|
|
34
34
|
"@contrast/perf": "1.3.1",
|
|
35
35
|
"@contrast/reporter": "1.41.2",
|
|
36
|
-
"@contrast/rewriter": "1.21.
|
|
36
|
+
"@contrast/rewriter": "1.21.4",
|
|
37
37
|
"@contrast/scopes": "1.15.2",
|
|
38
38
|
"on-finished": "^2.4.1",
|
|
39
39
|
"semver": "^7.6.0"
|