UNPKG

react-global-state-hooks

Version:

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

167 lines (166 loc) 5.14 kB
{ "name": "react-global-state-hooks", "version": "10.0.2", "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" }, "./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", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.3.0", "@types/jest": "^29.5.11", "@types/minimatch": "^6.0.0", "@types/react": "^18.2.45", "@types/react-dom": "^18.2.18", "babel-loader": "^9.1.2", "clean-webpack-plugin": "^4.0.0", "easy-cancelable-promise": "^1.0.1", "jest": "^29.7.0", "jest-environment-jsdom": "^30.0.4", "json-storage-formatter": "^2.0.9", "react": "^18.2.0", "react-dom": "^18.2.0", "ts-jest": "^29.1.1", "ts-loader": "^9.5.1", "tslib": "^2.6.2", "typescript": "^5.8.2", "webpack": "^5.76.3", "webpack-cli": "^5.0.1" }, "peerDependencies": { "json-storage-formatter": "^2.0.9", "react": ">=18.0.0" }, "dependencies": { "react-hooks-global-states": "^9.0.1" } }