UNPKG

use-broadcast-ts

Version:

Use the Broadcast Channel API in React easily with hooks or Zustand, and Typescript!

94 lines (93 loc) 2.54 kB
{ "name": "use-broadcast-ts", "version": "2.0.1", "description": "Use the Broadcast Channel API in React easily with hooks or Zustand, and Typescript!", "type": "module", "types": "./dist/index.d.ts", "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { "types": "./dist/index.d.ts", "require": "./dist/index.js", "import": "./dist/index.mjs" }, "sideEffects": false, "scripts": { "build": "rollup -c --bundleConfigAsCjs", "postbuild": "tsc --emitDeclarationOnly", "prepublishOnly": "npm run build", "test": "jest" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx,ts,tsx}": [ "eslint --fix" ] }, "repository": { "type": "git", "url": "git+https://github.com/Romainlg29/use-broadcast.git" }, "keywords": [ "web", "api", "broadcast", "channel", "broadcast-channel", "hooks", "react", "react 18", "zustand", "middleware", "state" ], "author": "Romain Le Gall", "license": "MIT", "bugs": { "url": "https://github.com/Romainlg29/use-broadcast/issues" }, "devDependencies": { "@babel/core": "7.21.4", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-transform-modules-commonjs": "7.21.2", "@babel/plugin-transform-parameters": "7.21.3", "@babel/plugin-transform-runtime": "7.21.4", "@babel/plugin-transform-template-literals": "7.18.9", "@babel/preset-env": "^7.21.4", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.4", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-node-resolve": "^15.0.2", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/jest": "^29.5.1", "@types/node": "^18.15.13", "@types/react": "^18.0.37", "@types/react-dom": "^18.0.11", "@types/react-test-renderer": "^18.0.0", "@typescript-eslint/eslint-plugin": "^5.59.0", "@typescript-eslint/parser": "^5.59.0", "babel-jest": "^29.5.0", "babel-loader": "^9.1.2", "babel-plugin-dynamic-import-node": "^2.3.3", "husky": "^8.0.3", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "lint-staged": "^13.2.1", "prettier": "^2.8.7", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "rollup": "^3.20.7", "typescript": "^5.0.4" }, "homepage": "https://github.com/Romainlg29/use-broadcast", "optionalDependencies": { "zustand": "^4.0.0 || ^5.0.0", "react": ">=18.0" } }