UNPKG

@nuxx/torn-fetch

Version:

provides a wrapper around openapi-fetch that throws an error when Torn's API returns an error

71 lines (70 loc) 1.83 kB
{ "name": "@nuxx/torn-fetch", "version": "1.1.1", "packageManager": "bun@1.3.5", "description": "provides a wrapper around openapi-fetch that throws an error when Torn's API returns an error", "license": "Unlicense", "author": "nuxx [3054747]", "type": "module", "source": "src/index.ts", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "sideEffects": false, "files": [ "dist", "COPYING", "README.md" ], "keywords": [ "torn", "api", "fetch", "typescript", "openapi" ], "repository": { "type": "git", "url": "https://github.com/nuxx-3054747/torn-fetch.git" }, "homepage": "https://github.com/nuxx-3054747/torn-fetch#readme", "bugs": { "url": "https://github.com/nuxx-3054747/torn-fetch/issues" }, "engines": { "node": ">=18.0.0" }, "scripts": { "get-schema": "bun scripts/getSchema.ts", "build": "bun ./build.ts", "lint": "oxlint --type-aware", "format": "oxfmt src/index.ts", "type-check": "tsc --noEmit", "test:watch": "bun test --watch", "test:coverage": "bun test --coverage", "ci": "bun run get-schema && bun run format && bun run lint && bun run type-check && bun test && bun run build", "prepublishOnly": "bun run ci", "prepack": "bun run build" }, "dependencies": { "openapi-fetch": "^0.15.0" }, "devDependencies": { "@types/bun": "1.3.4", "bun-plugin-dts": "^0.3.0", "globals": "^16.5.0", "openapi-typescript": "^7.10.1", "oxfmt": "^0.20.0", "oxlint": "^1.35.0", "oxlint-tsgolint": "^0.10.0", "typescript": "^5.9.3", "typescript-eslint": "^8.50.1" }, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" } } }