@snappmarket/config
Advanced tools
Comparing version
{ | ||
"name": "@snappmarket/config", | ||
"private": false, | ||
"version": "0.2.6", | ||
"version": "0.2.10-alpha.1", | ||
"author": "Jafar Rezaei (SayJeyHi) <jafar.rezaei.ard@gmail.com>", | ||
"main": "./dist/index.js", | ||
"module": "./dist/esm/index.js", | ||
"unpkg": "./dist/umd/hooks.production.js", | ||
"scripts": { | ||
"test": "cross-env BABEL_ENV=test jest --config ../../jest.config.js", | ||
"test:coverage": "cross-env BABEL_ENV=test jest --config ../../jest.config.js --coverage=true", | ||
"build": "yarn build:cjs && yarn build:esm && yarn build:es && yarn build:umd && yarn build:copy-files", | ||
"build:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs babel --config-file ../../babel.config.js ./packages --out-dir ./dist", | ||
"build:esm": "cross-env NODE_ENV=production BABEL_ENV=esm babel --config-file ../../babel.config.js ./packages --out-dir ./dist/esm", | ||
"build:es": "cross-env NODE_ENV=production BABEL_ENV=es babel --config-file ../../babel.config.js ./packages --out-dir ./dist/es", | ||
"build:umd": "cross-env BABEL_ENV=production-umd rollup -c", | ||
"build:copy-files": "node ../../scripts/copy-file/packages-copy.js", | ||
"release": "node ../../scripts/release/release-parents.js", | ||
"prebuild": "rimraf ./dist", | ||
"start": "rollup -c -w", | ||
"prepare": "yarn run build", | ||
"predeploy": "cd example && yarn install && yarn run build", | ||
"deploy": "gh-pages -d example/build" | ||
"main": "./index.js", | ||
"module": "./esm/index.js", | ||
"unpkg": "./dist/umd/config.production.js", | ||
"peerDependencies": { | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"styled-components": "^4.2.0" | ||
}, | ||
@@ -58,2 +47,2 @@ "engines": { | ||
"gitHead": "36dda3b65acbad094685d04eb869ce590c65c2b6" | ||
} | ||
} |
@@ -1,8 +0,8 @@ | ||
# Our apps re-usable hooks | ||
> ⚓ hooks are good, making custom re-usable ones is better | ||
# Snappmarket config | ||
> 🧮 babel, eslint, theme and etc | ||
[](https://www.npmjs.com/package/@snappmarket/hooks) | ||
[](http://www.npmtrends.com/@snappmarket/hooks) | ||
[](https://www.npmjs.com/package/@snappmarket/config) | ||
[](http://www.npmtrends.com/@snappmarket/config) | ||
[](http://makeapullrequest.com) | ||
[](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/useDidUpdateEffect/blob/master/LICENSE.md) | ||
[](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/config/blob/master/LICENSE.md) | ||
@@ -12,6 +12,2 @@ [](https://github.com/snappmarket/frontend-toolbox/watchers) | ||
<p align="center"> | ||
<img src="./logo.png" alt="react hooks" /> | ||
</p> | ||
---- | ||
@@ -21,29 +17,6 @@ | ||
```bash | ||
npm i @snappmarket/hooks | ||
npm i @snappmarket/config | ||
``` | ||
## Hooks Found Here | ||
| Hook Name | Description | | ||
| ------------------------------------------------- | ---------------------------------------------------------------- | | ||
| [useDebounce](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useDebounce) | 🔂 Change rapidly, do once | | ||
| [useDidUpdateEffect](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useDidUpdateEffect) | 🧵 Do not worry about render phase effect calls | | ||
| [useFocus](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useFocus) | 😵 Focus on every thing you want | | ||
| [useForceUpdate](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useForceUpdate) | 👿 force update component | | ||
| [useGeoLocation](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useGeoLocation) | 🗺 easily deal with navigator location API | | ||
| [useRouteChange](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useRouteChange) | 🏹 detect when react router dom route changes | | ||
| [useTimer](https://github.com/snappmarket/frontend-toolbox/tree/master/packages/hooks/packages/useTimer) | ⏱ easily handle timing | | ||
## usage | ||
```javascript | ||
import { HOOK_NAME } from '@snappmarket/hooks'; | ||
const MyComponenet = props => { | ||
// use hook here | ||
}; | ||
``` | ||
--- | ||
@@ -50,0 +23,0 @@ #### The MIT License (MIT) |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
47
147.37%609
46.75%22012
-7.07%3
Infinity%3
50%32
-45.76%3
Infinity%1
Infinity%