create-request
Version:
A modern, chainable wrapper for fetch with automatic retries, timeouts, comprehensive error handling, and first-class TypeScript support
110 lines (109 loc) • 3.87 kB
JSON
{
"name": "create-request",
"version": "1.5.0",
"description": "A modern, chainable wrapper for fetch with automatic retries, timeouts, comprehensive error handling, and first-class TypeScript support",
"main": "dist/library/index.cjs",
"module": "dist/library/index.esm.js",
"types": "dist/library/index.d.ts",
"sideEffects": false,
"type": "module",
"files": [
"dist/library",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"exports": {
".": {
"import": {
"default": "./dist/library/index.esm.js",
"production": "./dist/library/index.esm.min.js"
},
"require": {
"default": "./dist/library/index.cjs",
"production": "./dist/library/index.min.cjs"
},
"types": "./dist/library/index.d.ts"
}
},
"scripts": {
"dev": "cross-env BUILD_ENV=development rollup -c rollup.config.js -w",
"build": "cross-env BUILD_ENV=production rollup -c rollup.config.js",
"analyze": "cross-env ANALYZE=true BUILD_ENV=production rollup -c rollup.config.js",
"lint": "eslint 'src/**/*.{js,ts,json}' 'test/**/*.{js,ts,json}'",
"lint:fix": "eslint \"**/*.ts\" --ignore-path .eslintignore --fix",
"format": "prettier --write \"**/*.{ts,js,json}\"",
"check": "concurrently \"npm run lint\" \"npm run test\" \"npm run check:size\"",
"check:size": "npm run build && npx size-limit",
"test": "node --import tsx --test test/**/*.test.ts",
"test:coverage": "c8 --reporter=text --reporter=html --reporter=lcov npm test",
"prepare": "husky",
"prepack": "npm run build",
"preversion": "npm run check",
"prepublishOnly": "npm run build && npm test",
"publish:beta": "npm version prerelease --preid=beta -m \"chore(release): %s\" && git push origin --tags && npm publish --tag beta",
"publish:rc": "npm version prerelease --preid=rc -m \"chore(release): %s\" && git push origin --tags && npm publish --tag rc",
"publish:patch": "npm version patch -m \"chore(release): %s\" && git push origin --tags && npm publish",
"publish:minor": "npm version minor -m \"chore(release): %s\" && git push origin --tags && npm publish",
"publish:major": "npm version major -m \"chore(release): %s\" && git push origin --tags && npm publish"
},
"keywords": [
"fetch",
"http",
"request",
"api",
"xhr",
"ajax",
"typescript",
"chainable",
"fluent",
"retry",
"timeout",
"graphql",
"csrf"
],
"author": "Daniel Amenou <amenou.daniel@gmail.com>",
"license": "MIT",
"engines": {
"node": ">=18.3.0"
},
"repository": {
"type": "git",
"url": "https://github.com/DanielAmenou/create-request.git"
},
"homepage": "https://create-request.com",
"bugs": {
"url": "https://github.com/DanielAmenou/create-request/issues"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^12.3.0",
"@size-limit/preset-small-lib": "^8.2.6",
"@types/node": "^18.19.130",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.11.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.1.1",
"rollup": "^2.75.5",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-visualizer": "^5.9.2",
"size-limit": "^8.2.6",
"tslib": "^2.4.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"undici": "^5.28.5",
"c8": "^8.0.1",
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"husky": "^9.0.0"
}
}