Socket
Socket
Sign inDemoInstall

@contrast/config

Package Overview
Dependencies
Maintainers
9
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/config - npm Package Compare versions

Comparing version 1.26.0 to 1.26.1

24

lib/index.d.ts

@@ -187,6 +187,16 @@ /*

app_root: string;
/** Default: `true` */
enable_rewrite: boolean;
/** Default: `true` */
enable_source_maps: boolean;
rewrite: {
/** Default: `true` */
enable: boolean;
cache: {
/** Default: `true` */
enable: boolean;
/** Default: `./.contrast` */
path: string;
}
};
source_maps: {
/** Default: `true` */
enable: boolean;
};
library_usage: {

@@ -300,8 +310,4 @@ reporting: {

interface Core {
config: Config;
}
declare function init(core: { config?: Config }): Config;
declare function init(core: Core): Config;
export = init;

@@ -80,3 +80,3 @@ /*

* Other settings include:
* - fn: a function to run on the original value (eg type coercion or sanitizing). returns undefined if it can't do anything with the value it is given.
* - fn: a function to run on the original value (eg type coercion or sanitizing). Returns undefined if it can't do anything with the value it is given.
* - enum: validation of whether type matches enumerated value

@@ -415,3 +415,3 @@ *

default: '',
fn: (arg) => arg.split(',').filter((v)=> v),
fn: (arg) => arg.split(',').filter((v) => v),
desc: 'comma-separated list of commands that will not startup the agent if agent is required; npm* will ignore all npm executables but not your application\'s scripts'

@@ -427,3 +427,3 @@ },

// NOTE: not in common config.
name: 'agent.node.enable_rewrite',
name: 'agent.node.rewrite.enable',
arg: '[false]',

@@ -436,8 +436,25 @@ default: true,

// NOTE: not in common config.
name: 'agent.node.enable_source_maps',
name: 'agent.node.rewrite.cache.enable',
arg: '[false]',
default: true,
fn: castBoolean,
desc: 'Set to `true` to enable source map support in reporting.',
desc: 'Set to `false` to disable caching rewritten source code files.',
},
{
// NOTE: not in common config.
name: 'agent.node.rewrite.cache.path',
arg: '<path>',
default: '.contrast',
fn: toAbsolutePath,
desc: "Set the directory in which to cache rewritten source code files. Defaults to `.contrast/` in the application's current working directory.",
},
{
// NOTE: not in common config.
name: 'agent.node.source_maps.enable',
arg: '[false]',
default: true,
fn: castBoolean,
// TODO: update description once we support handling and chaining source maps.
desc: 'Set to `false` to disable source map generation.',
},
// agent.node.library_usage.reporting

@@ -444,0 +461,0 @@ {

{
"name": "@contrast/config",
"version": "1.26.0",
"version": "1.26.1",
"description": "An API for discovering Contrast agent configuration data",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE",

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