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.3.0 to 0.4.0

lib/event.d.ts

34

lib/index.d.ts

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

export declare type Callback<S = void, T = void> = (data?: S) => T;
export declare type Action = "click" | "input" | "scroll";

@@ -6,6 +7,4 @@ export declare type BrowserStep = {

pageId?: number;
scrollDirection?: "down" | "up";
scrollTo?: number;
target: ElementDescriptor;
value?: string;
value?: string | ScrollValue | null;
};

@@ -29,8 +28,21 @@ export declare type ElementDescriptor = {

};
export declare type Job = {
name: string;
size: Size;
steps: BrowserStep[];
url: string;
export interface Event {
action: Action;
isTrusted: boolean;
pageId?: number;
target: ElementDescriptor;
time: number;
}
export interface InputEvent extends Event {
action: "input";
value?: string | null;
}
export declare type ScrollValue = {
x: number;
y: number;
};
export interface ScrollEvent extends Event {
action: "scroll";
value: ScrollValue;
}
export declare type Locator = {

@@ -44,1 +56,7 @@ action: Action;

export declare type Size = "desktop" | "tablet" | "mobile";
export declare type Workflow = {
name: string;
size: Size;
steps: BrowserStep[];
url: string;
};
{
"name": "@qawolf/types",
"description": "qawolf types",
"version": "0.3.0",
"version": "0.4.0",
"license": "BSD-3.0",

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

},
"gitHead": "60a5f4a290786f87cbb7594ae242a5dac02b3819"
"gitHead": "a0a2411b4e62470aea6d556082385f7df832cc80"
}

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

export type Callback<S = void, T = void> = (data?: S) => T;
export type Action = "click" | "input" | "scroll";

@@ -7,6 +9,4 @@

pageId?: number;
scrollDirection?: "down" | "up";
scrollTo?: number;
target: ElementDescriptor;
value?: string;
value?: string | ScrollValue | null;
};

@@ -32,9 +32,25 @@

export type Job = {
name: string;
size: Size;
steps: BrowserStep[];
url: string;
export interface Event {
action: Action;
isTrusted: boolean;
pageId?: number;
target: ElementDescriptor;
time: number;
}
export interface InputEvent extends Event {
action: "input";
value?: string | null;
}
export type ScrollValue = {
x: number;
y: number;
};
export interface ScrollEvent extends Event {
action: "scroll";
value: ScrollValue;
}
export type Locator = {

@@ -49,1 +65,8 @@ action: Action;

export type Size = "desktop" | "tablet" | "mobile";
export type Workflow = {
name: string;
size: Size;
steps: BrowserStep[];
url: string;
};
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