Format code and update .gitignore to exclude .nx cache

Co-authored-by: TingluoHuang <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-06 15:36:15 +00:00
co-authored by TingluoHuang
parent 4e1c194b34
commit 6d9a3fe547
23 changed files with 7 additions and 93608 deletions
+1
View File
@@ -1986,6 +1986,7 @@
"version": "5.9.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
@@ -378,7 +378,7 @@ describe('basics', () => {
it('appends orchestration ID to user-agent when ACTIONS_ORCHESTRATION_ID is set', async () => {
const orchId = 'test-orch-id-12345'
process.env['ACTIONS_ORCHESTRATION_ID'] = orchId
const http: httpm.HttpClient = new httpm.HttpClient('http-client-tests')
const res: httpm.HttpClientResponse = await http.get(
'https://postman-echo.com/get'
@@ -389,13 +389,13 @@ describe('basics', () => {
expect(obj.headers['user-agent']).toBe(
`http-client-tests (gh_orch_id:${orchId})`
)
delete process.env['ACTIONS_ORCHESTRATION_ID']
})
it('does not modify user-agent when ACTIONS_ORCHESTRATION_ID is not set', async () => {
delete process.env['ACTIONS_ORCHESTRATION_ID']
const http: httpm.HttpClient = new httpm.HttpClient('http-client-tests')
const res: httpm.HttpClientResponse = await http.get(
'https://postman-echo.com/get'
+2 -1
View File
@@ -599,7 +599,8 @@ export class HttpClient {
info.options.method = method
info.options.headers = this._mergeHeaders(headers)
if (this.userAgent != null) {
info.options.headers['user-agent'] = this._getUserAgentWithOrchestrationId(this.userAgent)
info.options.headers['user-agent'] =
this._getUserAgentWithOrchestrationId(this.userAgent)
}
info.options.agent = this._getAgent(info.parsedUrl)