@4c/env
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,17 +0,1 @@ | ||
import getenv from 'getenv'; | ||
declare function loadFromFile(env?: string): { | ||
[name: string]: string; | ||
}; | ||
declare const _default: { | ||
readonly NODE_ENV: string; | ||
readonly isProduction: boolean; | ||
has(key: string): boolean; | ||
get: typeof getenv; | ||
unset(key: string): void; | ||
loadFromFile: typeof loadFromFile; | ||
load(env?: string | undefined, { force }?: { | ||
force?: boolean | undefined; | ||
}): void; | ||
define(env?: string | undefined, path?: string): any; | ||
}; | ||
export default _default; | ||
export {}; |
@@ -18,3 +18,4 @@ "use strict"; | ||
} | ||
exports.default = { | ||
// FIXME: add-module-exports doesn't work with ts. | ||
module.exports = { | ||
get NODE_ENV() { | ||
@@ -21,0 +22,0 @@ return process.env.NODE_ENV || 'development'; |
{ | ||
"name": "@4c/env", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Environment variable management and helpers", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
"importSort": { | ||
".ts, .tsx": { | ||
".js, .ts, .tsx": { | ||
"parser": "import-sort-style-4catalyzer/parser-ts", | ||
@@ -37,0 +37,0 @@ "style": "import-sort-style-4catalyzer" |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
5
8273
50
1