UNPKG

react-http-fetch

Version:

An http library for React JS built on top of native JS fetch

110 lines (109 loc) 3.44 kB
{ "name": "react-http-fetch", "version": "1.0.6", "description": "An http library for React JS built on top of native JS fetch", "main": "index.js", "module": "./lib/esm/index.js", "types": "./lib/esm/index.d.ts", "repository": "git@github.com:nebarf/react-http-fetch.git", "author": "nebarf <francesco.benedetto263@gmail.com>", "license": "MIT", "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "files": [ "/lib" ], "engines": { "node": "^14 || ^16" }, "dependencies": { "react-fast-compare": "^3.2.0" }, "devDependencies": { "@commitlint/cli": "^16.2.3", "@commitlint/config-conventional": "^16.2.1", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^13.1.1", "@testing-library/react-12": "npm:@testing-library/react@^12.1.2", "@testing-library/react-hooks": "^8.0.0", "@types/jest": "^27.0.2", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "auto-changelog": "^2.3.0", "commitizen": "^4.2.4", "cz-conventional-changelog": "^3.3.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-import-resolver-typescript": "^2.5.0", "eslint-plugin-import": "^2.25.2", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.26.1", "eslint-plugin-react-hooks": "^4.2.0", "husky": "^7.0.0", "jest": "^27.2.4", "jest-fetch-mock": "^3.0.3", "jest-mock-extended": "^2.0.4", "lint-staged": "^11.2.0", "prettier": "^2.4.1", "react": "^18.0.0", "react-17": "npm:react@^17.0.2", "react-dom": "^18.0.0", "react-dom-17": "npm:react-dom@^17.0.2", "release-it": "^14.11.6", "shelljs": "^0.8.4", "shx": "^0.3.3", "simple-git": "^3.7.0", "ts-jest": "^27.0.5", "typescript": "^4.4.3" }, "scripts": { "before-release-init": "node ./bin/before-release-init.mjs", "build": "yarn build:esm && yarn build:cjs", "build:prod": "yarn build:prod:esm && yarn build:prod:cjs", "build:watch": "yarn build:esm -w && yarn build:cjs -w", "build:esm": "tsc", "build:cjs": "tsc --module commonjs --outDir lib/cjs", "build:prod:esm": "tsc -p tsconfig.prod.json", "build:prod:cjs": "tsc -p tsconfig.prod.json --module commonjs --outDir lib/cjs", "clean-build": "shx rm -rf lib", "changelog": "auto-changelog -p --template ./changelog.template.hbs", "commit": "cz", "commitlint": "commitlint", "commitizen": "commitizen", "prepare": "husky install", "pre-commit": "lint-staged", "pre-push": "yarn test", "release": "release-it", "release:dry-run": "release-it --dry-run", "release:patch": "release-it patch", "release:minor": "release-it minor", "release:major": "release-it major", "test": "jest -c ./jest.config.js --env=jsdom", "test:react17": "REACT_VERSION=true yarn test", "test:watch": "jest -c ./jest.config.js --watch --env=jsdom" }, "peerDependencies": { "react": "^17.0.2 || ^18.0.0", "react-dom": "^17.0.2 || ^18.0.0" }, "keywords": [ "react-http", "react-http-fetch", "react", "fetch", "http", "request", "response", "fetch data", "http client", "react hooks", "react http", "react-http", "react fetch", "react-fetch" ] }