🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

dotenvr

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenvr - npm Package Compare versions

Comparing version
0.2.1
to
0.2.2
+1
-1
dist/index.d.ts
import { Dict } from '@mohism/utils';
export declare type SupportedType = undefined | string | Array<string> | boolean | Array<boolean> | number | Array<number>;
export type SupportedType = undefined | string | Array<string> | boolean | Array<boolean> | number | Array<number>;
declare class Dotenvr {

@@ -4,0 +4,0 @@ /**

@@ -27,7 +27,7 @@ "use strict";

}
const abs = path_1.resolve(`${file}`);
if (!fs_1.existsSync(abs)) {
const abs = (0, path_1.resolve)(`${file}`);
if (!(0, fs_1.existsSync)(abs)) {
return process.env;
}
const content = fs_1.readFileSync(abs).toString();
const content = (0, fs_1.readFileSync)(abs).toString();
const contentArr = content.split(/\n\r?|\r\n?/);

@@ -34,0 +34,0 @@ const config = {};

{
"name": "dotenvr",
"version": "0.2.1",
"version": "0.2.2",
"description": "dotenv Recursion",

@@ -33,3 +33,3 @@ "main": "index.js",

"@types/mocha": "^5.2.7",
"@types/node": "^12.12.14",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^2.9.0",

@@ -44,4 +44,4 @@ "@typescript-eslint/parser": "^2.9.0",

"sinon": "^4.5.0",
"ts-node": "^8.5.2",
"typescript": "^3.7.2"
"ts-node": "^10",
"typescript": "^4"
},

@@ -48,0 +48,0 @@ "husky": {

@@ -7,3 +7,4 @@ import { describe } from "mocha";

it('parse-env', () => {
const config = Dotenvr.load('.env', true);
const config = Dotenvr.load('.env', false);
assert.deepEqual(

@@ -10,0 +11,0 @@ config,

Sorry, the diff of this file is not supported yet