UNPKG

@digitalbazaar/http-client

Version:
93 lines (92 loc) 2.87 kB
{ "name": "@digitalbazaar/http-client", "version": "4.3.0", "description": "An opinionated, isomorphic HTTP client.", "license": "BSD-3-Clause", "type": "module", "main": "./dist/cjs/index.cjs", "exports": { "require": "./dist/cjs/index.cjs", "import": "./lib/index.js" }, "browser": { "./lib/agentCompatibility.js": "./lib/agentCompatibility-browser.js", "./tests/utils.cjs": "./tests/utils-browser.cjs" }, "react-native": { "./lib/agentCompatibility.js": "./lib/agentCompatibility-browser.js" }, "scripts": { "rollup": "rollup -c rollup.config.js", "build": "npm run clear && npm run rollup", "clear": "rimraf dist/ && mkdir dist", "prepare": "npm run build", "rebuild": "npm run clear && npm run build", "test": "npm run test-node && npm run test-node-cjs", "test-node": "cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js", "test-node-cjs": "cross-env NODE_ENV=test mocha --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.cjs tests/*.spec.cjs", "test-karma": "karma start karma.conf.cjs", "test-watch": "cross-env NODE_ENV=test mocha --watch --parallel --preserve-symlinks -t 30000 -A -R ${REPORTER:-spec} --require tests/test-mocha.js tests/*.spec.js", "coverage": "cross-env NODE_ENV=test c8 npm run test-node", "coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node", "coverage-report": "c8 report", "lint": "eslint" }, "files": [ "lib/*", "dist/*" ], "dependencies": { "ky": "^1.14.2", "undici": "^6.23.0" }, "devDependencies": { "@digitalbazaar/eslint-config": "^7.0.0", "c8": "^10.1.3", "chai": "^4.5.0", "cors": "^2.8.5", "cross-env": "^10.1.0", "detect-node": "^2.1.0", "eslint": "^9.39.2", "express": "^5.2.1", "karma": "^6.4.4", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.4.0", "karma-webpack": "^5.0.1", "mocha": "^11.7.5", "rimraf": "^6.1.2", "rollup": "^4.55.1", "webpack": "^5.104.1" }, "repository": { "type": "git", "url": "https://github.com/digitalbazaar/http-client" }, "keywords": [ "http", "isomorphic", "http client" ], "author": { "name": "Digital Bazaar, Inc.", "email": "support@digitalbazaar.com", "url": "https://digitalbazaar.com/" }, "bugs": { "url": "https://github.com/digitalbazaar/http-client/issues" }, "homepage": "https://github.com/digitalbazaar/http-client", "engines": { "node": ">=18.0" }, "c8": { "reporter": [ "lcov", "text-summary", "text" ] } }