Socket
Socket
Sign inDemoInstall

drag-event-service

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drag-event-service - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

dist/drag-event-service.cjs.js
/*!
* drag-event-service v1.1.1
* drag-event-service v1.1.2
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -4,0 +4,0 @@ * Homepage: undefined

/*!
* drag-event-service v1.1.1
* drag-event-service v1.1.2
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -4,0 +4,0 @@ * Homepage: undefined

/*!
* drag-event-service v1.1.1
* drag-event-service v1.1.2
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -4,0 +4,0 @@ * Homepage: undefined

/*!
* drag-event-service v1.1.1
* drag-event-service v1.1.2
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -4,0 +4,0 @@ * Homepage: undefined

{
"name": "drag-event-service",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/drag-event-service.cjs.js",

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

export const DragEventService:Type_DragEventService
const DragEventService: {
isTouch: (e: MouseOrTouchEvent) => Boolean
on: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void
off: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void
}
export default DragEventService

@@ -10,7 +15,2 @@ export function trackMouseOrTouchPosition(options: Options_trackMouseOrTouchPosition): {

// types
export interface Type_DragEventService{
isTouch: (e: MouseOrTouchEvent) => Boolean
on: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void
off: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void
}
export type EventType = 'start'|'move'|'end'

@@ -17,0 +17,0 @@ export type MouseOrTouchEvent = MouseEvent|TouchEvent

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