Socket
Socket
Sign inDemoInstall

geckodriver

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geckodriver - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

2

dist/constants.d.ts

@@ -1,2 +0,2 @@

export declare const MOZ_CENTRAL_CARGO_TOML = "https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/geckodriver/Cargo.toml";
export declare const GECKODRIVER_RELEASES = "https://api.github.com/repos/mozilla/geckodriver/releases/latest";
export declare const BASE_CDN_URL: string;

@@ -3,0 +3,0 @@ export declare const GECKODRIVER_DOWNLOAD_PATH: string;

import os from 'node:os';
export const MOZ_CENTRAL_CARGO_TOML = 'https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/geckodriver/Cargo.toml';
export const GECKODRIVER_RELEASES = 'https://api.github.com/repos/mozilla/geckodriver/releases/latest';
export const BASE_CDN_URL = process.env.GECKODRIVER_CDNURL || process.env.npm_config_geckodriver_cdnurl || 'https://github.com/mozilla/geckodriver/releases/download';

@@ -4,0 +4,0 @@ // e.g. https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-macos-aarch64.tar.gz

@@ -14,3 +14,3 @@ import os from 'node:os';

import unzipper from 'unzipper';
import { BINARY_FILE, MOZ_CENTRAL_CARGO_TOML } from './constants.js';
import { BINARY_FILE, GECKODRIVER_RELEASES } from './constants.js';
import { hasAccess, getDownloadUrl, retryFetch } from './utils.js';

@@ -35,9 +35,8 @@ const log = logger('geckodriver');

if (!geckodriverVersion) {
const res = await retryFetch(MOZ_CENTRAL_CARGO_TOML, fetchOpts);
const toml = await res.text();
const version = toml.split('\n').find((l) => l.startsWith('version = '));
if (!version) {
throw new Error(`Couldn't find version property in Cargo.toml file: ${toml}`);
const res = await retryFetch(GECKODRIVER_RELEASES, fetchOpts);
const releases = await res.json();
geckodriverVersion = releases.name;
if (!geckodriverVersion) {
throw new Error(`Couldn't find version name in releases: ${JSON.stringify(releases)}`);
}
geckodriverVersion = version.split(' = ').pop().slice(1, -1);
log.info(`Detected Geckodriver v${geckodriverVersion} to be latest`);

@@ -44,0 +43,0 @@ }

{
"name": "geckodriver",
"version": "4.3.0",
"version": "4.3.1",
"description": "Mozilla's Geckodriver for Node.js",

@@ -54,11 +54,11 @@ "homepage": "https://github.com/webdriverio-community/node-geckodriver#readme",

"devDependencies": {
"@types/node": "^20.10.4",
"@types/node": "^20.10.5",
"@types/tar-fs": "^2.0.4",
"@types/unzipper": "^0.10.9",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitest/coverage-v8": "^1.0.4",
"eslint": "^8.55.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-unicorn": "^49.0.0",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@vitest/coverage-v8": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unicorn": "^50.0.1",
"geckodriver": ".",

@@ -71,5 +71,5 @@ "husky": "^8.0.3",

"typescript": "^5.3.3",
"vitest": "^1.0.4",
"vitest": "^1.1.0",
"wait-port": "^1.1.0",
"webdriverio": "^8.26.1"
"webdriverio": "^8.27.0"
},

@@ -76,0 +76,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc