File tree Expand file tree Collapse file tree 8 files changed +24
-4
lines changed Expand file tree Collapse file tree 8 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 88
99### Bugs Fixed
1010
11+ - Refined user-agent value to avoid failure when os information is not available on some platforms.
12+
1113### Other Changes
1214
1315## 12.10.0-beta.1 (2022-04-19)
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ export class TelemetryPolicyFactory implements RequestPolicyFactory {
4444 }
4545
4646 // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
47- const runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
47+ let runtimeInfo = `(NODE-VERSION ${ process . version } )` ;
48+ if ( os ) {
49+ runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
50+ }
4851 if ( userAgentInfo . indexOf ( runtimeInfo ) === - 1 ) {
4952 userAgentInfo . push ( runtimeInfo ) ;
5053 }
Original file line number Diff line number Diff line change 88
99### Bugs Fixed
1010
11+ - Refined user-agent value to avoid failure when os information is not available on some platforms.
12+
1113### Other Changes
1214
1315## 12.9.0-beta.1 (2022-04-19)
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ export class TelemetryPolicyFactory implements RequestPolicyFactory {
4444 }
4545
4646 // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
47- const runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
47+ let runtimeInfo = `(NODE-VERSION ${ process . version } )` ;
48+ if ( os ) {
49+ runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
50+ }
4851 if ( userAgentInfo . indexOf ( runtimeInfo ) === - 1 ) {
4952 userAgentInfo . push ( runtimeInfo ) ;
5053 }
Original file line number Diff line number Diff line change 88
99### Bugs Fixed
1010
11+ - Refined user-agent value to avoid failure when os information is not available on some platforms.
12+
1113### Other Changes
1214
1315## 12.10.0-beta.1 (2022-04-19)
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ export class TelemetryPolicyFactory implements RequestPolicyFactory {
4444 }
4545
4646 // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
47- const runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
47+ let runtimeInfo = `(NODE-VERSION ${ process . version } )` ;
48+ if ( os ) {
49+ runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
50+ }
4851 if ( userAgentInfo . indexOf ( runtimeInfo ) === - 1 ) {
4952 userAgentInfo . push ( runtimeInfo ) ;
5053 }
Original file line number Diff line number Diff line change 99### Bugs Fixed
1010
1111- Add ` react-native ` mapping to ESM entry point
12+ - Fixed a bug where customized ` ProxyOptions ` is overwrited by a default one when initializing ` QueueServiceClient ` or ` QueueClient ` with connection string.
13+ - Refined user-agent value to avoid failure when os information is not available on some platforms.
1214
1315### Other Changes
1416
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ export class TelemetryPolicyFactory implements RequestPolicyFactory {
4444 }
4545
4646 // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
47- const runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
47+ let runtimeInfo = `(NODE-VERSION ${ process . version } )` ;
48+ if ( os ) {
49+ runtimeInfo = `(NODE-VERSION ${ process . version } ; ${ os . type ( ) } ${ os . release ( ) } )` ;
50+ }
4851 if ( userAgentInfo . indexOf ( runtimeInfo ) === - 1 ) {
4952 userAgentInfo . push ( runtimeInfo ) ;
5053 }
You can’t perform that action at this time.
0 commit comments