Skip to content

Conversation

@v-dko
Copy link
Contributor

@v-dko v-dko commented Jan 23, 2026

Description

updated typed-rest-client to 2.2.0 to fix qs vulnerability in azure-arm-rest package

Package Name

azure-arm-rest package


Risk Assessment (Low / Medium / High)

Low


Unit Tests Added or Updated

No


Additional Testing Performed

L0 test cases are passed


Documentation Changes Required (Yes / No)

No

Dependencies

_No


@v-dko v-dko requested review from a team and manolerazvan as code owners January 23, 2026 08:51
@v-dko
Copy link
Contributor Author

v-dko commented Jan 23, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

function readXmlFile(path: string): ltx.Element {
const buffer = fs.readFileSync(path);
const encoding = detectFileEncoding(path, buffer)[0].toString();
const encoding = detectFileEncoding(path, buffer)[0].toString() as BufferEncoding;
Copy link
Contributor

@starkmsu starkmsu Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below we need to handle a case when detectFileEncoding(path, buffer)[0].toString() can't be converted to BufferEncoding.
According to the current implementation of detectFileEncoding it can return null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants