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.9.0-alpha.6 to 0.9.0-beta.0

14

lib/event.d.ts
import { DocSelector } from "./selector";
export interface Event {
export interface ElementEvent {
isTrusted: boolean;
name: EventName;
name: ElementEventName;
page: number;

@@ -9,16 +9,16 @@ target: DocSelector;

}
export declare type EventName = "click" | "input" | "keydown" | "keyup" | "paste" | "scroll";
export interface InputEvent extends Event {
export declare type ElementEventName = "click" | "input" | "keydown" | "keyup" | "paste" | "scroll";
export interface InputEvent extends ElementEvent {
name: "input";
value: string | null;
}
export interface KeyEvent extends Event {
export interface KeyEvent extends ElementEvent {
name: "keydown" | "keyup";
value: string;
}
export interface PasteEvent extends Event {
export interface PasteEvent extends ElementEvent {
name: "paste";
value: string;
}
export interface ScrollEvent extends Event {
export interface ScrollEvent extends ElementEvent {
name: "scroll";

@@ -25,0 +25,0 @@ value: ScrollValue;

@@ -6,2 +6,3 @@ import { Action } from "./common";

action: Action;
canChange: boolean;
html: DocSelector;

@@ -8,0 +9,0 @@ index: number;

{
"name": "@qawolf/types",
"description": "qawolf types",
"version": "0.9.0-alpha.6",
"version": "0.9.0-beta.0",
"license": "BSD-3.0",

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

},
"gitHead": "1b4c2f7ab7dd08a386cbea5492f97960f25c0175"
"gitHead": "6bab686a24263f4a2c60231dcc350a3634eb5477"
}
import { DocSelector } from "./selector";
export interface Event {
export interface ElementEvent {
isTrusted: boolean;
name: EventName;
name: ElementEventName;
page: number;

@@ -11,3 +11,3 @@ target: DocSelector;

export type EventName =
export type ElementEventName =
| "click"

@@ -20,3 +20,3 @@ | "input"

export interface InputEvent extends Event {
export interface InputEvent extends ElementEvent {
name: "input";

@@ -26,3 +26,3 @@ value: string | null;

export interface KeyEvent extends Event {
export interface KeyEvent extends ElementEvent {
name: "keydown" | "keyup";

@@ -33,3 +33,3 @@ // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

export interface PasteEvent extends Event {
export interface PasteEvent extends ElementEvent {
name: "paste";

@@ -39,3 +39,3 @@ value: string;

export interface ScrollEvent extends Event {
export interface ScrollEvent extends ElementEvent {
name: "scroll";

@@ -42,0 +42,0 @@ value: ScrollValue;

@@ -7,2 +7,4 @@ import { Action } from "./common";

action: Action;
// whether or not it may change based on future events
canChange: boolean;
html: DocSelector;

@@ -9,0 +11,0 @@ index: number;

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