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

@qawolf/types

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qawolf/types - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

lib/common.d.ts

84

lib/index.d.ts

@@ -1,80 +0,4 @@

export declare type Action = "click" | "type" | "scroll" | "select";
export declare type Callback<S = void, T = void> = (data?: S) => T;
export interface Doc {
attrs?: any;
children?: Doc[];
content?: string;
name?: string;
type: string;
voidElement?: boolean;
}
export declare type DocSelector = {
ancestors: Doc[];
node: Doc;
};
export declare type DocSelectorSerialized = {
ancestors: string[];
node: string;
};
export interface Event {
isTrusted: boolean;
name: EventName;
page?: number;
target: DocSelector;
time: number;
}
export declare type EventName = "click" | "input" | "keydown" | "keyup" | "paste" | "scroll";
export declare type FindOptions = {
action?: Action;
dataAttribute?: string;
timeoutMs: number;
value?: string;
waitForRequests?: boolean;
};
export interface InputEvent extends Event {
name: "input";
value: string | null;
}
export interface KeyEvent extends Event {
name: "keydown" | "keyup";
value: string;
}
export interface PasteEvent extends Event {
name: "paste";
value: string;
}
export interface ScrollEvent extends Event {
name: "scroll";
value: ScrollValue;
}
export declare type ScrollValue = {
x: number;
y: number;
};
export declare type Size = "desktop" | "tablet" | "mobile";
export declare type Step = {
action: Action;
html: DocSelector;
index: number;
page?: number;
value?: StepValue;
};
export declare type StepSerialized = {
action: Action;
html: DocSelectorSerialized;
index: number;
page?: number;
};
export declare type StepValue = string | ScrollValue | null | undefined;
export declare type Workflow = {
name: string;
size: Size;
steps: Step[];
url: string;
};
export declare type WorkflowSerialized = {
name: string;
size: Size;
steps: StepSerialized[];
url: string;
};
export * from "./common";
export * from "./event";
export * from "./selector";
export * from "./workflow";
{
"name": "@qawolf/types",
"description": "qawolf types",
"version": "0.6.0",
"version": "0.7.0",
"license": "BSD-3.0",

@@ -22,3 +22,3 @@ "main": "./lib/index.js",

},
"gitHead": "e9fd9fb72d0e4f106c0efc41c565d0b0473c8713"
"gitHead": "704a41f9965711470844c0ac733b23e494b1f541"
}

@@ -1,105 +0,4 @@

export type Action = "click" | "type" | "scroll" | "select";
export type Callback<S = void, T = void> = (data?: S) => T;
export interface Doc {
attrs?: any;
children?: Doc[];
content?: string;
name?: string;
type: string;
voidElement?: boolean;
}
export type DocSelector = {
ancestors: Doc[];
node: Doc;
};
export type DocSelectorSerialized = {
ancestors: string[];
node: string;
};
export interface Event {
isTrusted: boolean;
name: EventName;
page?: number;
target: DocSelector;
time: number;
}
export type EventName =
| "click"
| "input"
| "keydown"
| "keyup"
| "paste"
| "scroll";
export type FindOptions = {
action?: Action;
dataAttribute?: string;
timeoutMs: number;
value?: string;
waitForRequests?: boolean;
};
export interface InputEvent extends Event {
name: "input";
value: string | null;
}
export interface KeyEvent extends Event {
name: "keydown" | "keyup";
// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
value: string;
}
export interface PasteEvent extends Event {
name: "paste";
value: string;
}
export interface ScrollEvent extends Event {
name: "scroll";
value: ScrollValue;
}
export type ScrollValue = {
x: number;
y: number;
};
export type Size = "desktop" | "tablet" | "mobile";
export type Step = {
action: Action;
html: DocSelector;
index: number;
page?: number;
value?: StepValue;
};
export type StepSerialized = {
action: Action;
html: DocSelectorSerialized;
index: number;
page?: number;
};
export type StepValue = string | ScrollValue | null | undefined;
export type Workflow = {
name: string;
size: Size;
steps: Step[];
url: string;
};
export type WorkflowSerialized = {
name: string;
size: Size;
steps: StepSerialized[];
url: string;
};
export * from "./common";
export * from "./event";
export * from "./selector";
export * from "./workflow";
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