UNPKG

swr-openapi

Version:
89 lines 2.11 kB
{ "name": "swr-openapi", "description": "Generate SWR hooks from OpenAPI schemas", "version": "5.3.0", "author": { "name": "Hunter Tunnicliff", "email": "hunter@tunnicliff.co" }, "license": "MIT", "type": "module", "main": "./dist/index.mjs", "exports": { ".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs", "default": "./dist/index.mjs" }, "./package.json": "./package.json" }, "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/openapi-ts/openapi-typescript", "directory": "packages/swr-openapi" }, "keywords": [ "swr", "openapi", "rest", "generator", "client", "fetch" ], "funding": { "type": "buymeacoffee", "url": "https://buymeacoffee.com/htunnicliff" }, "bugs": { "url": "https://github.com/openapi-ts/openapi-typescript/issues" }, "files": [ "dist", "src", "!src/__test__", "LICENSE", "README.md" ], "peerDependencies": { "react": "18 || 19", "swr": "2", "typescript": "^5.x", "openapi-fetch": "0.14.0", "openapi-typescript": "7.8.0" }, "peerDependenciesMeta": { "openapi-typescript": { "optional": true } }, "dependencies": { "type-fest": "^4.40.1", "openapi-typescript-helpers": "^0.0.15" }, "devDependencies": { "@types/lodash": "^4.17.16", "@types/react": "^18.3.20", "husky": "^9.1.7", "lint-staged": "15.5.2", "lodash": "^4.17.21", "react": "^18.3.1", "swr": "^2.3.3", "typescript": "^5.8.3", "openapi-fetch": "^0.14.0", "openapi-typescript": "^7.8.0" }, "scripts": { "build": "unbuild", "dev": "vitest --typecheck", "format": "biome format . --write", "lint": "pnpm run lint:js && pnpm run lint:ts", "lint:js": "biome check .", "lint:ts": "tsc --noEmit", "test": "pnpm run test:js && pnpm run test:exports", "test:js": "vitest run --typecheck", "test:exports": "pnpm run build && attw --pack .", "prepublish": "pnpm run build", "version": "pnpm run build" } }