Skip to content

Commit

Permalink
chore: bump devDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Dec 21, 2019
1 parent 2ad6790 commit 6058bcd
Show file tree
Hide file tree
Showing 5 changed files with 1,638 additions and 1,470 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function makePromise(multer, name) {
const fn = multer[name];

multer[name] = function() {
const middleware = fn.apply(this, arguments);
const middleware = Reflect.apply(fn, this, arguments);

return (ctx, next) => {
return new Promise((resolve, reject) => {
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
],
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@koa/router": "^8",
"concat-stream": "^2",
"eslint-config-xo-lass": "^1.0.3",
"fixpack": "^2.3.1",
"form-data": "^2",
"form-data": "^3",
"fs-temp": "^1",
"husky": "^2.7.0",
"husky": "^3.1.0",
"isparta": "^4",
"koa": "^2",
"lint-staged": "^8.2.1",
"lint-staged": "^9.5.0",
"mocha": "3.x",
"multer": "^1.3.0",
"on-finished": "^2",
"remark-cli": "^6.0.1",
"remark-preset-github": "^0.0.14",
"rimraf": "^2",
"remark-cli": "^7.0.1",
"remark-preset-github": "^0.0.16",
"rimraf": "^3",
"testdata-w3c-json-form": "^1",
"xo": "^0.24.0"
"xo": "^0.25.3"
},
"engines": {
"node": ">= 6"
Expand Down
4 changes: 2 additions & 2 deletions test/_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ exports.submitForm = (multer, form, cb) => {
cb(null, req);
});
})
.catch(err2 => {
.catch(err_ => {
onFinished(req, () => {
cb(err2, req);
cb(err_, req);
});
});
});
Expand Down
6 changes: 3 additions & 3 deletions test/functionality.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function generateFilename(req, file, cb) {
}

function startsWith(str, start) {
return str.substring(0, start.length) === start;
return str.slice(0, start.length) === start;
}

describe('Functionality', () => {
Expand Down Expand Up @@ -129,8 +129,8 @@ describe('Functionality', () => {
util.submitForm(parser, form, (err, req) => {
assert.ifError(err);
assert.equal(req.files.length, 2);
assert.ok(req.files[0].path.indexOf('/testforme-') >= 0);
assert.ok(req.files[1].path.indexOf('/testforme-') >= 0);
assert.ok(req.files[0].path.includes('/testforme-'));
assert.ok(req.files[1].path.includes('/testforme-'));
done();
});
});
Expand Down
Loading

0 comments on commit 6058bcd

Please sign in to comment.