Skip to content

Commit e825a0b

Browse files
authored
chore: update deps and fix linting issues (#112)
* chore: update deps and fix linting issues * chore: update non-dev deps
1 parent 8741a66 commit e825a0b

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"dnscache": "^1.0.2",
4242
"express": "^4.16.4",
4343
"express-http-proxy": "^1.5.1",
44-
"ipfs": "0.35.0",
45-
"ipfs-http-client": "^31.0.0",
46-
"ipfsd-ctl": "~0.42.2",
44+
"ipfs": "^0.36.3",
45+
"ipfs-http-client": "^32.0.1",
4746
"ipfs-registry-mirror-common": "^1.0.13",
47+
"ipfsd-ctl": "~0.42.2",
4848
"once": "^1.4.0",
4949
"rc": "^1.2.8",
5050
"request": "^2.88.0",
@@ -53,7 +53,7 @@
5353
"yargs": "^13.2.4"
5454
},
5555
"devDependencies": {
56-
"aegir": "^18.2.2",
56+
"aegir": "^19.0.3",
5757
"go-ipfs-dep": "~0.4.20",
5858
"mock-require": "^3.0.3",
5959
"npm-run-all": "^4.1.5",

src/core/commands/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const which = require('which-promise')
88

99
const cleanUpOps = []
1010

11-
const cleanUp = async () => {
11+
const cleanUp = () => {
1212
Promise.all(
1313
cleanUpOps.map(op => op())
1414
)

src/core/commands/rewrite-lock-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const replaceRegistryPath = (dependencies, registry) => {
2727
})
2828
}
2929

30-
module.exports = async (options) => {
30+
module.exports = (options) => {
3131
if (options.packageManager === 'npm') {
3232
const lockfilePath = path.join(process.cwd(), 'package-lock.json')
3333

src/core/commands/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const timeout = require('ipfs-registry-mirror-common/utils/timeout-promise')
77

88
const cleanUpOps = []
99

10-
const cleanUp = async () => {
10+
const cleanUp = () => {
1111
Promise.all(
1212
cleanUpOps.map(op => op())
1313
)

src/core/handlers/root.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const pkg = require('../../../package.json')
44

55
module.exports = () => {
6-
return async (request, response, next) => {
6+
return (request, response, next) => {
77
const info = {
88
name: pkg.name,
99
version: pkg.version

src/core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const update = require('./commands/update')
44
const proxy = require('./commands/proxy')
55

6-
module.exports = async (options) => {
6+
module.exports = (options) => {
77
if (process.argv.slice(2)[0] === 'update-registry-index') {
88
return update(options)
99
}

src/core/middleware/get-ipfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ process.on('SIGTERM', cleanUp)
1919
process.on('SIGINT', cleanUp)
2020

2121
module.exports = (options) => {
22-
return async (req, res, next) => {
22+
return (req, res, next) => {
2323
if (req.app.locals.ipfs) {
2424
return next()
2525
}

test/install.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('install', function () {
4444
buffer.append(data.toString())
4545
})
4646

47-
installer.on('close', async (code) => {
47+
installer.on('close', (code) => {
4848
buffer.flush()
4949

5050
if (code === 0) {

0 commit comments

Comments
 (0)