UNPKG

@tkrotoff/fetch

Version:
96 lines (95 loc) 4.42 kB
{ "name": "@tkrotoff/fetch", "version": "0.17.0", "description": "Fetch wrapper", "repository": "github:tkrotoff/fetch", "license": "MIT", "keywords": [ "http-client", "http", "fetch", "fetch-api" ], "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist/" ], "sideEffects": false, "scripts": { "clean": "rm -rf dist coverage", "clean:all": "npm run clean && rm -rf node_modules package-lock.json", "build": "npm run clean && npm run build:dts && npm run build:esm && npm run build:cjs && npm run build:umd", "build:dts": "tsc --project tsconfig.dist.json --declaration --emitDeclarationOnly --removeComments false --outDir dist", "build:esm": "tsc --project tsconfig.dist.json --outDir dist", "build:cjs": "rollup src/index.ts --format cjs --plugin '@rollup/plugin-typescript={tsconfig: `tsconfig.dist.json`}' --file dist/index.cjs", "build:umd": "rollup src/index.ts --format umd --plugin '@rollup/plugin-typescript={tsconfig: `tsconfig.dist.json`}' --name Http --file dist/index.umd.js", "npm:install:examples": "npm run npm:install:example:web && npm run npm:install:example:node", "//": "Why --install-links? FIXME https://github.com/nodejs/node/issues/46270", "npm:install:example:web": "cd examples/web && npm install --install-links", "npm:install:example:node": "cd examples/node && npm install", "build:examples": "npm run build:example:web", "build:example:web": "cd examples/web && npm run build", "start:examples": "npm run start:example:node", "start:example:node": "cd examples/node && npm run start", "test": "npm run test:undici", "test:coverage": "npm run test:coverage:undici", "test:undici": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=undici jest --verbose", "test:coverage:undici": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=undici jest --coverage", "test:whatwg-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=whatwg-fetch jest --env=jsdom --verbose", "test:coverage:whatwg-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer/createTestServer.cert FETCH=whatwg-fetch jest --env=jsdom --coverage", "test:e2e": "playwright test", "test:e2e:debug": "playwright test --debug", "test:coverage:examples": "npm run test:coverage:example:web && npm run test:coverage:example:node", "test:coverage:example:web": "cd examples/web && npm run test:coverage", "test:coverage:example:node": "cd examples/node && npm run test:coverage", "tsc": "tsc", "tsc:examples": "npm run tsc:example:web && npm run tsc:example:node", "tsc:example:web": "cd examples/web && npm run tsc", "tsc:example:node": "cd examples/node && npm run tsc", "format": "prettier --write .", "lint": "npm run tsc && DEBUG=eslint:cli-engine eslint .", "prepare": "husky install", "precommit": "npm run lint && npm run tsc:examples", "prepush": "npm run test", "prepublishOnly": "npm run build", "publish:beta": "npm version 0.1.0-beta.1 && npm publish --tag next --dry-run", "npm:update": "npm run clean:all && npx npm-check-updates --upgrade && npm install" }, "dependencies": {}, "devDependencies": { "@babel/core": "^7.22.8", "@babel/preset-env": "^7.22.7", "@babel/preset-typescript": "^7.22.5", "@fastify/cors": "^8.3.0", "@playwright/test": "^1.35.1", "@rollup/plugin-typescript": "^11.1.2", "@types/jest": "^29.5.2", "@types/ua-parser-js": "^0.7.36", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", "babel-jest": "^29.6.0", "eslint": "^8.44.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.2", "eslint-plugin-playwright": "^0.15.3", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-simple-import-sort": "^10.0.0", "eslint-plugin-unicorn": "^47.0.0", "fastify": "^4.19.2", "husky": "^8.0.3", "jest": "^29.6.0", "jest-environment-jsdom": "^29.6.0", "playwright": "^1.35.1", "prettier": "^2.8.8", "rollup": "^3.26.2", "tslib": "^2.6.0", "typescript": "^5.1.6", "ua-parser-js": "^1.0.35", "undici": "^5.22.1", "whatwg-fetch": "^3.6.2" } }