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

@interactjs/core

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/core - npm Package Compare versions

Comparing version 1.4.14 to 1.5.0

4

interactionFinder.js

@@ -86,3 +86,3 @@ import * as dom from '@interactjs/utils/domUtils';

// isn't gesturable
if (target && !target.options.gesture.enabled) {
if (target && !(target.options.gesture && target.options.gesture.enabled)) {
continue;

@@ -106,2 +106,2 @@ }

export default finder;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb25GaW5kZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdGlvbkZpbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssR0FBRyxNQUFNLDRCQUE0QixDQUFBO0FBWWpELE1BQU0sTUFBTSxHQUFHO0lBQ2IsV0FBVyxFQUFFLENBQUUsa0JBQWtCLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSxNQUFNLENBQUU7SUFFdkUsTUFBTSxDQUFFLE9BQU87UUFDYixLQUFLLE1BQU0sTUFBTSxJQUFJLE1BQU0sQ0FBQyxXQUFXLEVBQUU7WUFDdkMsTUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFBO1lBRTNDLElBQUksV0FBVyxFQUFFO2dCQUNmLE9BQU8sV0FBVyxDQUFBO2FBQ25CO1NBQ0Y7SUFDSCxDQUFDO0lBRUQsOENBQThDO0lBQzlDLGdCQUFnQixDQUFFLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFpQjtRQUM3RSxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ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Glzbid0IGdlc3R1cmFibGVcbiAgICAgICAgaWYgKHRhcmdldCAmJiAhdGFyZ2V0Lm9wdGlvbnMuZ2VzdHVyZS5lbmFibGVkKSB7XG4gICAgICAgICAgY29udGludWVcbiAgICAgICAgfVxuICAgICAgfVxuICAgICAgLy8gbWF4aW11bSBvZiAyIHBvaW50ZXJzIHBlciBpbnRlcmFjdGlvblxuICAgICAgZWxzZSBpZiAoaW50ZXJhY3Rpb24ucG9pbnRlcnMubGVuZ3RoID49IDIpIHtcbiAgICAgICAgY29udGludWVcbiAgICAgIH1cblxuICAgICAgaWYgKCFpbnRlcmFjdGlvbi5pbnRlcmFjdGluZygpICYmIChwb2ludGVyVHlwZSA9PT0gaW50ZXJhY3Rpb24ucG9pbnRlclR5cGUpKSB7XG4gICAgICAgIHJldHVybiBpbnRlcmFjdGlvblxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBudWxsXG4gIH0sXG59XG5cbmZ1bmN0aW9uIGhhc1BvaW50ZXJJZCAoaW50ZXJhY3Rpb246IEludGVyYWN0LkludGVyYWN0aW9uLCBwb2ludGVySWQ6IG51bWJlcikge1xuICByZXR1cm4gaW50ZXJhY3Rpb24ucG9pbnRlcnMuc29tZSgoeyBpZCB9KSA9PiBpZCA9PT0gcG9pbnRlcklkKVxufVxuXG5leHBvcnQgZGVmYXVsdCBmaW5kZXJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb25GaW5kZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdGlvbkZpbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssR0FBRyxNQUFNLDRCQUE0QixDQUFBO0FBWWpELE1BQU0sTUFBTSxHQUFHO0lBQ2IsV0FBVyxFQUFFLENBQUUsa0JBQWtCLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSx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nRlcmFjdGlvbjogSW50ZXJhY3QuSW50ZXJhY3Rpb24sIHBvaW50ZXJJZDogbnVtYmVyKSB7XG4gIHJldHVybiBpbnRlcmFjdGlvbi5wb2ludGVycy5zb21lKCh7IGlkIH0pID0+IGlkID09PSBwb2ludGVySWQpXG59XG5cbmV4cG9ydCBkZWZhdWx0IGZpbmRlclxuIl19
{
"name": "@interactjs/core",
"version": "1.4.14",
"version": "1.5.0",
"peerDependencies": {
"@interactjs/dev-tools": "1.4.14",
"@interactjs/utils": "1.4.14"
"@interactjs/dev-tools": "1.5.0",
"@interactjs/utils": "1.5.0"
},
"devDependencies": {
"@interactjs/actions": "1.4.14",
"@interactjs/auto-start": "1.4.14"
"@interactjs/actions": "1.5.0",
"@interactjs/auto-start": "1.5.0"
},

@@ -12,0 +12,0 @@ "publishConfig": {

@@ -89,2 +89,3 @@ import { MockCoords } from '@interactjs/utils/pointerUtils';

readonly pointerType: any;
readonly buttons: any;
} & Touch & MouseEvent) | ({

@@ -103,2 +104,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & Touch & PointerEvent) | ({

@@ -117,2 +119,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & Touch & TouchEvent) | ({

@@ -131,2 +134,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & Touch & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({

@@ -145,2 +149,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & MouseEvent) | ({

@@ -159,2 +164,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & MouseEvent & PointerEvent) | ({

@@ -173,2 +179,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & MouseEvent & TouchEvent) | ({

@@ -187,2 +194,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & MouseEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({

@@ -201,2 +209,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & PointerEvent & MouseEvent) | ({

@@ -215,2 +224,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & PointerEvent) | ({

@@ -229,2 +239,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & PointerEvent & TouchEvent) | ({

@@ -243,2 +254,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & PointerEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({

@@ -257,2 +269,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & MouseEvent) | ({

@@ -271,2 +284,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & PointerEvent) | ({

@@ -285,2 +299,3 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & TouchEvent) | ({

@@ -299,4 +314,5 @@ coords: MockCoords;

readonly pointerType: any;
readonly buttons: any;
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any>);
};
export declare function timeout(n: any): Promise<unknown>;
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