@mittwald/react-use-promise
Version:
Simple and declarative use of Promises in your React components. Observe their state and refresh them in various advanced ways.
106 lines (105 loc) • 3.07 kB
JSON
{
"name": "@mittwald/react-use-promise",
"version": "4.0.0",
"author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
"contributors": [
"Marco Falkenberg <m.falkenberg@mittwald.de>"
],
"type": "module",
"description": "Simple and declarative use of Promises in your React components. Observe their state and refresh them in various advanced ways.",
"keywords": [
"async",
"axios",
"cache",
"fetch",
"hooks",
"http",
"load",
"react",
"react-suspense",
"suspense"
],
"homepage": "https://github.com/mittwald/react-use-promise#readme",
"repository": "github:mittwald/react-use-promise",
"license": "MIT",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js"
},
"./http": {
"types": "./dist/types/http/index.d.ts",
"import": "./dist/esm/http/index.js"
},
"./store": {
"types": "./dist/types/store/index.d.ts",
"import": "./dist/esm/store/index.js"
},
"./package.json": "./package.json"
},
"types": "./dist/types/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "pnpm build:clean && pnpm tsc",
"build:clean": "rimraf dist",
"format": "prettier --write '**/*.{ts,tsx,yaml,yml,json,md,mdx}'",
"license-check": "license-checker-rseidelsohn $*",
"test": "pnpm test:tsc && pnpm test:lint && pnpm test:build && pnpm test:jest && pnpm test:licenses",
"test:build": "pnpm build",
"test:jest": "jest",
"test:licenses": "pnpm license-check --unknown --failOn 'UNLICENSED;UNKNOWN'",
"test:lint": "eslint . --cache",
"test:tsc": "tsc --noEmit"
},
"dependencies": {
"@types/luxon": "3.6.2",
"browser-or-node": "^3.0.0",
"luxon": "~3.6.1",
"minimatch": "^10.0.3",
"object-code": "^1.3.3"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.29.0",
"@jest/globals": "^30.0.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^30.0.0",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@typescript-eslint/eslint-plugin": "^8.34.1",
"@typescript-eslint/parser": "^8.34.1",
"axios": "^1.10.0",
"eslint": "^9.29.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-prettier": "^5.5.0",
"globals": "^16.2.0",
"jest": "^30.0.0",
"jest-environment-jsdom": "^30.0.0",
"license-checker-rseidelsohn": "^4.4.2",
"prettier": "^3.5.3",
"prettier-plugin-jsdoc": "^1.3.2",
"prettier-plugin-pkgsort": "^0.2.1",
"prettier-plugin-sort-json": "^4.1.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-error-boundary": "^5.0.0",
"rimraf": "^6.0.1",
"ts-jest": "^29.4.0",
"tsd": "^0.32.0",
"typescript": "^5.8.3"
},
"peerDependencies": {
"axios": "^1.6.7",
"react": ">=19.0"
},
"peerDependenciesMeta": {
"axios": {
"optional": true
}
}
}