Skip to content

Commit

Permalink
publish tdfSpecVersion in ctl's --version option
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihalcik-virtru committed Jan 7, 2025
1 parent 4fa4571 commit 309939b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
type Source,
AuthProviders,
version,
tdfSpecVersion,
OpenTDF,
DecoratedStream,
} from '@opentdf/sdk';
Expand Down Expand Up @@ -650,6 +651,7 @@ export const handleArgs = (args: string[]) => {
JSON.stringify({
'@opentdf/ctl': process.env.npm_package_version || 'UNRELEASED',
'@opentdf/sdk': version,
tdfSpecVersion,
})
)
.alias('version', 'V')
Expand Down
2 changes: 1 addition & 1 deletion lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { type AuthProvider, type HttpMethod, HttpRequest, withHeaders } from './auth/auth.js';
export * as AuthProviders from './auth/providers.js';
export { attributeFQNsAsValues } from './policy/api.js';
export { version, clientType } from './version.js';
export { version, clientType, tdfSpecVersion } from './version.js';
export * from './opentdf.js';
export * from './seekable.js';
2 changes: 2 additions & 0 deletions lib/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export const version = '0.2.0';
* A string name used to label requests as coming from this library client.
*/
export const clientType = 'web-sdk';

export const tdfSpecVersion = '4.3.0';

0 comments on commit 309939b

Please sign in to comment.