"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractEnvironment = void 0;
function extractEnvironment() {
    const versions = {};
    try {
        const { name, version } = require('selenium-webdriver/package.json');
        versions[name] = version;
    }
    catch {
        // NOTE: ignore error
    }
    let sdk = undefined;
    try {
        const { name, version } = require('../package.json');
        sdk = { lang: 'js', name, currentVersion: version };
    }
    catch {
        // NOTE: ignore error
    }
    return { versions, sdk };
}
exports.extractEnvironment = extractEnvironment;
