-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core-xml] Fix build failure #27196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core-xml] Fix build failure #27196
Conversation
API change check API changes are not detected in this pull request. |
@@ -99,14 +100,17 @@ export async function parseXML(str: string, opts: XmlOptions = {}): Promise<any> | |||
|
|||
// Remove the <?xml version="..." ?> node. | |||
// This is a change in behavior on fxp v4. Issue #424 | |||
if (parsedXml["?xml"]) { | |||
if (objectHasProperty(parsedXml, "?xml")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but this seems like a big hammer for this fix, could we just instantiate the type variable in the method call in L99 with Record<string, any>
?
something wrong with pnpm-lock.yaml so I will fix the lock file. let's wait to see if fast-xml-parser can fix it. |
should I close this PR? |
you can leave it and address Deyaa's feedback in case we don't get a fix soon. Our weekly rush full update automation will fail I suppose. |
Hi @HarshaNalluru. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
Hi @HarshaNalluru. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing |
Packages impacted by this PR
@azure/core-xml
Issues associated with this PR
#27195
Spotted while working on #26748
Describe the problem that is addressed by this PR
Uses type guards to narrow down the type of
parsedXml