@qawolf/config
Advanced tools
Comparing version 0.7.0 to 0.7.2
@@ -9,3 +9,2 @@ export declare const CONFIG: { | ||
domPath: string | undefined; | ||
findTimeoutMs: number; | ||
headless: boolean; | ||
@@ -19,3 +18,4 @@ keyDelayMs: number; | ||
testUrl: string; | ||
timeoutMs: number; | ||
videoPath: string | undefined; | ||
}; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const dotenv_1 = __importDefault(require("dotenv")); | ||
const dotenv_1 = require("dotenv"); | ||
const dotEnvPath = process.env.QAW_DOTENV_PATH; | ||
dotenv_1.default.config(dotEnvPath ? { path: dotEnvPath } : {}); | ||
dotenv_1.config(dotEnvPath ? { path: dotEnvPath } : {}); | ||
const testUrl = process.env.QAW_TEST_URL || "http://localhost:5000/"; | ||
@@ -26,3 +23,2 @@ const parseBool = (value) => { | ||
domPath: process.env.QAW_DOM_PATH, | ||
findTimeoutMs: parseNumber(process.env.QAW_FIND_TIMEOUT_MS, 30000), | ||
headless: parseBool(process.env.QAW_HEADLESS), | ||
@@ -36,4 +32,5 @@ keyDelayMs: parseNumber(process.env.QAW_KEY_DELAY_MS, 0), | ||
testUrl, | ||
timeoutMs: parseNumber(process.env.QAW_TIMEOUT_MS, 30000), | ||
videoPath: process.env.QAW_VIDEO_PATH | ||
}; | ||
//# sourceMappingURL=config.js.map |
{ | ||
"name": "@qawolf/config", | ||
"description": "qawolf config (node only)", | ||
"version": "0.7.0", | ||
"version": "0.7.2", | ||
"license": "BSD-3.0", | ||
@@ -29,3 +29,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "704a41f9965711470844c0ac733b23e494b1f541" | ||
"gitHead": "2fa632a9eea4ac15fbbdac5889a3040ad53b79c5" | ||
} |
@@ -1,5 +0,5 @@ | ||
import dotenv from "dotenv"; | ||
import { config as configDotenv } from "dotenv"; | ||
const dotEnvPath = process.env.QAW_DOTENV_PATH; | ||
dotenv.config(dotEnvPath ? { path: dotEnvPath } : {}); | ||
configDotenv(dotEnvPath ? { path: dotEnvPath } : {}); | ||
@@ -26,3 +26,2 @@ const testUrl = process.env.QAW_TEST_URL || "http://localhost:5000/"; | ||
domPath: process.env.QAW_DOM_PATH, | ||
findTimeoutMs: parseNumber(process.env.QAW_FIND_TIMEOUT_MS, 30000), | ||
headless: parseBool(process.env.QAW_HEADLESS), | ||
@@ -41,3 +40,4 @@ keyDelayMs: parseNumber(process.env.QAW_KEY_DELAY_MS, 0), | ||
testUrl, | ||
timeoutMs: parseNumber(process.env.QAW_TIMEOUT_MS, 30000), | ||
videoPath: process.env.QAW_VIDEO_PATH | ||
}; |
Sorry, the diff of this file is not supported yet
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
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
8387
113