@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.
105 lines (104 loc) • 3.06 kB
JSON
{
"name": "@mittwald/react-use-promise",
"version": "4.2.2",
"packageManager": "pnpm@10.17.1",
"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 && pnpm tsc-alias -p tsconfig.json",
"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:vitest && pnpm test:licenses",
"test:build": "pnpm build",
"test:licenses": "pnpm license-check --unknown --failOn 'UNLICENSED;UNKNOWN'",
"test:lint": "eslint . --cache",
"test:tsc": "tsc --noEmit",
"test:vitest": "vitest run"
},
"dependencies": {
"@types/luxon": "3.7.1",
"browser-or-node": "^3.0.0",
"context": "^3.0.33",
"luxon": "~3.7.2",
"minimatch": "^10.0.3",
"object-code": "^1.3.4"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.37.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.1",
"@typescript-eslint/eslint-plugin": "^8.46.0",
"@typescript-eslint/parser": "^8.46.0",
"axios": "^1.12.2",
"eslint": "^9.37.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-prettier": "^5.5.4",
"globals": "^16.4.0",
"happy-dom": "^19.0.2",
"license-checker-rseidelsohn": "^4.4.2",
"prettier": "^3.6.2",
"prettier-plugin-jsdoc": "^1.3.3",
"prettier-plugin-pkgsort": "^0.2.1",
"prettier-plugin-sort-json": "^4.1.1",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-error-boundary": "^6.0.0",
"rimraf": "^6.0.1",
"tsc-alias": "^1.8.16",
"tsd": "^0.33.0",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
},
"peerDependencies": {
"axios": "^1.6.7",
"react": ">=18.3"
},
"peerDependenciesMeta": {
"axios": {
"optional": true
}
}
}