@wdio/config
Advanced tools
Comparing version 6.6.0 to 6.6.3
import { validateConfig } from "./utils"; | ||
import { getSauceEndpoint } from "./utils"; | ||
import { detectBackend } from "./utils"; | ||
import { isCloudCapability } from "./utils"; | ||
import ConfigParser from "./lib/ConfigParser"; | ||
import { DEFAULT_CONFIGS } from "./constants"; | ||
export { validateConfig, getSauceEndpoint, detectBackend, ConfigParser, DEFAULT_CONFIGS }; | ||
export { validateConfig, getSauceEndpoint, detectBackend, isCloudCapability, ConfigParser, DEFAULT_CONFIGS }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DEFAULT_CONFIGS = exports.ConfigParser = exports.detectBackend = exports.getSauceEndpoint = exports.validateConfig = void 0; | ||
exports.DEFAULT_CONFIGS = exports.ConfigParser = exports.isCloudCapability = exports.detectBackend = exports.getSauceEndpoint = exports.validateConfig = void 0; | ||
const ConfigParser_1 = __importDefault(require("./lib/ConfigParser")); | ||
@@ -14,3 +14,4 @@ exports.ConfigParser = ConfigParser_1.default; | ||
Object.defineProperty(exports, "detectBackend", { enumerable: true, get: function () { return utils_1.detectBackend; } }); | ||
Object.defineProperty(exports, "isCloudCapability", { enumerable: true, get: function () { return utils_1.isCloudCapability; } }); | ||
const constants_1 = require("./constants"); | ||
Object.defineProperty(exports, "DEFAULT_CONFIGS", { enumerable: true, get: function () { return constants_1.DEFAULT_CONFIGS; } }); |
export function getSauceEndpoint(region: any, isRDC: any): string; | ||
export function removeLineNumbers(filePath: string): string; | ||
export function isCucumberFeatureWithLineNumber(spec: string | string[]): boolean; | ||
export function isCloudCapability(cap: any): boolean; | ||
export function detectBackend(options?: {}, isRDC?: boolean): { | ||
@@ -5,0 +6,0 @@ protocol: any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validateConfig = exports.detectBackend = exports.isCucumberFeatureWithLineNumber = exports.removeLineNumbers = exports.getSauceEndpoint = exports.validObjectOrArray = void 0; | ||
exports.validateConfig = exports.detectBackend = exports.isCloudCapability = exports.isCucumberFeatureWithLineNumber = exports.removeLineNumbers = exports.getSauceEndpoint = exports.validObjectOrArray = void 0; | ||
const DEFAULT_HOSTNAME = '127.0.0.1'; | ||
@@ -38,2 +38,6 @@ const DEFAULT_PORT = 4444; | ||
exports.isCucumberFeatureWithLineNumber = isCucumberFeatureWithLineNumber; | ||
function isCloudCapability(cap) { | ||
return Boolean(cap && (cap['bstack:options'] || cap['sauce:options'] || cap['tb:options'])); | ||
} | ||
exports.isCloudCapability = isCloudCapability; | ||
function detectBackend(options = {}, isRDC = false) { | ||
@@ -40,0 +44,0 @@ let { port, hostname, user, key, protocol, region, headless, path } = options; |
{ | ||
"name": "@wdio/config", | ||
"version": "6.6.0", | ||
"version": "6.6.3", | ||
"description": "A helper utility to parse and validate WebdriverIO options", | ||
@@ -32,3 +32,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "643b1f237c0c7e4eb0e28fca31d963d3b19a073c" | ||
"gitHead": "f9b6fdbb63334fbb9942c14b236d9dc4e40d684b" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24526
583
1