UNPKG

@tkrotoff/fetch

Version:
91 lines (90 loc) 3.9 kB
{ "name": "@tkrotoff/fetch", "version": "0.11.4", "repository": { "type": "git", "url": "https://github.com/tkrotoff/fetch.git" }, "description": "Fetch wrapper", "license": "MIT", "keywords": [ "http-client", "http", "fetch", "fetch-api" ], "main": "dist/cjs/index.js", "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:esnext && npm run build:cjs && npm run build:umd", "build:esnext": "tsc --project tsconfig.dist.json --declaration --outDir dist", "build:cjs": "rollup src/index.ts --format cjs --plugin '@rollup/plugin-typescript={tsconfig: `tsconfig.dist.json`}' --file dist/cjs/index.js", "build:umd": "rollup src/index.ts --format umd --plugin '@rollup/plugin-typescript={tsconfig: `tsconfig.dist.json`}' --name Http --file dist/umd/index.js", "npm:install:examples": "npm run npm:install:example:web && npm run npm:install:example:node", "npm:install:example:web": "cd examples/web && npm install", "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:node-fetch", "test:coverage": "npm run test:coverage:node-fetch", "test:node-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer.cert FETCH=node-fetch jest --verbose", "test:coverage:node-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer.cert FETCH=node-fetch jest --coverage", "test:whatwg-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer.cert FETCH=whatwg-fetch jest --verbose", "test:coverage:whatwg-fetch": "NODE_EXTRA_CA_CERTS=./src/createTestServer.cert FETCH=whatwg-fetch jest --coverage", "test:e2e": "jest --config jest-e2e.config.js --verbose", "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", "format": "prettier --write '**/*'", "lint": "npm run tsc && eslint . '**/*.{js,ts}'", "prepare": "husky install", "precommit": "npm run lint", "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.13.15", "@babel/preset-env": "^7.13.15", "@babel/preset-typescript": "^7.13.0", "@rollup/plugin-typescript": "^8.2.1", "@types/jest": "^26.0.22", "@types/ua-parser-js": "^0.7.35", "@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/parser": "^4.22.0", "babel-jest": "^26.6.3", "eslint": "^7.24.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-config-prettier": "^8.2.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^24.3.5", "eslint-plugin-jest-playwright": "^0.2.1", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-unicorn": "^30.0.0", "fastify": "^3.14.2", "fastify-cors": "^5.2.0", "husky": "^6.0.0", "jest": "^26.6.3", "jest-playwright-preset": "^1.5.1", "node-fetch": "^3.0.0-beta.9", "playwright": "^1.10.0", "prettier": "^2.2.1", "rollup": "^2.45.2", "typescript": "^4.2.4", "ua-parser-js": "^0.7.28", "whatwg-fetch": "^3.6.2" } }