UNPKG

@antoinette-agency/sofetch

Version:

An opinionated Fetch wrapper for JSON APIs

72 lines (71 loc) 2.28 kB
{ "name": "@antoinette-agency/sofetch", "version": "1.3.0", "description": "An opinionated Fetch wrapper for JSON APIs", "repository": "https://github.com/antoinette-agency/sofetch", "homepage": "https://sofetch.antoinette.agency/", "main": "./index.cjs", "module": "./index.mjs", "types": "./index.d.ts", "browser": "./index.browser.js", "exports": { ".": { "browser": "./index.browser.js", "types": "./index.d.ts", "import": "./index.mjs", "require": "./index.cjs" } }, "type": "module", "scripts": { "test-server": "npx tsx testServer/testServer.ts", "build": "npm run build:docs && node esbuild.config.js", "build:docs": "npx typedoc src/index.ts --router kind-dir --json docs.json && npx typedoc src/index.ts --router kind-dir", "test": "npm run build && tsc && npx jest --selectProjects ts-tests", "test:browser": "npx jest --selectProjects puppeteer-tests", "build:node": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.js", "build:browser": "esbuild src/index.ts --bundle --platform=browser --target=es2017 --outfile=dist/index.browser.js" }, "keywords": [ "Fetch", "HttpClient", "JSONAPI" ], "author": { "name": "SoFetch Team@Antoinette", "email": "sofetch@antoinette.agency", "url": "https://sofetch.antoinette.agency" }, "contributors": [ { "name": "Chris Hodges", "url": "https://antoinette.agency", "email": "chris.hodges@antoinette.agency" }, { "name": "Matt Brewerton", "email": "matt@mattbrewerton.co.uk" } ], "license": "MIT", "devDependencies": { "@microsoft/api-extractor": "^7.52.13", "@types/busboy": "^1.5.4", "@types/jest": "^30.0.0", "@types/node": "^24.4.0", "@types/puppeteer": "^5.4.7", "busboy": "^1.6.0", "esbuild": "^0.25.10", "expect-puppeteer": "^11.0.0", "husky": "^9.1.7", "jest": "^30.1.3", "jest-puppeteer": "^11.0.0", "puppeteer": "^24.24.1", "start-server-and-test": "^2.1.2", "tree-kill": "^1.2.2", "ts-jest": "^29.4.5", "tsx": "^4.20.5", "typedoc": "^0.28.13", "typescript": "^5.9.2" } }