diff --git a/packages/util-user-agent-browser/src/index.ts b/packages/util-user-agent-browser/src/index.ts index 201989c887c1..e3501ba86640 100644 --- a/packages/util-user-agent-browser/src/index.ts +++ b/packages/util-user-agent-browser/src/index.ts @@ -1,5 +1,5 @@ import { Provider, UserAgent } from "@aws-sdk/types"; -import { parse } from "bowser"; +import bowser from "bowser"; import { DefaultUserAgentOptions } from "./configurations"; @@ -11,7 +11,7 @@ export const defaultUserAgent = ({ serviceId, clientVersion, }: DefaultUserAgentOptions): Provider => async () => { - const parsedUA = window?.navigator?.userAgent ? parse(window.navigator.userAgent) : undefined; + const parsedUA = window?.navigator?.userAgent ? bowser.parse(window.navigator.userAgent) : undefined; const sections: UserAgent = [ // sdk-metadata ["aws-sdk-js", clientVersion],