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

react-aim

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-aim - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

4

lib/source.js

@@ -201,3 +201,3 @@ 'use strict';

value: function triggerMouseEnter() {
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseEnter === 'function') {
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseEnter === 'function') {
this.spec.mouseEnter(this.refs.wrappedComponent.props, this.refs.wrappedComponent);

@@ -209,3 +209,3 @@ }

value: function triggerMouseLeave() {
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseLeave === 'function') {
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseLeave === 'function') {
this.spec.mouseLeave(this.refs.wrappedComponent.props, this.refs.wrappedComponent);

@@ -212,0 +212,0 @@ }

@@ -182,3 +182,3 @@ 'use strict';

this.aiming = true;
if (typeof this.spec !== 'undefined' && typeof this.spec.aimStart === 'function') {
if (_typeof(this.spec) === 'object' && typeof this.spec.aimStart === 'function') {
this.spec.aimStart(this.refs.wrappedComponent.props, this.refs.wrappedComponent, distance);

@@ -196,3 +196,3 @@ }

if (typeof this.spec !== 'undefined' && typeof this.spec.aimMove === 'function') {
if (_typeof(this.spec) === 'object' && typeof this.spec.aimMove === 'function') {
this.spec.aimMove(this.refs.wrappedComponent.props, this.refs.wrappedComponent, distance);

@@ -219,3 +219,3 @@ }

_this3.aiming = false;
if (typeof _this3.spec !== 'undefined' && typeof _this3.spec.aimStop === 'function') {
if (_typeof(_this3.spec) === 'object' && typeof _this3.spec.aimStop === 'function') {
if (_this3.refs.wrappedComponent) {

@@ -242,3 +242,3 @@ _this3.spec.aimStop(_this3.refs.wrappedComponent.props, _this3.refs.wrappedComponent);

value: function triggerMouseEnter() {
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseEnter === 'function') {
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseEnter === 'function') {
this.spec.mouseEnter(this.refs.wrappedComponent.props, this.refs.wrappedComponent);

@@ -250,3 +250,3 @@ }

value: function triggerMouseLeave() {
if (typeof this.spec !== 'undefined' && typeof this.spec.mouseLeave === 'function') {
if (_typeof(this.spec) === 'object' && typeof this.spec.mouseLeave === 'function') {
this.spec.mouseLeave(this.refs.wrappedComponent.props, this.refs.wrappedComponent);

@@ -253,0 +253,0 @@ }

{
"name": "react-aim",
"author": "Gabriel Bull",
"version": "0.1.6",
"version": "0.1.7",
"description": "Determine the cursor aim for triggering mouse events.",

@@ -6,0 +6,0 @@ "main": "./lib/index.js",

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