Skip to content

Commit

Permalink
ALL-9923 Fixed version in report for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Loiko committed Dec 13, 2024
1 parent fc790e0 commit 2ebd41c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum-kms",
"version": "7.0.7",
"version": "7.0.8",
"description": "Tatum KMS - Key Management System for Tatum-powered apps.",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import {
import { utils } from './utils'
import semver from 'semver'

import { version } from '../package.json'

const ensurePathExists = (path: string) => {
const dir = dirname(path)
if (!existsSync(dir)) {
Expand Down Expand Up @@ -545,7 +547,7 @@ export const getQuestion = (q: string, e?: string) => {
}

const getKmsVersion = (): string => {
return process.env.npm_package_version ?? 'N/A'
return version || 'N/A'
}

const getPathToWallet = (path?: string) => {
Expand Down

0 comments on commit 2ebd41c

Please sign in to comment.