UNPKG

react-global-state-hooks

Version:

This is a package to easily handling global-state across your react components No-redux, No-context.

177 lines (176 loc) 5.5 kB
{ "name": "react-global-state-hooks", "version": "9.2.4", "description": "This is a package to easily handling global-state across your react components No-redux, No-context.", "main": "./bundle.js", "types": "./index.d.ts", "sideEffects": false, "exports": { ".": { "import": "./bundle.js", "require": "./bundle.js", "types": "./index.d.ts" }, "./createContext": { "import": "./createContext.js", "require": "./createContext.js", "types": "./createContext.d.ts" }, "./GlobalStore": { "import": "./GlobalStore.js", "require": "./GlobalStore.js", "types": "./GlobalStore.d.ts" }, "./GlobalStoreAbstract": { "import": "./GlobalStoreAbstract.js", "require": "./GlobalStoreAbstract.js", "types": "./GlobalStoreAbstract.d.ts" }, "./createCustomGlobalState": { "import": "./createCustomGlobalState.js", "require": "./createCustomGlobalState.js", "types": "./createCustomGlobalState.d.ts" }, "./createGlobalState": { "import": "./createGlobalState.js", "require": "./createGlobalState.js", "types": "./createGlobalState.d.ts" }, "./types": { "import": "./types.js", "require": "./types.js", "types": "./types.d.ts" }, "./getLocalStorageItem": { "import": "./getLocalStorageItem.js", "require": "./getLocalStorageItem.js", "types": "./getLocalStorageItem.d.ts" }, "./setLocalStorageItem": { "import": "./setLocalStorageItem.js", "require": "./setLocalStorageItem.js", "types": "./setLocalStorageItem.d.ts" }, "./isRecord": { "import": "./isRecord.js", "require": "./isRecord.js", "types": "./isRecord.d.ts" }, "./shallowCompare": { "import": "./shallowCompare.js", "require": "./shallowCompare.js", "types": "./shallowCompare.d.ts" }, "./throwWrongKeyOnActionCollectionConfig": { "import": "./throwWrongKeyOnActionCollectionConfig.js", "require": "./throwWrongKeyOnActionCollectionConfig.js", "types": "./throwWrongKeyOnActionCollectionConfig.d.ts" }, "./uniqueId": { "import": "./uniqueId.js", "require": "./uniqueId.js", "types": "./uniqueId.d.ts" }, "./uniqueSymbol": { "import": "./uniqueSymbol.js", "require": "./uniqueSymbol.js", "types": "./uniqueSymbol.d.ts" }, "./useStableState": { "import": "./useStableState.js", "require": "./useStableState.js", "types": "./useStableState.d.ts" }, "./generateStackHash": { "import": "./generateStackHash.js", "require": "./generateStackHash.js", "types": "./generateStackHash.d.ts" } }, "files": [ "*.js", "*.d.ts" ], "scripts": { "test:debug": "node --inspect-brk node_modules/.bin/jest --watch --runInBand", "test:quick": "jest --maxWorkers=4 -c --no-watchman -u", "test:coverage": "jest --maxWorkers=4 -c --colors --no-watchman --verbose --coverage", "build": "yarn clean && webpack --config webpack.config.js", "prepare": "npm run build", "version": "npm run format && git add -A src", "postversion": "git push && git push --tags", "clean": "find . -maxdepth 1 -type f \\( -name '*.js' -o -name '*.d.ts' \\) ! -name 'webpack.config.js' -exec rm {} +" }, "repository": { "type": "git", "url": "git+https://github.com/johnny-quesada-developer/react-global-state-hooks.git" }, "keywords": [ "react", "redux", "state", "useState", "useContext", "global-state", "context", "typescript", "nextjs", "next.js", "next", "react-hooks", "hooks", "react-hooks-global-states", "react-global-state-hooks", "react-global-state", "react-global-hooks", "react-global", "preact" ], "author": "Johnny Quesada", "license": "MIT", "bugs": { "url": "https://github.com/johnny-quesada-developer/react-global-state-hooks/issues" }, "homepage": "https://github.com/johnny-quesada-developer/react-global-state-hooks#readme", "devDependencies": { "@babel/core": "^7.21.3", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/plugin-transform-modules-commonjs": "^7.21.2", "@babel/preset-env": "^7.20.2", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.0", "@types/jest": "^26.0.17", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@types/react-test-renderer": "^17.0.0", "@typescript-eslint/eslint-plugin": "^4.9.0", "@typescript-eslint/parser": "^4.9.0", "babel-loader": "^9.1.2", "cancelable-promise-jq": "^1.1.3", "clean-webpack-plugin": "^4.0.0", "eslint": "^7.15.0", "eslint-config-airbnb": "^18.2.1", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "jest": "^26.6.3", "json-storage-formatter": "^2.0.9", "react": "^17.0.0", "react-dom": ">=17.0.0", "react-test-renderer": "^17.0.1", "ts-jest": "^26.4.4", "ts-loader": "^9.4.2", "typescript": "^5.3.3", "webpack": "^5.76.3", "webpack-cli": "^5.0.1" }, "peerDependencies": { "json-storage-formatter": "^2.0.9", "react": ">=17.0.0" }, "dependencies": { "react-hooks-global-states": "^8.2.3" } }