UNPKG

react-hooks-global-states

Version:

This is a package to easily handling global-state across your react-components using hooks.

166 lines (165 loc) 5.2 kB
{ "name": "react-hooks-global-states", "version": "8.2.5", "description": "This is a package to easily handling global-state across your react-components using hooks.", "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" }, "./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", "lint": "eslint src --ext .js,.jsx,.ts,.tsx --max-warnings=0", "lint:fix": "eslint --fix src --ext .js,.jsx,.ts,.tsx --max-warnings=0", "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-hooks-global-states.git" }, "keywords": [ "preact", "react", "redux", "state", "useState", "useContext", "global-state", "context", "typescript", "react-native" ], "author": "Johnny Quesada", "license": "MIT", "bugs": { "url": "https://github.com/johnny-quesada-developer/react-hooks-global-states/issues" }, "homepage": "https://github.com/johnny-quesada-developer/react-hooks-global-states#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.1", "@typescript-eslint/parser": "^4.9.1", "babel-loader": "^9.1.2", "clean-webpack-plugin": "^4.0.0", "easy-cancelable-promise": "^1.0.1", "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-test-renderer": "^17.0.1", "ts-jest": "^26.4.4", "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": ">=17.0.0" }, "peerDependenciesMeta": { "react": { "optional": false }, "json-storage-formatter": { "optional": false } }, "dependencies": {} }