TypeFetched/package.json
Casey Collier 0459622c43 Fix streaming methods to support baseURL resolution
- Extract URL resolution logic into resolveUrl() helper method
- Fix stream() and streamJSON() to use baseURL for relative URLs
- Prevents 'Failed to parse URL' errors when using relative paths
- Bump version to 0.1.3
2025-07-20 16:15:36 -04:00

84 lines
2.1 KiB
JSON

{
"name": "@catalystlabs/typedfetch",
"version": "0.1.3",
"description": "Type-safe HTTP client that doesn't suck - Fetch for humans who have stuff to build",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "bun run build:clean && bun run build:esm && bun run build:cjs && bun run build:types",
"build:clean": "rm -rf dist && mkdir dist",
"build:esm": "bun build src/index.ts --outdir dist --target browser --format esm",
"build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --target=node16 --format=cjs --platform=node",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"typecheck": "tsc --noEmit",
"prepublishOnly": "bun run build && bun run typecheck"
},
"keywords": [
"http",
"fetch",
"client",
"typescript",
"type-safe",
"api",
"rest",
"xhr",
"request",
"response",
"cache",
"retry",
"resilience",
"proxy",
"interceptor",
"transform"
],
"author": "TypedFetch Contributors",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://git.catalystlab.cc/caseycollier/TypeFetched.git"
},
"bugs": {
"url": "https://git.catalystlab.cc/caseycollier/TypeFetched/issues"
},
"homepage": "https://typedfetch.dev",
"devDependencies": {
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"esbuild": "^0.19.0",
"eslint": "^8.0.0",
"gzip-size-cli": "^5.1.0",
"typescript": "^5.8.3",
"vitest": "^1.0.0"
},
"peerDependencies": {
"typescript": ">=4.7.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"engines": {
"node": ">=16.0.0"
},
"sideEffects": false,
"funding": {
"type": "github",
"url": "https://github.com/sponsors/typedfetch"
}
}