Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Feb 28, 2025
1 parent 2adebb8 commit da0e4c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2929,9 +2929,7 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
const { os, model } = this.deviceIdentifier ?? {};
return `stream-chat-${this.sdkIdentifier.name}-v${this.sdkIdentifier.version}-llc-v${version}${
os ? `|os=${os}` : ''
}${
model ? `|device_model=${model}` : ''
}`;
}${model ? `|device_model=${model}` : ''}`;
} else {
return `stream-chat-js-v${version}-${this.node ? 'node' : 'browser'}`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3826,4 +3826,4 @@ export type SdkIdentifier = { name: 'react' | 'react-native' | 'expo' | 'angular
* An identifier containing information about the downstream device using stream-chat, if
* available. Is used by the react-native SDKs to enrich the user agent further.
*/
export type DeviceIdentifier = { os: string; model?: string }
export type DeviceIdentifier = { os: string; model?: string };
2 changes: 1 addition & 1 deletion test/unit/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ describe.only('X-Stream-Client header', () => {
const userAgent = client.getUserAgent();

expect(userAgent).to.be.equal('stream-chat-react-native-v2.3.4-llc-v1.2.3|os=iOS 15.0|device_model=iPhone17,4');
})
});

it('setUserAgent is now deprecated', () => {
client.setUserAgent('deprecated');
Expand Down

0 comments on commit da0e4c6

Please sign in to comment.