@contrast/agentify 1.25.0 → 1.26.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.
package/lib/index.d.ts CHANGED
@@ -76,6 +76,6 @@ export interface Agentify {
76
76
  (preRunMain: PreRunMain, opts?: AgentifyOptions): Installable | void;
77
77
  }
78
78
 
79
- declare function init(core: Partial<Core>): Agentify;
79
+ declare function init(core?: Partial<Core>): Agentify;
80
80
 
81
81
  export = init;
package/lib/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * engineered, modified, repackaged, sold, redistributed or otherwise used in a
13
13
  * way not consistent with the End User License Agreement.
14
14
  */
15
-
15
+ /*eslint node/no-unsupported-features/es-syntax: ["error", {version: >=10.0.0}]*/
16
16
  'use strict';
17
17
 
18
18
  const Module = require('module');
package/lib/utils.js CHANGED
@@ -19,7 +19,6 @@ const path = require('path');
19
19
  const process = require('process');
20
20
  const semver = require('semver');
21
21
  const { IntentionalError } = require('@contrast/common');
22
- const { findPackageJsonSync } = require('@contrast/find-package-json');
23
22
  const {
24
23
  engines: {
25
24
  node: nodeEngines,
@@ -89,6 +88,7 @@ function assertSupportedPreloadUsage() {
89
88
  // if absolute path is provided read the package name to check if it's our agent
90
89
  if (path.isAbsolute(preloadTarget)) {
91
90
  try {
91
+ const { findPackageJsonSync } = require('@contrast/find-package-json');
92
92
  const { name } = require(findPackageJsonSync({ cwd: path.dirname(preloadTarget) }));
93
93
  if (name !== '@contrast/agent') continue;
94
94
  preloadTarget = name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agentify",
3
- "version": "1.25.0",
3
+ "version": "1.26.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)",
@@ -11,25 +11,25 @@
11
11
  "types": "lib/index.d.ts",
12
12
  "engines": {
13
13
  "npm": ">=6.13.7 <7 || >= 8.3.1",
14
- "node": ">= 14.18.0"
14
+ "node": ">= 16.9.1"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
- "@contrast/common": "1.21.0",
21
- "@contrast/config": "1.28.0",
22
- "@contrast/core": "1.32.0",
23
- "@contrast/deadzones": "1.2.0",
24
- "@contrast/dep-hooks": "1.3.2",
25
- "@contrast/esm-hooks": "2.6.0",
20
+ "@contrast/common": "1.21.1",
21
+ "@contrast/config": "1.28.1",
22
+ "@contrast/core": "1.32.1",
23
+ "@contrast/deadzones": "1.2.1",
24
+ "@contrast/dep-hooks": "1.3.3",
25
+ "@contrast/esm-hooks": "2.6.1",
26
26
  "@contrast/find-package-json": "^1.1.0",
27
- "@contrast/instrumentation": "1.8.0",
28
- "@contrast/logger": "1.8.1",
29
- "@contrast/metrics": "1.8.0",
30
- "@contrast/patcher": "1.7.2",
31
- "@contrast/reporter": "1.27.0",
32
- "@contrast/rewriter": "1.8.0",
27
+ "@contrast/instrumentation": "1.9.0",
28
+ "@contrast/logger": "1.8.3",
29
+ "@contrast/metrics": "1.8.1",
30
+ "@contrast/patcher": "1.7.3",
31
+ "@contrast/reporter": "1.27.1",
32
+ "@contrast/rewriter": "1.8.1",
33
33
  "@contrast/scopes": "1.4.1",
34
34
  "semver": "^7.6.0"
35
35
  }