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

nuka-carousel

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuka-carousel - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

16

lib/carousel.js

@@ -27,2 +27,6 @@ 'use strict';

var _ExecutionEnvironment = require('exenv');
var _ExecutionEnvironment2 = _interopRequireWildcard(_ExecutionEnvironment);
'use strict';

@@ -426,4 +430,6 @@

var self = this;
addEvent(window, 'resize', self.onResize);
addEvent(document, 'readystatechange', self.onReadyStateChange);
if (_ExecutionEnvironment2['default'].canUseDOM) {
addEvent(window, 'resize', self.onResize);
addEvent(document, 'readystatechange', self.onReadyStateChange);
}
},

@@ -441,4 +447,6 @@

var self = this;
removeEvent(window, 'resize', self.onResize);
removeEvent(document, 'readystatechange', self.onReadyStateChange);
if (_ExecutionEnvironment2['default'].canUseDOM) {
removeEvent(window, 'resize', self.onResize);
removeEvent(document, 'readystatechange', self.onReadyStateChange);
}
},

@@ -445,0 +453,0 @@

{
"name": "nuka-carousel",
"version": "0.0.10",
"version": "0.0.11",
"description": "Pure React Carousel",
"main": "index.js",
"dependencies": {
"exenv": "^1.1.0",
"object-assign": "^2.0.0",

@@ -8,0 +9,0 @@ "react-tween-state": "0.0.5"

@@ -7,2 +7,3 @@ 'use strict';

import assign from 'object-assign';
import ExecutionEnvironment from 'exenv';

@@ -323,5 +324,5 @@ React.initializeTouchEvents(true);

if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
return 1;
return 1;
} else {
return -1;
return -1;
}

@@ -417,4 +418,6 @@ }

var self = this;
addEvent(window, 'resize', self.onResize);
addEvent(document, 'readystatechange', self.onReadyStateChange);
if (ExecutionEnvironment.canUseDOM) {
addEvent(window, 'resize', self.onResize);
addEvent(document, 'readystatechange', self.onReadyStateChange);
}
},

@@ -432,4 +435,6 @@

var self = this;
removeEvent(window, 'resize', self.onResize);
removeEvent(document, 'readystatechange', self.onReadyStateChange);
if (ExecutionEnvironment.canUseDOM) {
removeEvent(window, 'resize', self.onResize);
removeEvent(document, 'readystatechange', self.onReadyStateChange);
}
},

@@ -436,0 +441,0 @@

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