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

@appium/types

Package Overview
Dependencies
Maintainers
7
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appium/types - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

2

build/driver.d.ts

@@ -231,3 +231,3 @@ /// <reference types="node" />

isFeatureEnabled(name: string): boolean;
ensureFeatureEnabled(name: string): void;
assertFeatureEnabled(name: string): void;
validateLocatorStrategy(strategy: string, webContext?: boolean): void;

@@ -234,0 +234,0 @@ proxyActive(sessionId?: string): boolean;

/// <reference types="node" />
import type { Method as _Method } from 'axios';
/// <reference types="node" />
import type { Server as WSServer } from 'ws';
import type { Socket } from 'net';
import type { Server } from 'http';

@@ -44,10 +46,10 @@ import type { Class as _Class, ConditionalPick, MultidimensionalReadonlyArray } from 'type-fest';

prefix?: AppiumLoggerPrefix;
debug: (...args: any[]) => void;
info: (...args: any[]) => void;
warn: (...args: any[]) => void;
error: (...args: any[]) => void;
verbose: (...args: any[]) => void;
silly: (...args: any[]) => void;
http: (...args: any[]) => void;
errorAndThrow: (...args: any[]) => never;
debug(...args: any[]): void;
info(...args: any[]): void;
warn(...args: any[]): void;
error(...args: any[]): void;
verbose(...args: any[]): void;
silly(...args: any[]): void;
http(...args: any[]): void;
errorAndThrow(...args: any[]): never;
}

@@ -57,5 +59,14 @@ /**

*/
export declare type AppiumServer = Omit<Server, 'close'> & {
close: () => Promise<void>;
};
export declare type AppiumServer = Omit<Server, 'close'> & AppiumServerExtension;
export interface AppiumServerExtension {
close(): Promise<void>;
addWebSocketHandler(handlerPathname: string, handlerServer: WSServer): Promise<void>;
removeWebSocketHandler(handlerPathname: string): Promise<boolean>;
removeAllWebSocketHandlers(): Promise<boolean>;
getWebSocketHandlers(keysFilter: string | null | undefined): Promise<Record<string, WSServer>>;
webSocketsMapping: Record<string, WSServer>;
}
export interface AppiumServerSocket extends Socket {
_openReqCount: number;
}
/**

@@ -137,3 +148,3 @@ * The definition of an extension method, which will be provided via Appium's API.

*/
export declare type HTTPMethod = _Method;
export declare type HTTPMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
//# sourceMappingURL=index.d.ts.map

@@ -306,3 +306,3 @@ import type {EventEmitter} from 'events';

isFeatureEnabled(name: string): boolean;
ensureFeatureEnabled(name: string): void;
assertFeatureEnabled(name: string): void;
validateLocatorStrategy(strategy: string, webContext?: boolean): void;

@@ -309,0 +309,0 @@ proxyActive(sessionId?: string): boolean;

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

import type {Method as _Method} from 'axios';
import type {Server as WSServer} from 'ws';
import type {Socket} from 'net';
import type {Server} from 'http';

@@ -47,10 +48,10 @@ import type {Class as _Class, ConditionalPick, MultidimensionalReadonlyArray} from 'type-fest';

prefix?: AppiumLoggerPrefix;
debug: (...args: any[]) => void;
info: (...args: any[]) => void;
warn: (...args: any[]) => void;
error: (...args: any[]) => void;
verbose: (...args: any[]) => void;
silly: (...args: any[]) => void;
http: (...args: any[]) => void;
errorAndThrow: (...args: any[]) => never;
debug(...args: any[]): void;
info(...args: any[]): void;
warn(...args: any[]): void;
error(...args: any[]): void;
verbose(...args: any[]): void;
silly(...args: any[]): void;
http(...args: any[]): void;
errorAndThrow(...args: any[]): never;
}

@@ -61,6 +62,22 @@

*/
export type AppiumServer = Omit<Server, 'close'> & {
close: () => Promise<void>;
};
export type AppiumServer = Omit<Server, 'close'> & AppiumServerExtension;
export interface AppiumServerExtension {
close(): Promise<void>;
addWebSocketHandler(
handlerPathname: string,
handlerServer: WSServer
): Promise<void>;
removeWebSocketHandler(handlerPathname: string): Promise<boolean>;
removeAllWebSocketHandlers(): Promise<boolean>;
getWebSocketHandlers(
keysFilter: string | null | undefined
): Promise<Record<string, WSServer>>;
webSocketsMapping: Record<string, WSServer>;
}
export interface AppiumServerSocket extends Socket {
_openReqCount: number;
}
/**

@@ -157,2 +174,13 @@ * The definition of an extension method, which will be provided via Appium's API.

*/
export type HTTPMethod = _Method;
export type HTTPMethod =
| 'get' | 'GET'
| 'delete' | 'DELETE'
| 'head' | 'HEAD'
| 'options' | 'OPTIONS'
| 'post' | 'POST'
| 'put' | 'PUT'
| 'patch' | 'PATCH'
| 'purge' | 'PURGE'
| 'link' | 'LINK'
| 'unlink' | 'UNLINK';
{
"name": "@appium/types",
"version": "0.2.5",
"version": "0.3.0",
"description": "Various type declarations used across Appium",

@@ -31,6 +31,11 @@ "keywords": [

"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
"prepare": "npm run build"
"prepare": "npm run build",
"test:smoke": "echo 'No smoke test for this package'"
},
"dependencies": {
"@appium/schema": "^0.0.7"
"@appium/schema": "^0.0.8",
"@types/express": "4.17.13",
"@types/npmlog": "4.1.4",
"@wdio/types": "7.20.7",
"type-fest": "2.17.0"
},

@@ -44,3 +49,3 @@ "engines": {

},
"gitHead": "62b97417fcb7b0c0e2d6bab30bf9406e09bfb2ed"
"gitHead": "f6e6d7234e7fe92f989f4e37a71007044985dedf"
}

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