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

@mitm/config

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mitm/config - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

index.esm.js

2

index.d.ts

@@ -6,4 +6,4 @@ export * from './getters';

readonly timeZone: string;
readonly logLevel: string;
readonly logLevel: import("./parsers").StandardLogLevel;
};
export default config;
{
"name": "@mitm/config",
"version": "2.0.0",
"version": "2.1.0",
"dependencies": {

@@ -10,5 +10,5 @@ "case": "^1.6.0"

},
"main": "./config.umd.js",
"module": "./config.esm.js",
"main": "./index.umd.js",
"module": "./index.esm.js",
"typings": "./index.d.ts"
}

@@ -0,1 +1,2 @@

export declare type StandardLogLevel = 'error' | 'warn' | 'info' | 'http' | 'verbose' | 'debug' | 'silly';
export declare function asString(value: string): string;

@@ -5,2 +6,3 @@ export declare function asBoolean(value: string): boolean;

export declare function asNodeEnv(value: string): 'development' | 'production';
export declare function asLogLevel(value: string): StandardLogLevel;
export declare function asCommaSeparatedStrings(value: string): string[];
# @mitm/config
Une librairie portable (node, web, etc) contenant des utilitaires pour déclarer une configuration de projet basée sur des variables d'environnement.
## Changelog
### 2.1.0
- Ajout du parseur `asLogLevel` et utilisation dans la variable standard `config.logLevel`.
export declare const wellKnown: {
readonly nodeEnv: "development" | "production";
readonly timeZone: string;
readonly logLevel: string;
readonly logLevel: import("./parsers").StandardLogLevel;
};
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