UNPKG

5.93 kBJSONView Raw
1{
2 "name": "superagent",
3 "description": "elegant & feature rich browser / node HTTP with a fluent API",
4 "version": "5.2.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 },
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.1",
32 "methods": "^1.1.2",
33 "mime": "^2.4.4",
34 "qs": "^6.9.1",
35 "readable-stream": "^3.4.0",
36 "semver": "^6.3.0"
37 },
38 "devDependencies": {
39 "@babel/cli": "^7.7.4",
40 "@babel/core": "^7.7.4",
41 "@babel/preset-env": "^7.7.4",
42 "@commitlint/cli": "^8.2.0",
43 "@commitlint/config-conventional": "^8.2.0",
44 "Base64": "^1.1.0",
45 "babelify": "^10.0.0",
46 "basic-auth-connect": "^1.0.0",
47 "body-parser": "^1.19.0",
48 "browserify": "^16.5.0",
49 "codecov": "^3.6.1",
50 "cookie-parser": "^1.4.4",
51 "cross-env": "^6.0.3",
52 "eslint": "^6.7.2",
53 "eslint-config-xo-lass": "^1.0.3",
54 "eslint-plugin-compat": "^3.3.0",
55 "eslint-plugin-node": "^10.0.0",
56 "express": "^4.17.1",
57 "express-session": "^1.17.0",
58 "fixpack": "^2.3.1",
59 "husky": "^3.1.0",
60 "lint-staged": "^9.5.0",
61 "marked": "^0.7.0",
62 "mocha": "3.5.3",
63 "multer": "^1.4.2",
64 "nyc": "^14.1.1",
65 "remark-cli": "^7.0.1",
66 "remark-preset-github": "^0.0.16",
67 "rimraf": "^3.0.0",
68 "should": "^13.2.3",
69 "should-http": "^0.1.1",
70 "tinyify": "^2.5.2",
71 "uglify-js": "^3.7.1",
72 "xo": "0.25.3",
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 }
216 }
217 ],
218 "globals": [
219 "ActiveXObject"
220 ]
221 }
222}