Socket
Socket
Sign inDemoInstall

@4c/env

Package Overview
Dependencies
5
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.3 to 1.2.4

18

lib/env.d.ts

@@ -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 {};

3

lib/env.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc