UNPKG

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