File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
packages/data-connect/src/network Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,17 @@ let connectFetch: typeof fetch | null = globalThis.fetch;
2525export function initializeFetch ( fetchImpl : typeof fetch ) : void {
2626 connectFetch = fetchImpl ;
2727}
28- function getGoogApiClientValue ( _isUsingGen : boolean , _callerSdkType : CallerSdkType ) : string {
28+ function getGoogApiClientValue (
29+ _isUsingGen : boolean ,
30+ _callerSdkType : CallerSdkType
31+ ) : string {
2932 let str = 'gl-js/ fire/' + SDK_VERSION ;
30- if ( _callerSdkType !== CallerSdkTypeEnum . Base && _callerSdkType !== CallerSdkTypeEnum . Generated ) {
33+ if (
34+ _callerSdkType !== CallerSdkTypeEnum . Base &&
35+ _callerSdkType !== CallerSdkTypeEnum . Generated
36+ ) {
3137 str += ' js/' + _callerSdkType . toLowerCase ( ) ;
32- } else if ( _isUsingGen || _callerSdkType === CallerSdkTypeEnum . Generated ) {
38+ } else if ( _isUsingGen || _callerSdkType === CallerSdkTypeEnum . Generated ) {
3339 str += ' js/gen' ;
3440 }
3541 return str ;
Original file line number Diff line number Diff line change @@ -68,5 +68,5 @@ export type TransportClass = new (
6868 appCheckProvider ?: AppCheckTokenProvider ,
6969 transportOptions ?: TransportOptions ,
7070 _isUsingGen ?: boolean ,
71- _callerSdkType ?: CallerSdkType
71+ _callerSdkType ?: CallerSdkType
7272) => DataConnectTransport ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export class RESTTransport implements DataConnectTransport {
4444 private appCheckProvider ?: AppCheckTokenProvider | undefined ,
4545 transportOptions ?: TransportOptions | undefined ,
4646 private _isUsingGen = false ,
47- private _callerSdkType : CallerSdkType = CallerSdkTypeEnum . Base ,
47+ private _callerSdkType : CallerSdkType = CallerSdkTypeEnum . Base
4848 ) {
4949 if ( transportOptions ) {
5050 if ( typeof transportOptions . port === 'number' ) {
You can’t perform that action at this time.
0 commit comments