Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit bd5e2f8

Browse files
fix: add package version number to the agent version #1080
1 parent 58ded8d commit bd5e2f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/components/id.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const promisify = require('promisify-es6')
44
const setImmediate = require('async/setImmediate')
5+
const pkgversion = require('../../../package.json').version
56

67
module.exports = function id (self) {
78
return promisify((opts, callback) => {
@@ -18,7 +19,7 @@ module.exports = function id (self) {
1819
.map((ma) => ma.toString())
1920
.filter((ma) => ma.indexOf('ipfs') >= 0)
2021
.sort(),
21-
agentVersion: 'js-ipfs',
22+
agentVersion: `js-ipfs/${pkgversion}`,
2223
protocolVersion: '9000'
2324
}))
2425
})

0 commit comments

Comments
 (0)