UNPKG

evflow

Version:

`EventBus` is a lightweight, TypeScript-first event system with **async task handling**, **retries**, **timeouts**, and **cancellation support**.

161 lines (160 loc) 4.61 kB
{ "name": "evflow", "version": "0.1.28", "description": "`EventBus` is a lightweight, TypeScript-first event system with **async task handling**, **retries**, **timeouts**, and **cancellation support**.", "source": "./src/index.ts", "types": "./dist/types/index.d.ts", "type": "module", "exports": { ".": { "import": { "default": "./dist/esm/modern/index.js" }, "require": { "default": "./dist/cjs/modern/index.js" } } }, "scripts": { "watch": "parcel watch", "build": "parcel build", "coverage": "vitest run --coverage", "format": "prettier --write .", "lint": "eslint . --fix", "prepare": "husky install", "test": "vitest run src", "test:dev": "vitest dev src", "ui": "vitest --ui" }, "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/dafengzhen/evflow.git" }, "homepage": "https://github.com/dafengzhen/evflow#readme", "bugs": { "url": "https://github.com/dafengzhen/evflow/issues" }, "devDependencies": { "@commitlint/cli": "^20.1.0", "@commitlint/config-conventional": "^20.0.0", "@commitlint/prompt-cli": "^20.1.0", "@eslint/js": "^9.37.0", "@parcel/packager-ts": "^2.16.0", "@parcel/transformer-typescript-types": "^2.16.0", "@types/node": "^24.7.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "eslint": "^9.37.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-perfectionist": "^4.15.1", "globals": "^16.4.0", "husky": "^9.1.7", "jsdom": "^27.0.0", "parcel": "^2.16.0", "prettier": "^3.6.2", "typescript": "^5.9.3", "typescript-eslint": "^8.46.0", "vitest": "^3.2.4" }, "dependencies": { "@swc/helpers": "^0.5.17", "browserslist-config-baseline": "^0.5.0" }, "targets": { "modern-esm": { "distDir": "./dist/esm/modern", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": true, "outputFormat": "esmodule" }, "modern-esm-dev": { "distDir": "./dist/esm/modern-dev", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": false, "outputFormat": "esmodule" }, "modern-cjs": { "distDir": "./dist/cjs/modern", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": true, "outputFormat": "commonjs" }, "modern-cjs-dev": { "distDir": "./dist/cjs/modern-dev", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": false, "outputFormat": "commonjs" }, "legacy-esm": { "distDir": "./dist/esm/legacy", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": true, "outputFormat": "esmodule", "engines": { "browsers": ">0.3%, Chrome >= 87, ChromeAndroid >= 87, Edge >= 87, Firefox >= 83, FirefoxAndroid >= 83, Safari >= 14, iOS >= 14" } }, "legacy-esm-dev": { "distDir": "./dist/esm/legacy-dev", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": false, "outputFormat": "esmodule", "engines": { "browsers": ">0.3%, Chrome >= 87, ChromeAndroid >= 87, Edge >= 87, Firefox >= 83, FirefoxAndroid >= 83, Safari >= 14, iOS >= 14" } }, "legacy-cjs": { "distDir": "./dist/cjs/legacy", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": true, "outputFormat": "commonjs", "engines": { "browsers": ">0.3%, Chrome >= 87, ChromeAndroid >= 87, Edge >= 87, Firefox >= 83, FirefoxAndroid >= 83, Safari >= 14, iOS >= 14" } }, "legacy-cjs-dev": { "distDir": "./dist/cjs/legacy-dev", "isLibrary": true, "includeNodeModules": true, "sourceMap": true, "optimize": false, "outputFormat": "commonjs", "engines": { "browsers": ">0.3%, Chrome >= 87, ChromeAndroid >= 87, Edge >= 87, Firefox >= 83, FirefoxAndroid >= 83, Safari >= 14, iOS >= 14" } } }, "keywords": [ "evflow", "event", "flow", "tool", "biz" ], "author": "dafengzhen", "license": "MIT", "lint-staged": { "**/*": [ "npm run format", "npm run lint", "npm run test" ] } }