use-app-events
Version:
Event system for global communication in vanilla JavaScript and React.
92 lines • 2.42 kB
JSON
{
"name": "use-app-events",
"version": "1.6.16",
"author": "Maksym Marchuk",
"license": "MIT",
"description": "Event system for global communication in vanilla JavaScript and React.",
"module": "./dist/main.js",
"type": "module",
"engines": {
"node": "^18.0.0 || ^20.0.0 || ^22.0.0"
},
"repository": "github:aimtbr/use-app-events",
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@babel/core": "^7.26.10",
"@babel/preset-env": "^7.26.9",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.27.0",
"@eslint/js": "^9.24.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/react": "^19.1.0",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.3.4",
"babel-jest": "^29.7.0",
"babel-preset-vite": "^1.1.3",
"eslint": "^9.24.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react-test-renderer": "^19.1.0",
"ts-jest": "^29.3.1",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.29.1",
"vite": "^6.2.6",
"vite-plugin-dts": "^4.5.3"
},
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/main.js"
},
"./listenForEvents": {
"import": "./dist/lib/listenForEvents.js"
},
"./notifyEventListeners": {
"import": "./dist/lib/notifyEventListeners.js"
},
"./useAppEvents": {
"import": "./dist/lib/useAppEvents"
},
"./options": {
"import": "./dist/lib/options.js"
},
"./heap": {
"import": "./dist/lib/heap.js"
}
},
"keywords": [
"events",
"event",
"event-emitter",
"event-dispatcher",
"react",
"global",
"send",
"receive",
"message",
"communication",
"hook",
"context"
],
"scripts": {
"dev": "vite",
"prod": "vite --mode production",
"build": "pnpm test && pnpm lint && tsc -b && vite build",
"lint": "eslint .",
"test": "jest",
"coverage": "jest --collectCoverage",
"publish:patch": "pnpm version patch && git push origin HEAD && pnpm build && pnpm publish"
}
}