react-image-lightbox
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -1,54 +0,1 @@ | ||
v2.1.0 - Thu, 28 Apr 2016 15:02:18 GMT | ||
-------------------------------------- | ||
- | ||
v2.0.0 - Thu, 14 Apr 2016 05:56:21 GMT | ||
-------------------------------------- | ||
- | ||
v1.1.2 - Tue, 05 Apr 2016 01:33:58 GMT | ||
-------------------------------------- | ||
- | ||
v1.1.1 - Tue, 22 Mar 2016 07:53:55 GMT | ||
-------------------------------------- | ||
- | ||
v1.1.0 - Wed, 16 Mar 2016 07:54:02 GMT | ||
-------------------------------------- | ||
- | ||
v1.0.5 - Tue, 16 Feb 2016 11:10:44 GMT | ||
-------------------------------------- | ||
- | ||
v1.0.4 - Mon, 15 Feb 2016 06:45:15 GMT | ||
-------------------------------------- | ||
- | ||
v1.0.3 - Mon, 15 Feb 2016 00:55:49 GMT | ||
-------------------------------------- | ||
- | ||
v1.0.2 - Mon, 15 Feb 2016 00:07:49 GMT | ||
-------------------------------------- | ||
- | ||
See the GitHub [Releases](https://github.com/fritz-c/react-image-lightbox/releases) for information on updates. |
{ | ||
"name": "react-image-lightbox", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"description": "A lightbox component for React.js", | ||
"scripts": { | ||
"start": "node_modules/.bin/gulp dev", | ||
"prepublish": "node_modules/.bin/gulp clean && node_modules/.bin/gulp build" | ||
"build": "npm run lint && npm run build:demo && npm run build:umd", | ||
"build:demo": "npm run clean:demo && cross-env NODE_ENV=production webpack --config webpack.config.demo.babel.js --bail", | ||
"build:umd": "npm run clean:umd && cross-env NODE_ENV=production webpack --config webpack.config.umd.babel.js --bail", | ||
"clean": "npm run clean:demo && npm run clean:umd", | ||
"clean:demo": "rimraf build", | ||
"clean:umd": "rimraf dist/umd", | ||
"start": "cross-env NODE_ENV=development webpack-dev-server --hot --inline --config webpack.config.dev.babel.js", | ||
"test": "webpack", | ||
"lint": "eslint src", | ||
"deploy": "npm run build && gh-pages -d build", | ||
"prepublish": "npm run lint && npm run build:umd" | ||
}, | ||
"main": "lib/ReactImageLightbox.js", | ||
"main": "dist/umd/react-image-lightbox.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
@@ -14,3 +26,3 @@ "type": "git", | ||
}, | ||
"homepage": "https://github.com/fritz-c/react-image-lightbox", | ||
"homepage": "https://fritz-c.github.io/react-image-lightbox", | ||
"bugs": "https://github.com/fritz-c/react-image-lightbox/issues", | ||
@@ -22,13 +34,37 @@ "authors": [ | ||
"dependencies": { | ||
"radium": "^0.17.1" | ||
"react-modal": "^1.4.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.0.1" | ||
"react": "^15.0.0", | ||
"react-dom": "^15.0.0" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.9.1", | ||
"react": "^15.0.1", | ||
"react-component-gulp-tasks": "^0.7.7", | ||
"react-dom": "^15.0.1", | ||
"rf-release": "^0.4.0" | ||
"autoprefixer": "^6.3.7", | ||
"babel-cli": "^6.10.1", | ||
"babel-core": "^6.10.4", | ||
"babel-eslint": "^6.1.2", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-transform-object-rest-spread": "^6.8.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-react": "^6.11.1", | ||
"cross-env": "^2.0.0", | ||
"css-loader": "^0.23.1", | ||
"eslint": "^2.9.0", | ||
"eslint-config-blue-hour": "0.0.2", | ||
"eslint-plugin-import": "^1.10.2", | ||
"eslint-plugin-jsx-a11y": "^1.5.5", | ||
"eslint-plugin-react": "^5.2.2", | ||
"file-loader": "^0.9.0", | ||
"gh-pages": "^0.11.0", | ||
"html-webpack-plugin": "^2.22.0", | ||
"node-sass": "^3.8.0", | ||
"postcss-loader": "^0.9.1", | ||
"react": "^15.2.0", | ||
"react-dom": "^15.2.0", | ||
"react-hot-loader": "^1.3.0", | ||
"rimraf": "^2.5.3", | ||
"sass-loader": "^4.0.0", | ||
"style-loader": "^0.13.1", | ||
"webpack": "^1.13.1", | ||
"webpack-dev-server": "^1.14.1" | ||
}, | ||
@@ -40,8 +76,3 @@ "keywords": [ | ||
"lightbox" | ||
], | ||
"browserify-shim": { | ||
"react": "global:React", | ||
"react-dom": "global:ReactDOM", | ||
"radium": "global:Radium" | ||
} | ||
] | ||
} |
@@ -14,3 +14,2 @@ # React Image Lightbox | ||
- Image preloading for smoother viewing | ||
- Few dependencies | ||
- No external CSS | ||
@@ -100,1 +99,25 @@ | ||
clickOutsideToClose | bool | `true` | | When true, clicks outside of the image close the lightbox | ||
## Contributing | ||
After cloning the repository and running `npm install` inside, you can use the following commands to develop and build the project. | ||
```sh | ||
# Starts a webpack dev server that hosts a demo page with the lightbox. | ||
# It uses react-hot-loader so changes are reflected on save. | ||
npm start | ||
# Lints the code with eslint and my custom rules. | ||
npm run lint | ||
# Lints and builds the code, placing the result in the dist directory. | ||
# This build is necessary to reflect changes if you're | ||
# `npm link`-ed to this repository from another local project. | ||
npm run build | ||
``` | ||
Pull requests are welcome! | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
122
1
200530
3
28
6
106
2
1
+ Addedreact-modal@^1.4.0
+ Addedelement-class@0.2.2(transitive)
+ Addedexenv@1.2.0(transitive)
+ Addedlodash.assign@4.2.0(transitive)
+ Addedreact-dom@15.7.0(transitive)
+ Addedreact-dom-factories@1.0.2(transitive)
+ Addedreact-modal@1.9.7(transitive)
- Removedradium@^0.17.1
- Removedarray-find@1.0.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbowser@1.9.4(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedexenv@1.2.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinline-style-prefix-all@2.0.2(transitive)
- Removedinline-style-prefixer@1.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedradium@0.17.2(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)