@contrast/agentify 1.42.3 → 1.43.0

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.
Files changed (2) hide show
  1. package/lib/utils.js +0 -22
  2. package/package.json +14 -14
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",
3
+ "version": "1.43.0",
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)",
@@ -20,21 +20,21 @@
20
20
  "test": "../scripts/test.sh"
21
21
  },
22
22
  "dependencies": {
23
- "@contrast/common": "1.29.1",
24
- "@contrast/config": "1.40.2",
25
- "@contrast/core": "1.45.2",
26
- "@contrast/deadzones": "1.17.2",
27
- "@contrast/dep-hooks": "1.14.2",
28
- "@contrast/esm-hooks": "2.19.3",
23
+ "@contrast/common": "1.30.0",
24
+ "@contrast/config": "1.41.0",
25
+ "@contrast/core": "1.46.0",
26
+ "@contrast/deadzones": "1.18.0",
27
+ "@contrast/dep-hooks": "1.15.0",
28
+ "@contrast/esm-hooks": "2.20.0",
29
29
  "@contrast/find-package-json": "^1.1.0",
30
- "@contrast/instrumentation": "1.24.2",
31
- "@contrast/logger": "1.18.2",
32
- "@contrast/metrics": "1.22.2",
33
- "@contrast/patcher": "1.17.2",
30
+ "@contrast/instrumentation": "1.25.0",
31
+ "@contrast/logger": "1.19.0",
32
+ "@contrast/metrics": "1.23.0",
33
+ "@contrast/patcher": "1.18.0",
34
34
  "@contrast/perf": "1.3.1",
35
- "@contrast/reporter": "1.41.2",
36
- "@contrast/rewriter": "1.21.3",
37
- "@contrast/scopes": "1.15.2",
35
+ "@contrast/reporter": "1.42.0",
36
+ "@contrast/rewriter": "1.22.0",
37
+ "@contrast/scopes": "1.16.0",
38
38
  "on-finished": "^2.4.1",
39
39
  "semver": "^7.6.0"
40
40
  }