package.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. {
  2. "name": "superagent",
  3. "description": "elegant & feature rich browser / node HTTP with a fluent API",
  4. "version": "6.1.0",
  5. "author": "TJ Holowaychuk <tj@vision-media.ca>",
  6. "browser": {
  7. "./src/node/index.js": "./src/client.js",
  8. "./lib/node/index.js": "./lib/client.js",
  9. "./test/support/server.js": "./test/support/blank.js"
  10. },
  11. "bugs": {
  12. "url": "https://github.com/visionmedia/superagent/issues"
  13. },
  14. "commitlint": {
  15. "extends": [
  16. "@commitlint/config-conventional"
  17. ]
  18. },
  19. "contributors": [
  20. "Kornel Lesiński <kornel@geekhood.net>",
  21. "Peter Lyons <pete@peterlyons.com>",
  22. "Hunter Loftis <hunter@hunterloftis.com>",
  23. "Nick Baugh <niftylettuce@gmail.com>"
  24. ],
  25. "dependencies": {
  26. "component-emitter": "^1.3.0",
  27. "cookiejar": "^2.1.2",
  28. "debug": "^4.1.1",
  29. "fast-safe-stringify": "^2.0.7",
  30. "form-data": "^3.0.0",
  31. "formidable": "^1.2.2",
  32. "methods": "^1.1.2",
  33. "mime": "^2.4.6",
  34. "qs": "^6.9.4",
  35. "readable-stream": "^3.6.0",
  36. "semver": "^7.3.2"
  37. },
  38. "devDependencies": {
  39. "@babel/cli": "^7.10.5",
  40. "@babel/core": "^7.11.1",
  41. "@babel/plugin-transform-runtime": "^7.11.0",
  42. "@babel/preset-env": "^7.11.0",
  43. "@commitlint/cli": "^9.1.1",
  44. "@commitlint/config-conventional": "^9.1.1",
  45. "Base64": "^1.1.0",
  46. "babelify": "^10.0.0",
  47. "basic-auth-connect": "^1.0.0",
  48. "body-parser": "^1.19.0",
  49. "browserify": "^16.5.2",
  50. "codecov": "^3.7.2",
  51. "cookie-parser": "^1.4.5",
  52. "cross-env": "^7.0.2",
  53. "eslint": "^7.6.0",
  54. "eslint-config-xo-lass": "^1.0.3",
  55. "eslint-plugin-compat": "^3.8.0",
  56. "eslint-plugin-node": "^11.1.0",
  57. "express": "^4.17.1",
  58. "express-session": "^1.17.1",
  59. "fixpack": "^3.0.6",
  60. "husky": "^4.2.5",
  61. "lint-staged": "^10.2.11",
  62. "marked": "^1.1.1",
  63. "mocha": "3.5.3",
  64. "multer": "^1.4.2",
  65. "nyc": "^15.1.0",
  66. "remark-cli": "^8.0.1",
  67. "remark-preset-github": "^3.0.0",
  68. "rimraf": "^3.0.2",
  69. "should": "^13.2.3",
  70. "should-http": "^0.1.1",
  71. "tinyify": "^3.0.0",
  72. "xo": "0.32.1",
  73. "zuul": "^3.12.0"
  74. },
  75. "engines": {
  76. "node": ">= 7.0.0"
  77. },
  78. "homepage": "https://github.com/visionmedia/superagent",
  79. "husky": {
  80. "hooks": {
  81. "pre-commit": "npm test",
  82. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  83. }
  84. },
  85. "jsdelivr": "dist/superagent.min.js",
  86. "keywords": [
  87. "agent",
  88. "ajax",
  89. "ajax",
  90. "api",
  91. "async",
  92. "await",
  93. "axios",
  94. "cancel",
  95. "client",
  96. "frisbee",
  97. "got",
  98. "http",
  99. "http",
  100. "https",
  101. "ky",
  102. "promise",
  103. "promise",
  104. "promises",
  105. "request",
  106. "request",
  107. "requests",
  108. "response",
  109. "rest",
  110. "retry",
  111. "super",
  112. "superagent",
  113. "timeout",
  114. "transform",
  115. "xhr",
  116. "xmlhttprequest"
  117. ],
  118. "license": "MIT",
  119. "lint-staged": {
  120. "linters": {
  121. "*.js": [
  122. "xo --fix",
  123. "git add"
  124. ],
  125. "*.md": [
  126. "remark . -qfo",
  127. "git add"
  128. ],
  129. "package.json": [
  130. "fixpack",
  131. "git add"
  132. ]
  133. }
  134. },
  135. "main": "lib/node/index.js",
  136. "prettier": {
  137. "singleQuote": true,
  138. "bracketSpacing": true,
  139. "trailingComma": "none"
  140. },
  141. "remarkConfig": {
  142. "plugins": [
  143. "preset-github"
  144. ]
  145. },
  146. "repository": {
  147. "type": "git",
  148. "url": "git://github.com/visionmedia/superagent.git"
  149. },
  150. "scripts": {
  151. "browserify": "browserify src/node/index.js -o dist/superagent.js -s superagent -g [ babelify --configFile ./.dist.babelrc ]",
  152. "build": "npm run build:clean && npm run build:lib && npm run build:dist",
  153. "build:clean": "rimraf lib dist",
  154. "build:dist": "npm run browserify && npm run minify",
  155. "build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib",
  156. "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
  157. "lint": "xo && remark . -qfo && eslint -c .lib.eslintrc lib && eslint -c .dist.eslintrc dist",
  158. "minify": "cross-env NODE_ENV=production browserify src/node/index.js -o dist/superagent.min.js -s superagent -g [ babelify --configFile ./.dist.babelrc ] -p tinyify",
  159. "nyc": "cross-env NODE_ENV=test nyc ava",
  160. "test": "npm run build && npm run lint && make test",
  161. "test-http2": "npm run build && npm run lint && make test-node-http2"
  162. },
  163. "unpkg": "dist/superagent.min.js",
  164. "xo": {
  165. "prettier": true,
  166. "space": true,
  167. "extends": [
  168. "xo-lass"
  169. ],
  170. "env": [
  171. "node",
  172. "browser"
  173. ],
  174. "overrides": [
  175. {
  176. "files": "test/**/*.js",
  177. "env": [
  178. "mocha"
  179. ],
  180. "rules": {
  181. "block-scoped-var": "off",
  182. "complexity": "off",
  183. "default-case": "off",
  184. "eqeqeq": "off",
  185. "func-name-matching": "off",
  186. "func-names": "off",
  187. "guard-for-in": "off",
  188. "handle-callback-err": "off",
  189. "import/no-extraneous-dependencies": "off",
  190. "import/no-unassigned-import": "off",
  191. "import/order": "off",
  192. "max-nested-callbacks": "off",
  193. "new-cap": "off",
  194. "no-eq-null": "off",
  195. "no-extend-native": "off",
  196. "no-implicit-coercion": "off",
  197. "no-multi-assign": "off",
  198. "no-negated-condition": "off",
  199. "no-prototype-builtins": "off",
  200. "no-redeclare": "off",
  201. "no-undef": "off",
  202. "no-unused-expressions": "off",
  203. "no-unused-vars": "off",
  204. "no-use-extend-native/no-use-extend-native": "off",
  205. "no-useless-escape": "off",
  206. "no-var": "off",
  207. "no-void": "off",
  208. "node/no-deprecated-api": "off",
  209. "prefer-rest-params": "off",
  210. "prefer-spread": "off",
  211. "promise/prefer-await-to-then": "off",
  212. "promise/valid-params": "off",
  213. "unicorn/filename-case": "off",
  214. "valid-jsdoc": "off",
  215. "node/no-unsupported-features/node-builtins": "off",
  216. "node/no-path-concat": "off"
  217. }
  218. }
  219. ],
  220. "rules": {
  221. "unicorn/prevent-abbreviations": "off",
  222. "node/no-unsupported-features/es-syntax": "off"
  223. },
  224. "globals": [
  225. "ActiveXObject"
  226. ]
  227. }
  228. }