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

@wethegit/react-gallery

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wethegit/react-gallery - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

77

package.json
{
"name": "@wethegit/react-gallery",
"version": "0.0.1",
"version": "1.0.0",
"description": "A customizable, accessible gallery component for React projects.",
"main": "dist/main.mjs",
"files": [
"dist"
],
"style": "dist/style.css",
"css": "dist/style.css",
"type": "module",
"main": "./dist/react-gallery.umd.cjs",
"module": "./dist/react-gallery.js",
"exports": {
".": {
"import": "./dist/react-gallery.js",
"require": "./dist/react-gallery.umd.cjs"
},
"./style.css": "./dist/style.css"
},
"scripts": {
"build": "webpack --config ./webpack.config.js --mode production"
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"",
"dev": "vite",
"build": "npm run lint:scripts && npm run lint:styles && vite build",
"lint:scripts": "eslint --fix --ext .jsx,js --ignore-path .gitignore .",
"lint:styles": "stylelint src/**/*.{css,scss}"
},
"publishConfig": {
"access": "public"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx}": "eslint --fix",
"*.{css,scss}": "stylelint --fix",
"*": "prettier -w -u"
},
"keywords": [

@@ -26,27 +57,31 @@ "react",

"devDependencies": {
"@babel/core": "~7.19.0",
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
"@babel/preset-env": "~7.19.0",
"@babel/preset-react": "~7.18.6",
"babel-loader": "~8.2.5",
"css-loader": "~6.7.3",
"eslint": "~8.8.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react-swc": "^3.0.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "~8.3.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"mini-css-extract-plugin": "~2.7.2",
"sass": "~1.49.7",
"sass-loader": "~13.2.0",
"stylelint": "~14.5.1",
"stylelint-config-standard-scss": "~3.0.0",
"stylelint-order": "~5.0.0",
"webpack": "~5.74.0",
"webpack-cli": "~4.10.0"
"eslint-plugin-react-refresh": "^0.3.4",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"stylelint": "^15.6.2",
"stylelint-config-recommended": "^12.0.0",
"stylelint-config-standard": "^33.0.0",
"stylelint-config-standard-scss": "^9.0.0",
"stylelint-order": "^6.0.3",
"stylelint-selector-bem-pattern": "^2.1.1",
"vite": "^4.3.2"
},
"peerDependencies": {
"react": "17.0.2"
"react": "17.0.2",
"react-dom": "^17.0.2"
},
"dependencies": {
"@wethegit/react-hooks": "~0.0.8",
"prop-types": "~15.8.1"
"prop-types": "~15.8.1",
"react": "17.0.2",
"react-dom": "^17.0.2"
}
}

@@ -306,8 +306,8 @@ # @wethegit/react-gallery

const GalleryInfo = () => {
const { activeIndex, previousIndex, loop } = useGallery()
const { activeIndex, previouslyActiveIndex, loop } = useGallery()
return (
<p>
The gallery's current index is {activeIndex}, its last index was {previousIndex},
and its <code>loop</code> prop is set to {loop}!
The gallery's current index is {activeIndex}, its last index was {previouslyActiveIndex},
and its <code>loop</code> prop is set to {String(loop)}!
</p>

@@ -314,0 +314,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