diff --git a/package.json b/package.json index 9294cf0c..598f16bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dashlane/cli", - "version": "1.13.0", + "version": "1.14.1", "description": "Manage your Dashlane vault through a CLI tool", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/cliVersion.ts b/src/cliVersion.ts index 72a3d74b..f1939c4f 100644 --- a/src/cliVersion.ts +++ b/src/cliVersion.ts @@ -1,6 +1,6 @@ import { CliVersion } from './types'; -export const CLI_VERSION: CliVersion = { major: 1, minor: 13, patch: 0 }; +export const CLI_VERSION: CliVersion = { major: 1, minor: 14, patch: 1 }; export const breakingChangesVersions: CliVersion[] = []; export const cliVersionToString = (version: CliVersion): string => { diff --git a/src/command-handlers/teamLogs.ts b/src/command-handlers/teamLogs.ts index 9a3927c1..995572e9 100644 --- a/src/command-handlers/teamLogs.ts +++ b/src/command-handlers/teamLogs.ts @@ -4,8 +4,8 @@ import { getTeamDeviceCredentials, jsonToCsv, epochTimestampToIso } from '../uti import { GenericLog } from '../types/logs'; export const runTeamLogs = async (options: { - start: number; - end: number; + start: string; + end: string; type: string; category: string; csv: boolean; @@ -17,8 +17,8 @@ export const runTeamLogs = async (options: { let logs = await getAuditLogs({ teamDeviceCredentials, - startDateRangeUnix: start, - endDateRangeUnix: end, + startDateRangeUnix: parseInt(start), + endDateRangeUnix: parseInt(end), logType: type, category, }); diff --git a/src/utils/strings.ts b/src/utils/strings.ts index 80f5d868..29e7f9cb 100644 --- a/src/utils/strings.ts +++ b/src/utils/strings.ts @@ -41,7 +41,7 @@ export const customParseTimestampMilliseconds = (value: string, _dummyPrevious: if (parsedValue < 999999999999 || parsedValue > 100000000000000) { throw new commander.InvalidArgumentError('Timestamp must be in milliseconds.'); } - return parsedValue; + return parsedValue.toString(); }; /** Remove underscores and capitalize string */