UNPKG

@inrupt/universal-fetch

Version:

A library to access fetch from any JavaScript / TypeScript environment

93 lines (92 loc) 2.69 kB
{ "name": "@inrupt/universal-fetch", "description": "A library to access fetch from any JavaScript / TypeScript environment", "version": "1.0.3", "license": "MIT", "scripts": { "build": "rollup --config rollup.config.mjs", "clean": "rimraf umd dist", "lint": "npm run lint:eslint -- --cache --fix && npm run lint:prettier -- --write", "lint:ci": "npm run lint:eslint && npm run lint:prettier -- --check", "lint:eslint": "eslint src", "lint:prettier": "prettier '**/*.{ts,tsx,js,jsx,css,md,mdx}' --ignore-path .gitignore", "test": "npm run test:unit", "test:unit": "jest --roots src --", "test:e2e:browser": "playwright test", "test:e2e:browser:setup": "cd e2e/browser/test-app && npm ci", "test:esbuild": "cd e2e/browser/test-app && npm ci && npm run test:esbuild", "prepublishOnly": "npm run build" }, "keywords": [ "fetch", "http", "https", "promise", "request", "curl", "wget", "xhr", "whatwg", "universal", "isomorphic" ], "homepage": "https://github.com/inrupt/universal-fetch", "bugs": "https://github.com/inrupt/universal-fetch/issues", "main": "dist/index.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", "exports": { ".": { "browser": { "require": "./dist/index-browser.js", "import": "./dist/index-browser.mjs" }, "default": { "require": "./dist/index.js", "import": "./dist/index.mjs" } } }, "browser": { "dist/index.js": "./dist/index-browser.js", "dist/index.es.js": "./dist/index-browser.es.js", "dist/index.mjs": "./dist/index-browser.mjs", "./dist/index.js": "./dist/index-browser.js", "./dist/index.es.js": "./dist/index-browser.es.js", "./dist/index.mjs": "./dist/index-browser.mjs" }, "files": [ "dist", "umd" ], "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/inrupt/universal-fetch.git" }, "devDependencies": { "@inrupt/eslint-config-lib": "^2.0.0", "@playwright/test": "^1.31.2", "@rushstack/eslint-patch": "^1.2.0", "@types/dotenv-flow": "^3.2.0", "@types/jest": "^28.1.3", "@types/node": "^20.1.3", "@types/node-fetch": "^2.6.2", "dotenv-flow": "^3.2.0", "jest": "^28.1.1", "jest-environment-node": "^29.4.3", "prettier": "2.8.8", "rimraf": "^5.0.0", "rollup": "^3.15.0", "rollup-plugin-typescript2": "^0.35.0", "ts-jest": "^28.0.5", "typescript": "^5.0.4" }, "dependencies": { "node-fetch": "^2.6.7", "undici": "^5.19.1" }, "engines": { "node": "^14.17.0 || ^16.0.0 || ^18.0.0 || ^20.0.0" } }