@contrast/agentify
Advanced tools
Comparing version 1.17.0 to 1.18.0
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -45,2 +45,3 @@ * License: Commercial | ||
readonly rewriter: Rewriter; | ||
readonly threadInfo: any; | ||
} | ||
@@ -47,0 +48,0 @@ |
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -55,9 +55,9 @@ * License: Commercial | ||
require('@contrast/core/lib/is-agent-path')(core); | ||
require('@contrast/dep-hooks')(core); | ||
require('@contrast/patcher')(core); | ||
require('@contrast/core/lib/capture-stacktrace')(core); | ||
require('@contrast/patcher')(core); | ||
require('@contrast/rewriter')(core); // merge contrast-methods? | ||
require('@contrast/core/lib/contrast-methods')(core); // can we remove dependency on patcher? | ||
require('@contrast/dep-hooks')(core); | ||
require('@contrast/scopes')(core); | ||
@@ -64,0 +64,0 @@ require('@contrast/deadzones')(core); |
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -41,3 +41,3 @@ * License: Commercial | ||
let result; | ||
const { code } = core.rewriter.rewrite(content, { | ||
const options = { | ||
filename, | ||
@@ -47,4 +47,8 @@ isModule: false, | ||
wrap: true, | ||
}); | ||
}; | ||
// if threadInfo is present, this is running with --loader or --import | ||
core.threadInfo?.post('rewrite', options); | ||
const { code } = core.rewriter.rewrite(content, options); | ||
try { | ||
@@ -51,0 +55,0 @@ result = _compile.call(this, code, filename); |
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -4,0 +4,0 @@ * License: Commercial |
{ | ||
"name": "@contrast/agentify", | ||
"version": "1.17.0", | ||
"version": "1.18.0", | ||
"description": "Configures Contrast agent services and instrumentation within an application", | ||
@@ -21,7 +21,8 @@ "license": "SEE LICENSE IN LICENSE", | ||
"@contrast/common": "1.16.0", | ||
"@contrast/config": "1.22.0", | ||
"@contrast/core": "1.27.0", | ||
"@contrast/config": "1.23.0", | ||
"@contrast/core": "1.27.1", | ||
"@contrast/deadzones": "1.1.1", | ||
"@contrast/dep-hooks": "1.3.0", | ||
"@contrast/instrumentation": "1.3.0", | ||
"@contrast/dep-hooks": "^1.3.0", | ||
"@contrast/esm-hooks": "2.0.1", | ||
"@contrast/instrumentation": "^1.3.0", | ||
"@contrast/logger": "1.7.0", | ||
@@ -28,0 +29,0 @@ "@contrast/metrics": "1.2.0", |
Sorry, the diff of this file is not supported yet
25031
11
610
13
+ Added@contrast/esm-hooks@2.0.1
+ Added@contrast/common@1.21.3(transitive)
+ Added@contrast/config@1.23.0(transitive)
+ Added@contrast/core@1.27.1(transitive)
+ Added@contrast/dep-hooks@1.3.3(transitive)
+ Added@contrast/esm-hooks@2.0.1(transitive)
+ Added@contrast/find-package-json@1.2.0(transitive)
+ Added@contrast/fn-inspect@4.2.0(transitive)
+ Added@contrast/instrumentation@1.10.1(transitive)
+ Added@contrast/require-hook@5.1.0(transitive)
- Removed@contrast/config@1.22.0(transitive)
- Removed@contrast/core@1.27.0(transitive)
- Removed@contrast/dep-hooks@1.3.0(transitive)
- Removed@contrast/fn-inspect@3.4.0(transitive)
- Removed@contrast/instrumentation@1.3.0(transitive)
- Removed@contrast/require-hook@4.2.0(transitive)
- Removedparent-package-json@2.0.1(transitive)
Updated@contrast/config@1.23.0
Updated@contrast/core@1.27.1
Updated@contrast/dep-hooks@^1.3.0