package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {
  2. "name": "get-it",
  3. "version": "8.4.9",
  4. "description": "Generic HTTP request library for node, browsers and workers",
  5. "keywords": [
  6. "request",
  7. "http",
  8. "fetch"
  9. ],
  10. "homepage": "https://github.com/sanity-io/get-it#readme",
  11. "bugs": {
  12. "url": "https://github.com/sanity-io/get-it/issues"
  13. },
  14. "repository": {
  15. "type": "git",
  16. "url": "git+https://github.com/sanity-io/get-it.git"
  17. },
  18. "license": "MIT",
  19. "author": "Sanity.io <hello@sanity.io>",
  20. "sideEffects": false,
  21. "type": "module",
  22. "exports": {
  23. ".": {
  24. "types": "./dist/index.d.ts",
  25. "source": "./src/index.ts",
  26. "browser": {
  27. "source": "./src/index.browser.ts",
  28. "import": "./dist/index.browser.js",
  29. "require": "./dist/index.browser.cjs"
  30. },
  31. "react-server": "./dist/index.react-server.js",
  32. "deno": "./dist/index.browser.js",
  33. "edge-light": "./dist/index.browser.js",
  34. "worker": "./dist/index.browser.js",
  35. "import": "./dist/index.js",
  36. "require": "./dist/index.cjs",
  37. "default": "./dist/index.js"
  38. },
  39. "./middleware": {
  40. "types": "./dist/middleware.d.ts",
  41. "source": "./src/middleware.ts",
  42. "browser": {
  43. "source": "./src/middleware.browser.ts",
  44. "require": "./dist/middleware.browser.cjs",
  45. "import": "./dist/middleware.browser.js"
  46. },
  47. "react-server": "./dist/middleware.browser.js",
  48. "deno": "./dist/middleware.browser.js",
  49. "edge-light": "./dist/middleware.browser.js",
  50. "worker": "./dist/middleware.browser.js",
  51. "import": "./dist/middleware.js",
  52. "require": "./dist/middleware.cjs",
  53. "default": "./dist/middleware.js"
  54. },
  55. "./package.json": "./package.json"
  56. },
  57. "main": "./dist/index.cjs",
  58. "module": "./dist/index.js",
  59. "source": "./src/index.ts",
  60. "browser": {
  61. "./dist/index.cjs": "./dist/index.browser.cjs",
  62. "./dist/index.js": "./dist/index.browser.js",
  63. "./dist/middleware.cjs": "./dist/middleware.browser.cjs",
  64. "./dist/middleware.js": "./dist/middleware.browser.js"
  65. },
  66. "types": "./dist/index.d.ts",
  67. "typesVersions": {
  68. "*": {
  69. "middleware": [
  70. "./dist/middleware.d.ts"
  71. ]
  72. }
  73. },
  74. "files": [
  75. "dist",
  76. "src",
  77. "middleware.js"
  78. ],
  79. "workspaces": [
  80. "test-next"
  81. ],
  82. "scripts": {
  83. "build": "npm run clean && pkg build --strict && pkg --strict",
  84. "clean": "npx rimraf dist coverage",
  85. "coverage": "vitest run --coverage",
  86. "lint": "eslint . --ext .cjs,.js,.ts --report-unused-disable-directives",
  87. "prepublishOnly": "npm run build",
  88. "test": "vitest",
  89. "test:browser": "npm test -- --config ./vitest.browser.config.ts --dom",
  90. "test:edge-runtime": "npm test -- --config ./vitest.edge.config.ts",
  91. "test:esm": "node --test test-esm/ | faucet",
  92. "test:esm:browser": "node -C browser --test test-esm/test.mjs | faucet",
  93. "test:esm:deno": "deno test --allow-read --allow-net --allow-env --import-map=test-deno/import_map.json test-deno",
  94. "test:next": "npm test -- --config ./vitest.next.config.ts",
  95. "test:react-server": "npm test -- --config ./vitest.react-server.config.ts",
  96. "type-check": "tsc --noEmit"
  97. },
  98. "browserslist": "extends @sanity/browserslist-config",
  99. "dependencies": {
  100. "debug": "^4.3.4",
  101. "decompress-response": "^7.0.0",
  102. "follow-redirects": "^1.15.4",
  103. "into-stream": "^6.0.0",
  104. "is-plain-object": "^5.0.0",
  105. "is-retry-allowed": "^2.2.0",
  106. "is-stream": "^2.0.1",
  107. "parse-headers": "^2.0.5",
  108. "progress-stream": "^2.0.0",
  109. "tunnel-agent": "^0.6.0"
  110. },
  111. "devDependencies": {
  112. "@edge-runtime/vm": "^3.2.0",
  113. "@sanity/pkg-utils": "^4.2.8",
  114. "@sanity/semantic-release-preset": "^4.1.6",
  115. "@types/debug": "^4.1.10",
  116. "@types/follow-redirects": "^1.14.4",
  117. "@types/node": "^20.8.8",
  118. "@types/progress-stream": "^2.0.5",
  119. "@types/zen-observable": "^0.8.7",
  120. "@typescript-eslint/eslint-plugin": "^7.0.2",
  121. "@typescript-eslint/parser": "^7.0.2",
  122. "@vitest/coverage-v8": "^1.3.1",
  123. "eslint": "^8.56.0",
  124. "eslint-config-prettier": "^9.1.0",
  125. "eslint-plugin-prettier": "^5.1.3",
  126. "eslint-plugin-simple-import-sort": "^12.0.0",
  127. "faucet": "^0.0.4",
  128. "get-uri": "^6.0.2",
  129. "happy-dom": "12.10.3",
  130. "ls-engines": "^0.9.1",
  131. "node-fetch": "^2.6.7",
  132. "prettier": "^3.2.5",
  133. "prettier-plugin-packagejson": "^2.4.11",
  134. "rimraf": "^5.0.1",
  135. "typescript": "^5.3.3",
  136. "vite": "5.1.4",
  137. "vitest": "^1.3.1",
  138. "vitest-github-actions-reporter": "^0.11.1",
  139. "zen-observable": "^0.10.0"
  140. },
  141. "engines": {
  142. "node": ">=14.0.0"
  143. },
  144. "publishConfig": {
  145. "access": "public",
  146. "provenance": true
  147. }
  148. }