New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-image-gallery

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-gallery - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

13

build/image-gallery.js

@@ -89,7 +89,16 @@ 'use strict';

}
window.addEventListener('resize', this._handleResize);
if (window.addEventListener) {
window.addEventListener('resize', this._handleResize);
} else if (window.attachEvent) {
window.attachEvent('onresize', this._handleResize);
}
},
componentWillUnmount: function componentWillUnmount() {
window.removeEventListener('resize', this._handleResize);
if (window.removeEventListener) {
window.removeEventListener('resize', this._handleResize);
} else if (window.detachEvent) {
window.detachEvent('onresize', this._handleResize);
}
if (this._intervalId) {

@@ -96,0 +105,0 @@ window.clearInterval(this._intervalId);

@@ -13,2 +13,4 @@ 'use strict';

var source = require('vinyl-source-stream');
var streamify = require('gulp-streamify');
var uglify = require('gulp-uglify');
var watchify = require('watchify');

@@ -40,2 +42,3 @@

.pipe(source('example.js'))
.pipe(streamify(uglify()))
.pipe(gulp.dest('./example/'))

@@ -42,0 +45,0 @@ .pipe(livereload());

4

package.json
{
"name": "react-image-gallery",
"version": "0.4.2",
"version": "0.4.3",
"description": "Image gallery component for React.JS",

@@ -39,2 +39,4 @@ "main": "./build/image-gallery",

"gulp-sass": "^1.3.3",
"gulp-streamify": "^1.0.0",
"gulp-uglify": "^1.2.0",
"react": "^0.12.2",

@@ -41,0 +43,0 @@ "vinyl-source-stream": "^1.0.0",

@@ -86,7 +86,16 @@ 'use strict';

}
window.addEventListener('resize', this._handleResize);
if (window.addEventListener) {
window.addEventListener('resize', this._handleResize);
} else if (window.attachEvent) {
window.attachEvent('onresize', this._handleResize);
}
},
componentWillUnmount() {
window.removeEventListener('resize', this._handleResize);
if (window.removeEventListener) {
window.removeEventListener('resize', this._handleResize);
} else if (window.detachEvent) {
window.detachEvent('onresize', this._handleResize);
}
if (this._intervalId) {

@@ -93,0 +102,0 @@ window.clearInterval(this._intervalId);

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