Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/logger

Package Overview
Dependencies
Maintainers
9
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/logger - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

2

lib/index.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc