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

@jalik/react-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jalik/react-lightbox - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

CHANGELOG.md
# Changelog
## v1.0.2
- Fixes opening of images with URL containing one or more spaces
- Updates dependencies
## v1.0.1

@@ -4,0 +8,0 @@ - Fixes closing of light box when the main image is clicked

4

dist/components/LightBoxWrapper.js

@@ -36,5 +36,5 @@ "use strict";

if (event.target.nodeName === 'IMG') {
var activeIndex = items ? items.map(function (item) {
var activeIndex = items.map(function (item) {
return item.src;
}).indexOf(event.target.src) : 0;
}).indexOf(decodeURIComponent(event.target.src));

@@ -41,0 +41,0 @@ if (activeIndex !== -1) {

@@ -34,3 +34,3 @@ "use strict";

*/
var LightBoxContext = (0, _react.createContext)({});
var LightBoxContext = /*#__PURE__*/(0, _react.createContext)({});
exports.LightBoxContext = LightBoxContext;

@@ -37,0 +37,0 @@

{
"name": "@jalik/react-lightbox",
"version": "1.0.1",
"version": "1.0.2",
"description": "Light box component for React",

@@ -34,23 +34,23 @@ "main": "./dist/index.js",

"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/plugin-proposal-export-default-from": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"@babel/core": "^7.11.4",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"del": "^5.1.0",
"eslint": "^7.2.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"eslint": "^7.7.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-eslint": "^6.0.0",
"jest": "^26.0.1",
"jest": "^26.4.2",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"typescript": "^3.9.5"
"typescript": "^4.0.2"
},

@@ -57,0 +57,0 @@ "peerDependencies": {

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