123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- {
- "name": "get-it",
- "version": "8.4.9",
- "description": "Generic HTTP request library for node, browsers and workers",
- "keywords": [
- "request",
- "http",
- "fetch"
- ],
- "homepage": "https://github.com/sanity-io/get-it#readme",
- "bugs": {
- "url": "https://github.com/sanity-io/get-it/issues"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sanity-io/get-it.git"
- },
- "license": "MIT",
- "author": "Sanity.io <hello@sanity.io>",
- "sideEffects": false,
- "type": "module",
- "exports": {
- ".": {
- "types": "./dist/index.d.ts",
- "source": "./src/index.ts",
- "browser": {
- "source": "./src/index.browser.ts",
- "import": "./dist/index.browser.js",
- "require": "./dist/index.browser.cjs"
- },
- "react-server": "./dist/index.react-server.js",
- "deno": "./dist/index.browser.js",
- "edge-light": "./dist/index.browser.js",
- "worker": "./dist/index.browser.js",
- "import": "./dist/index.js",
- "require": "./dist/index.cjs",
- "default": "./dist/index.js"
- },
- "./middleware": {
- "types": "./dist/middleware.d.ts",
- "source": "./src/middleware.ts",
- "browser": {
- "source": "./src/middleware.browser.ts",
- "require": "./dist/middleware.browser.cjs",
- "import": "./dist/middleware.browser.js"
- },
- "react-server": "./dist/middleware.browser.js",
- "deno": "./dist/middleware.browser.js",
- "edge-light": "./dist/middleware.browser.js",
- "worker": "./dist/middleware.browser.js",
- "import": "./dist/middleware.js",
- "require": "./dist/middleware.cjs",
- "default": "./dist/middleware.js"
- },
- "./package.json": "./package.json"
- },
- "main": "./dist/index.cjs",
- "module": "./dist/index.js",
- "source": "./src/index.ts",
- "browser": {
- "./dist/index.cjs": "./dist/index.browser.cjs",
- "./dist/index.js": "./dist/index.browser.js",
- "./dist/middleware.cjs": "./dist/middleware.browser.cjs",
- "./dist/middleware.js": "./dist/middleware.browser.js"
- },
- "types": "./dist/index.d.ts",
- "typesVersions": {
- "*": {
- "middleware": [
- "./dist/middleware.d.ts"
- ]
- }
- },
- "files": [
- "dist",
- "src",
- "middleware.js"
- ],
- "workspaces": [
- "test-next"
- ],
- "scripts": {
- "build": "npm run clean && pkg build --strict && pkg --strict",
- "clean": "npx rimraf dist coverage",
- "coverage": "vitest run --coverage",
- "lint": "eslint . --ext .cjs,.js,.ts --report-unused-disable-directives",
- "prepublishOnly": "npm run build",
- "test": "vitest",
- "test:browser": "npm test -- --config ./vitest.browser.config.ts --dom",
- "test:edge-runtime": "npm test -- --config ./vitest.edge.config.ts",
- "test:esm": "node --test test-esm/ | faucet",
- "test:esm:browser": "node -C browser --test test-esm/test.mjs | faucet",
- "test:esm:deno": "deno test --allow-read --allow-net --allow-env --import-map=test-deno/import_map.json test-deno",
- "test:next": "npm test -- --config ./vitest.next.config.ts",
- "test:react-server": "npm test -- --config ./vitest.react-server.config.ts",
- "type-check": "tsc --noEmit"
- },
- "browserslist": "extends @sanity/browserslist-config",
- "dependencies": {
- "debug": "^4.3.4",
- "decompress-response": "^7.0.0",
- "follow-redirects": "^1.15.4",
- "into-stream": "^6.0.0",
- "is-plain-object": "^5.0.0",
- "is-retry-allowed": "^2.2.0",
- "is-stream": "^2.0.1",
- "parse-headers": "^2.0.5",
- "progress-stream": "^2.0.0",
- "tunnel-agent": "^0.6.0"
- },
- "devDependencies": {
- "@edge-runtime/vm": "^3.2.0",
- "@sanity/pkg-utils": "^4.2.8",
- "@sanity/semantic-release-preset": "^4.1.6",
- "@types/debug": "^4.1.10",
- "@types/follow-redirects": "^1.14.4",
- "@types/node": "^20.8.8",
- "@types/progress-stream": "^2.0.5",
- "@types/zen-observable": "^0.8.7",
- "@typescript-eslint/eslint-plugin": "^7.0.2",
- "@typescript-eslint/parser": "^7.0.2",
- "@vitest/coverage-v8": "^1.3.1",
- "eslint": "^8.56.0",
- "eslint-config-prettier": "^9.1.0",
- "eslint-plugin-prettier": "^5.1.3",
- "eslint-plugin-simple-import-sort": "^12.0.0",
- "faucet": "^0.0.4",
- "get-uri": "^6.0.2",
- "happy-dom": "12.10.3",
- "ls-engines": "^0.9.1",
- "node-fetch": "^2.6.7",
- "prettier": "^3.2.5",
- "prettier-plugin-packagejson": "^2.4.11",
- "rimraf": "^5.0.1",
- "typescript": "^5.3.3",
- "vite": "5.1.4",
- "vitest": "^1.3.1",
- "vitest-github-actions-reporter": "^0.11.1",
- "zen-observable": "^0.10.0"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "publishConfig": {
- "access": "public",
- "provenance": true
- }
- }
|