UNPKG

6.4 kBJSONView Raw
1{
2 "name": "superagent",
3 "description": "elegant & feature rich browser / node HTTP with a fluent API",
4 "version": "7.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 "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 "files": [
81 "dist/*.js",
82 "lib/**/*.js"
83 ],
84 "homepage": "https://github.com/visionmedia/superagent",
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 "prepare": "husky install",
152 "browserify": "browserify src/node/index.js -o dist/superagent.js -s superagent -g [ babelify --configFile ./.dist.babelrc ]",
153 "build": "npm run build:clean && npm run build:lib && npm run build:dist",
154 "build:clean": "rimraf lib dist",
155 "build:dist": "npm run browserify && npm run minify",
156 "build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib",
157 "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
158 "lint": "xo && remark . -qfo && eslint -c .lib.eslintrc lib && eslint -c .dist.eslintrc dist",
159 "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",
160 "nyc": "cross-env NODE_ENV=test nyc ava",
161 "test": "npm run build && npm run lint && make test",
162 "test-http2": "npm run build && npm run lint && make test-node-http2"
163 },
164 "unpkg": "dist/superagent.min.js",
165 "xo": {
166 "prettier": true,
167 "space": true,
168 "extends": [
169 "xo-lass"
170 ],
171 "envs": [
172 "node",
173 "browser"
174 ],
175 "overrides": [
176 {
177 "files": "test/**/*.js",
178 "envs": [
179 "mocha"
180 ],
181 "rules": {
182 "block-scoped-var": "warn",
183 "complexity": "warn",
184 "default-case": "warn",
185 "eqeqeq": "warn",
186 "func-name-matching": "warn",
187 "func-names": "warn",
188 "guard-for-in": "warn",
189 "handle-callback-err": "warn",
190 "import/no-extraneous-dependencies": "warn",
191 "import/no-unassigned-import": "warn",
192 "import/order": "warn",
193 "max-nested-callbacks": "warn",
194 "new-cap": "warn",
195 "no-eq-null": "warn",
196 "no-extend-native": "warn",
197 "no-implicit-coercion": "warn",
198 "no-multi-assign": "warn",
199 "no-negated-condition": "warn",
200 "no-prototype-builtins": "warn",
201 "no-redeclare": "warn",
202 "no-undef": "warn",
203 "no-unused-expressions": "warn",
204 "no-unused-vars": "warn",
205 "no-use-extend-native/no-use-extend-native": "warn",
206 "no-useless-escape": "warn",
207 "no-var": "warn",
208 "no-void": "warn",
209 "node/no-deprecated-api": "warn",
210 "prefer-rest-params": "warn",
211 "prefer-spread": "warn",
212 "unicorn/filename-case": "warn",
213 "valid-jsdoc": "warn",
214 "node/no-path-concat": "warn",
215 "unicorn/no-empty-file": "warn"
216 }
217 }
218 ],
219 "rules": {
220 "unicorn/prevent-abbreviations": "warn",
221 "no-bitwise": "warn",
222 "node/prefer-global/buffer": "warn",
223 "node/prefer-global/process": "warn",
224 "unicorn/no-new-array": "warn",
225 "unicorn/no-this-assignment": "warn",
226 "unicorn/prefer-spread": "warn",
227 "unicorn/catch-error-name": "warn",
228 "unicorn/prefer-code-point": "warn"
229 },
230 "globals": [
231 "ActiveXObject"
232 ]
233 }
234}