Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devtools

Package Overview
Dependencies
Maintainers
2
Versions
386
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devtools - npm Package Compare versions

Comparing version 6.12.1 to 7.0.0-beta.0

build/commands.d.ts

4

build/commands/addCookie.d.ts

@@ -1,6 +0,6 @@

/// <reference types="webdriver" />
import { Cookie } from '@wdio/protocols';
import type DevToolsDriver from '../devtoolsdriver';
export default function addCookie(this: DevToolsDriver, { cookie }: {
cookie: WebDriver.Cookie;
cookie: Cookie;
}): Promise<null>;
//# sourceMappingURL=addCookie.d.ts.map

@@ -1,6 +0,6 @@

/// <reference types="webdriver" />
/// <reference types="node" />
import type { ExtendedCapabilities } from '../types';
import type DevToolsDriver from '../devtoolsdriver';
export default function newSession(this: DevToolsDriver, { capabilities }: {
capabilities: WebDriver.Capabilities;
capabilities: ExtendedCapabilities;
}): Promise<{

@@ -7,0 +7,0 @@ sessionId: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
async function performActions() {
}
async function performActions() { }
exports.default = performActions;

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

/// <reference types="webdriver" />
import type { DefaultOptions } from '@wdio/config';
import type { Options } from '@wdio/types';
export declare const DEFAULT_WIDTH = 1200;

@@ -18,3 +17,3 @@ export declare const DEFAULT_HEIGHT = 900;

};
export declare const DEFAULTS: DefaultOptions<WebDriver.Options>;
export declare const DEFAULTS: Options.Definition<Options.WebDriver>;
export declare const DEFAULT_IMPLICIT_TIMEOUT = 0;

@@ -21,0 +20,0 @@ export declare const DEFAULT_PAGELOAD_TIMEOUT: number;

@@ -1,8 +0,5 @@

/// <reference types="webdriverio/webdriverio-core" />
/// <reference types="webdriverio" />
/// <reference types="@wdio/cucumber-framework" />
import type { Browser } from 'puppeteer-core/lib/cjs/puppeteer/common/Browser';
import type { Dialog } from 'puppeteer-core/lib/cjs/puppeteer/common/Dialog';
import type { Page } from 'puppeteer-core/lib/cjs/puppeteer/common/Page';
import type WDIOProtocols from '@wdio/protocols';
import type { CommandEndpoint } from '@wdio/protocols';
import ElementStore from './elementstore';

@@ -21,3 +18,3 @@ export default class DevToolsDriver {

static requireCommand(filePath: string): any;
register(commandInfo: WDIOProtocols.CommandEndpoint): (this: WebdriverIO.BrowserObject, ...args: any[]) => Promise<any>;
register(commandInfo: CommandEndpoint): (this: Browser, ...args: any[]) => Promise<any>;
dialogHandler(dialog: Dialog): void;

@@ -24,0 +21,0 @@ framenavigatedHandler(frame: Page): void;

@@ -1,5 +0,3 @@

/// <reference types="node" />
/// <reference types="expect-webdriverio" />
declare const _default: (browserName: 'firefox' | 'edge', platform: NodeJS.Platform) => (() => string[]) | (() => string[]) | (() => string[]) | (() => string[]) | (() => string[]) | (() => string[]);
export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -1,9 +0,7 @@

/// <reference types="webdriver" />
/// <reference types="webdriverio/webdriverio-core" />
/// <reference types="webdriverio" />
import type { Options } from '@wdio/types';
import { SUPPORTED_BROWSER } from './constants';
export declare const sessionMap: Map<any, any>;
export default class DevTools {
static newSession(options?: WebDriver.Options, modifier?: Function, userPrototype?: {}, customCommandWrapper?: Function): Promise<any>;
static reloadSession(instance: WebdriverIO.BrowserObject): Promise<string>;
static newSession(options: Options.WebDriver, modifier?: Function, userPrototype?: {}, customCommandWrapper?: Function): Promise<any>;
static reloadSession(instance: any): Promise<any>;
static attachToSession(): void;

@@ -10,0 +8,0 @@ }

@@ -23,3 +23,3 @@ "use strict";

class DevTools {
static async newSession(options = {}, modifier, userPrototype = {}, customCommandWrapper) {
static async newSession(options, modifier, userPrototype = {}, customCommandWrapper) {
var _a, _b;

@@ -34,2 +34,3 @@ const params = config_1.validateConfig(constants_1.DEFAULTS, options);

log.info('Initiate new session using the DevTools protocol');
const requestedCapabilities = { ...params.capabilities };
const browser = await launcher_1.default(params.capabilities);

@@ -44,3 +45,2 @@ const pages = await browser.pages();

.find((capKey) => availableVendorPrefixes.includes(capKey));
params.requestedCapabilities = { ...params.capabilities };
params.capabilities = {

@@ -71,3 +71,3 @@ browserName: userAgent.browser.name,

};
const monad = utils_1.webdriverMonad(params, modifier, prototype);
const monad = utils_1.webdriverMonad({ ...params, requestedCapabilities }, modifier, prototype);
return monad(sessionId, customCommandWrapper);

@@ -74,0 +74,0 @@ }

@@ -1,16 +0,4 @@

/// <reference types="webdriver" />
import type { Browser } from 'puppeteer-core/lib/cjs/puppeteer/common/Browser';
interface DevToolsOptions {
ignoreDefaultArgs?: string[] | boolean;
headless?: boolean;
defaultViewport?: {
width: number;
height: number;
};
}
interface ExtendedCapabilities extends WebDriver.Capabilities {
'wdio:devtoolsOptions'?: DevToolsOptions;
}
import type { ExtendedCapabilities } from './types';
export default function launch(capabilities: ExtendedCapabilities): Promise<Browser>;
export {};
//# sourceMappingURL=launcher.d.ts.map

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

/// <reference types="@wdio/protocols" />
/// <reference types="webdriver" />
import { CommandParameters, CommandPathVariables, ElementReference } from '@wdio/protocols';
import type { Logger } from '@wdio/logger';

@@ -10,8 +9,8 @@ import type { ElementHandle } from 'puppeteer-core/lib/cjs/puppeteer/common/JSHandle';

import type DevToolsDriver from './devtoolsdriver';
export declare const validate: (command: string, parameters: WDIOProtocols.CommandParameters[], variables: WDIOProtocols.CommandPathVariables[], ref: string, args: any[]) => Record<string, any>;
export declare const validate: (command: string, parameters: CommandParameters[], variables: CommandPathVariables[], ref: string, args: any[]) => Record<string, any>;
export declare function getPrototype(commandWrapper: Function): Record<string, {
value: Function;
}>;
export declare function findElement(this: DevToolsDriver, context: Frame | Page | ElementHandle, using: string, value: string): Promise<WebDriver.ElementReference | Error>;
export declare function findElements(this: DevToolsDriver, context: Page | Frame | ElementHandle, using: string, value: string): Promise<WebDriver.ElementReference[]>;
export declare function findElement(this: DevToolsDriver, context: Frame | Page | ElementHandle, using: string, value: string): Promise<ElementReference | Error>;
export declare function findElements(this: DevToolsDriver, context: Page | Frame | ElementHandle, using: string, value: string): Promise<ElementReference[]>;
export declare function sanitizeError(err: Error): Error;

@@ -18,0 +17,0 @@ export declare function transformExecuteArgs(this: DevToolsDriver, args?: any[]): Promise<ElementHandle | any>;

{
"name": "devtools",
"version": "6.12.1",
"version": "7.0.0-beta.0",
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer",
"author": "Christian Bromann <christian@saucelabs.com>",
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/devtools",
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/devtools",
"license": "MIT",
"main": "./build/index",
"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
},
"types": "./devtools.d.ts",
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",

@@ -25,6 +25,7 @@ "repository": {

"dependencies": {
"@wdio/config": "6.12.1",
"@wdio/logger": "6.10.10",
"@wdio/protocols": "6.12.0",
"@wdio/utils": "6.11.0",
"@wdio/config": "7.0.0-beta.0",
"@wdio/logger": "7.0.0-beta.0",
"@wdio/protocols": "7.0.0-beta.0",
"@wdio/types": "7.0.0-beta.0",
"@wdio/utils": "7.0.0-beta.0",
"chrome-launcher": "^0.13.1",

@@ -41,3 +42,3 @@ "edge-paths": "^2.1.0",

},
"gitHead": "063970498c9b1142482a1a035aa699c64cc8215c"
"gitHead": "bf31660d60ad4dacf04d11ff1590e794dd377dc0"
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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