@contrast/logger
Advanced tools
Comparing version 1.7.0 to 1.7.1
"use strict"; | ||
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -5,0 +5,0 @@ * License: Commercial |
@@ -82,2 +82,3 @@ import { Config } from '@contrast/config'; | ||
}; | ||
npm_path: string; | ||
}; | ||
@@ -115,2 +116,4 @@ }; | ||
session_id: string | null; | ||
group: string | null; | ||
metadata: string | null; | ||
session_metadata: string | null; | ||
@@ -117,0 +120,0 @@ }; |
"use strict"; | ||
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -5,0 +5,0 @@ * License: Commercial |
@@ -8,6 +8,7 @@ /// <reference types="node" /> | ||
/** | ||
* Removes any '-r @contrast/protect' or similar strings from | ||
* `process.env.NODE_OPTIONS.` | ||
* Removes any '-r @contrast/protect' or similar strings from `process.env.NODE_OPTIONS.`. | ||
* If we don't do this, the logger worker threads will be instrumented and those agents | ||
* will attempt to spawn more loggers and result in infinite recursion scenario. | ||
*/ | ||
export declare const cleanEnv: (env: NodeJS.ProcessEnv) => NodeJS.ProcessEnv; | ||
//# sourceMappingURL=utils.d.ts.map |
"use strict"; | ||
/* | ||
* Copyright: 2023 Contrast Security, Inc | ||
* Copyright: 2024 Contrast Security, Inc | ||
* Contact: support@contrastsecurity.com | ||
@@ -18,6 +18,7 @@ * License: Commercial | ||
exports.cleanEnv = void 0; | ||
const ENV_REGEX = /(?:-r|--require|--(?:experimental-)?loader)\s+(@contrast\S+|\S*agent(?:\.c?js)?|\S*loader(?:\.m?js)?)\s*/; | ||
const ENV_REGEX = /(?:-r|--require|--import|--(?:experimental-)?loader)\s+(@contrast\S+|\S*agent(?:\.c?js)?|\S*loader(?:\.m?js)?)\s*/; | ||
/** | ||
* Removes any '-r @contrast/protect' or similar strings from | ||
* `process.env.NODE_OPTIONS.` | ||
* Removes any '-r @contrast/protect' or similar strings from `process.env.NODE_OPTIONS.`. | ||
* If we don't do this, the logger worker threads will be instrumented and those agents | ||
* will attempt to spawn more loggers and result in infinite recursion scenario. | ||
*/ | ||
@@ -24,0 +25,0 @@ const cleanEnv = (env) => { |
{ | ||
"name": "@contrast/logger", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Centralized logging for Contrast agent services", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29973
393