Skip to content

Commit 1fc9682

Browse files
committed
fix: bump deps (closes #1742)
1 parent 29fd1f9 commit 1fc9682

File tree

8 files changed

+37
-12212
lines changed

8 files changed

+37
-12212
lines changed

.dist.babelrc

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77
}]
88
],
9+
"sourceType": "script",
910
"sourceMaps": "inline",
1011
"comments": false
1112
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ coverage
1717
lib
1818
dist
1919
*.swp
20+
yarn.lock

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# superagent
22

33
[![build status](https://img.shields.io/travis/visionmedia/superagent.svg)](https://travis-ci.org/visionmedia/superagent)
4-
[![code coverage](https://img.shields.io/codecov/c/github/visionmedia/superagent.svg)](https://codecov.io/gh/visionmedia/superagent)
54
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
65
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
76
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)

package.json

+17-19
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,27 @@
2727
"formidable": "^2.0.1",
2828
"methods": "^1.1.2",
2929
"mime": "2.6.0",
30-
"qs": "^6.10.3",
31-
"readable-stream": "^3.6.0",
30+
"qs": "^6.11.0",
31+
"readable-stream": "^4.2.0",
3232
"semver": "^7.3.7"
3333
},
3434
"devDependencies": {
35-
"@babel/cli": "^7.17.10",
36-
"@babel/core": "^7.18.5",
37-
"@babel/plugin-transform-runtime": "^7.18.5",
38-
"@babel/preset-env": "^7.18.2",
39-
"@babel/runtime": "^7.18.3",
40-
"@commitlint/cli": "16",
41-
"@commitlint/config-conventional": "16",
35+
"@babel/cli": "^7.19.3",
36+
"@babel/core": "^7.19.3",
37+
"@babel/plugin-transform-runtime": "^7.19.1",
38+
"@babel/preset-env": "^7.19.3",
39+
"@babel/runtime": "^7.19.0",
40+
"@commitlint/cli": "17",
41+
"@commitlint/config-conventional": "17",
4242
"Base64": "^1.1.0",
4343
"babelify": "^10.0.0",
4444
"basic-auth-connect": "^1.0.0",
4545
"body-parser": "^1.20.0",
4646
"browserify": "^17.0.0",
47-
"codecov": "^3.8.3",
4847
"cookie-parser": "^1.4.6",
4948
"cross-env": "^7.0.3",
50-
"eslint": "^8.18.0",
51-
"eslint-config-xo-lass": "1",
49+
"eslint": "^8.24.0",
50+
"eslint-config-xo-lass": "2",
5251
"eslint-plugin-compat": "^4.0.2",
5352
"eslint-plugin-node": "^11.1.0",
5453
"express": "^4.18.1",
@@ -57,17 +56,17 @@
5756
"get-port": "4.2.0",
5857
"husky": "7",
5958
"lint-staged": "12",
60-
"marked": "^2.0.0",
59+
"marked": "^4.1.0",
6160
"mocha": "6.2.2",
62-
"multer": "^1.4.4",
61+
"multer": "1.4.5-lts.1",
6362
"nyc": "^15.1.0",
64-
"remark-cli": "^10.0.1",
65-
"remark-preset-github": "4.0.3",
63+
"remark-cli": "^11.0.0",
64+
"remark-preset-github": "4.0.4",
6665
"rimraf": "^3.0.2",
6766
"should": "^13.2.3",
6867
"should-http": "^0.1.1",
69-
"tinyify": "^3.0.0",
70-
"xo": "^0.49.0",
68+
"tinyify": "^3.1.0",
69+
"xo": "^0.52.3",
7170
"zuul": "^3.12.0"
7271
},
7372
"engines": {
@@ -124,7 +123,6 @@
124123
"build:dist": "npm run browserify && npm run minify",
125124
"build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib",
126125
"build:test": "babel --config-file ./.test.babelrc test --out-dir lib/node/test",
127-
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
128126
"lint": "eslint -c .eslintrc src test && remark . -qfo && eslint -c .lib.eslintrc lib/**/*.js && eslint -c .dist.eslintrc dist/**/*.js",
129127
"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",
130128
"nyc": "cross-env NODE_ENV=test nyc ava",

src/node/http2wrapper.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ Request.prototype.createUnixConnection = function (authority, options) {
8484
}
8585
};
8686

87-
// eslint-disable-next-line no-unused-vars
8887
Request.prototype.setNoDelay = function (bool) {
8988
// We can not use setNoDelay with HTTP/2.
9089
// Node 10 limits http2session.socket methods to ones safe to use with HTTP/2.
@@ -106,7 +105,7 @@ Request.prototype.getFrame = function () {
106105
headers = Object.assign(headers, method);
107106

108107
const frame = this.session.request(headers);
109-
// eslint-disable-next-line no-unused-vars
108+
110109
frame.once('response', (headers, flags) => {
111110
headers = this.mapToHttpHeader(headers);
112111
frame.headers = headers;
@@ -191,7 +190,6 @@ Request.prototype.end = function (data) {
191190
frame.end(data);
192191
};
193192

194-
// eslint-disable-next-line no-unused-vars
195193
Request.prototype.abort = function (data) {
196194
const frame = this.getFrame();
197195
frame.close(NGHTTP2_CANCEL);

test/node/multipart.js

+15-10
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ describe('Multipart', () => {
105105
error.code.should.equal('ENOENT');
106106
error.message.should.containEql('ENOENT');
107107
if (IS_WINDOWS) {
108-
error.path.toLowerCase().should.equal(
109-
getFullPath('foo').toLowerCase()
110-
);
108+
error.path
109+
.toLowerCase()
110+
.should.equal(getFullPath('foo').toLowerCase());
111111
} else {
112112
error.path.should.equal(getFullPath('foo'));
113113
}
@@ -126,13 +126,14 @@ describe('Multipart', () => {
126126
(err) => {
127127
err.code.should.equal('ENOENT');
128128
if (IS_WINDOWS) {
129-
err.path.toLowerCase().should.equal(
130-
getFullPath('does-not-exist.txt').toLowerCase()
131-
);
129+
err.path
130+
.toLowerCase()
131+
.should.equal(
132+
getFullPath('does-not-exist.txt').toLowerCase()
133+
);
132134
} else {
133135
err.path.should.equal(getFullPath('does-not-exist.txt'));
134136
}
135-
136137
}
137138
);
138139
});
@@ -205,9 +206,13 @@ describe('Multipart', () => {
205206
assert.ok(Boolean(error), 'Request should have failed.');
206207
error.code.should.equal('ENOENT');
207208
if (IS_WINDOWS) {
208-
error.path.toLowerCase().should.equal(
209-
getFullPath('test/node/fixtures/non-existent-file.ext').toLowerCase()
210-
);
209+
error.path
210+
.toLowerCase()
211+
.should.equal(
212+
getFullPath(
213+
'test/node/fixtures/non-existent-file.ext'
214+
).toLowerCase()
215+
);
211216
} else {
212217
error.path.should.equal(
213218
getFullPath('test/node/fixtures/non-existent-file.ext')

test/node/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
const assert = require('assert');
33
const utils =
44
process.env.OLD_NODE_TEST === '1'
5-
// eslint-disable-next-line node/no-missing-require
6-
? require('../../../utils')
5+
? // eslint-disable-next-line node/no-missing-require
6+
require('../../../utils')
77
: require('../../lib/utils');
88

99
describe('utils.type(str)', () => {

0 commit comments

Comments
 (0)