Skip to content

Commit

Permalink
utils: Export masking utility and bump version for release (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Aug 27, 2024
1 parent 500dfd6 commit f850972
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,16 @@ export declare namespace AzExtFsExtra {

export declare function maskValue(data: string, valueToMask: string | undefined): string;

/**
* Best effort to mask all data that could potentially identify a user
*
* @param unknownArg Any unknown value. This value will be cast to a string and then masked before returning.
* @param actionValuesToMask An array of strings indicating additional values to mask.
* @param lessAggressive A boolean value that defaults to false. If set to true, the most aggressive masking will be skipped.
* @param getUsername To be used ONLY by test code. Function used to get the username.
*/
export declare function maskUserInfo(unknownArg: unknown, actionValuesToMask: string[], lessAggressive?: boolean, getUsername?: () => string): string;

export declare function openUrl(url: string): Promise<void>;

/**
Expand Down
4 changes: 2 additions & 2 deletions utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/vscode-azext-utils",
"author": "Microsoft Corporation",
"version": "2.5.6",
"version": "2.5.7",
"description": "Common UI tools for developing Azure extensions for VS Code",
"tags": [
"azure",
Expand Down
2 changes: 1 addition & 1 deletion utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export * from './DialogResponses';
export * from './errors';
export * from './extensionUserAgent';
export { registerUIExtensionVariables } from './extensionVariables';
export { addExtensionValueToMask, callWithMaskHandling, maskValue } from './masking';
export { addExtensionValueToMask, callWithMaskHandling, maskUserInfo, maskValue } from './masking';
export * from './openReadOnlyContent';
export * from './parseError';
export * from './pickTreeItem/contextValue/ContextValueQuickPickStep';
Expand Down

0 comments on commit f850972

Please sign in to comment.