diff --git a/README.md b/README.md
index d6b2e63c3..b2a6b7d79 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ superagent.post('/api/pet').then(console.log).catch(console.error);
### Browser
-**The browser-ready, minified version of `superagent` is only 19 KB!**
+**The browser-ready, minified version of `superagent` is only 20KB!**
Browser-ready versions of this module are available via [jsdelivr][], [unpkg][], and also in the `node_modules/superagent/dist` folder in downloads of the `superagent` package.
@@ -83,7 +83,7 @@ Browser-ready versions of this module are available via [jsdelivr][], [unpkg][],
This is the solution for you if you're just using `
+
@@ -159,7 +159,7 @@ If you are using [browserify][], [webpack][], [rollup][], or another bundler, th
We recommend using (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
```html
-
+
```
* IE 9-10 requires a polyfill for `Promise`, `Array.from`, `Symbol`, `Object.getOwnPropertySymbols`, and `Object.setPrototypeOf`
@@ -213,7 +213,7 @@ Our breaking changes are mostly in rarely used functionality and from stricter e
* [4.x to 5.x](https://github.com/visionmedia/superagent/releases/tag/v5.0.0):
* We've implemented the build setup of [Lass](https://lass.js.org) to simplify our stack and linting
- * Browserified build size has been reduced from 48KB to 19KB (via `tinyify` and the latest version of Babel using `@babel/preset-env` and `.browserslistrc`)
+ * Browserified build size has been reduced from 48KB to 20KB (via `tinyify` and the latest version of Babel using `@babel/preset-env` and `.browserslistrc`)
* Linting support has been added using `caniuse-lite` and `eslint-plugin-compat`
* We can now target what versions of Node we wish to support more easily using `.babelrc`
* [3.x to 4.x](https://github.com/visionmedia/superagent/releases/tag/v4.0.0-alpha.1):
@@ -246,7 +246,7 @@ Our breaking changes are mostly in rarely used functionality and from stricter e
[MIT](LICENSE) © TJ Holowaychuk
-##
+##
[npm]: https://www.npmjs.com/
diff --git a/package.json b/package.json
index 4c1bca426..93e365fd1 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
"form-data": "^2.3.3",
"formidable": "^1.2.1",
"methods": "^1.1.2",
- "mime": "^2.4.3",
+ "mime": "^2.4.4",
"qs": "^6.7.0",
"readable-stream": "^3.4.0",
"semver": "^6.1.1"
@@ -57,7 +57,7 @@
"express-session": "^1.16.1",
"fixpack": "^2.3.1",
"husky": "^2.4.0",
- "lint-staged": "^8.1.7",
+ "lint-staged": "^8.2.0",
"marked": "^0.6.2",
"mocha": "3.5.3",
"multer": "^1.4.1",
@@ -148,14 +148,14 @@
"url": "git://github.com/visionmedia/superagent.git"
},
"scripts": {
- "browserify": "browserify src/node/index.js -o dist/superagent.js -s superagent -d -t [ babelify --configFile ./.dist.babelrc ]",
+ "browserify": "browserify src/node/index.js -o dist/superagent.js -s superagent -g [ babelify --configFile ./.dist.babelrc ]",
"build": "npm run build:clean && npm run build:lib && npm run build:dist",
"build:clean": "rimraf lib dist",
"build:dist": "npm run browserify && npm run minify",
"build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "xo && remark . -qfo && eslint -c .lib.eslintrc lib && eslint -c .dist.eslintrc dist",
- "minify": "cross-env NODE_ENV=production browserify src/node/index.js -o dist/superagent.min.js -s superagent -t [ babelify --configFile ./.dist.babelrc ] -p tinyify",
+ "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",
"nyc": "cross-env NODE_ENV=test nyc ava",
"test": "npm run build && npm run lint && make test",
"test-http2": "npm run build && npm run lint && make test-node-http2"
diff --git a/yarn.lock b/yarn.lock
index 40a6efee6..1ec47cfc7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4079,11 +4079,6 @@ find-nearest-file@1.0.0:
resolved "https://registry.yarnpkg.com/find-nearest-file/-/find-nearest-file-1.0.0.tgz#bf539d7d0f02996631fa2196680f6776762b9f70"
integrity sha1-v1OdfQ8CmWYx+iGWaA9ndnYrn3A=
-find-parent-dir@^0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54"
- integrity sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ=
-
find-up@^2.0.0, find-up@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
@@ -5722,10 +5717,10 @@ line-column-path@^1.0.0:
resolved "https://registry.yarnpkg.com/line-column-path/-/line-column-path-1.0.0.tgz#383b83fca8488faa7a59940ebf28b82058c16c55"
integrity sha1-ODuD/KhIj6p6WZQOvyi4IFjBbFU=
-lint-staged@^8.1.7:
- version "8.1.7"
- resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-8.1.7.tgz#a8988bc83bdffa97d04adb09dbc0b1f3a58fa6fc"
- integrity sha512-egT0goFhIFoOGk6rasPngTFh2qDqxZddM0PwI58oi66RxCDcn5uDwxmiasWIF0qGnchHSYVJ8HPRD5LrFo7TKA==
+lint-staged@^8.2.0:
+ version "8.2.0"
+ resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-8.2.0.tgz#3d4149a229580815c955047a7acd8f09054be5a9"
+ integrity sha512-DxguyxGOIfb67wZ6EOrqzjAbw6ZH9XK3YS74HO+erJf6+SAQeJJPN//GBOG5xhdt2THeuXjVPaHcCYOWGZwRbA==
dependencies:
chalk "^2.3.1"
commander "^2.14.1"
@@ -5734,7 +5729,6 @@ lint-staged@^8.1.7:
dedent "^0.7.0"
del "^3.0.0"
execa "^1.0.0"
- find-parent-dir "^0.3.0"
g-status "^2.0.2"
is-glob "^4.0.0"
is-windows "^1.0.2"
@@ -6436,10 +6430,10 @@ mime@1.6.0:
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
-mime@^2.4.3:
- version "2.4.3"
- resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.3.tgz#229687331e86f68924e6cb59e1cdd937f18275fe"
- integrity sha512-QgrPRJfE+riq5TPZMcHZOtm8c6K/yYrMbKIoRfapfiGLxS8OTeIfRhUGW5LU7MlRa52KOAGCfUNruqLrIBvWZw==
+mime@^2.4.4:
+ version "2.4.4"
+ resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.4.tgz#bd7b91135fc6b01cde3e9bae33d659b63d8857e5"
+ integrity sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==
mime@~1.2.11, mime@~1.2.2, mime@~1.2.7, mime@~1.2.9:
version "1.2.11"