Rocky_Mountain_Vending/.pnpm-store/v10/files/ab/10ad69e18b5a6d035daef81bdb686197d45d345126f5e71cbf7333f464a7eeaefc479cef1e1e8aa6e3b993a9ee5e613d203cd2efc84a597eebe42818bf2640
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

29 lines
1.3 KiB
Text

# @aws-sdk/util-user-agent-browser
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-user-agent-browser/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-browser)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-user-agent-browser.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-browser)
## Usage
In previous versions of the AWS SDK for JavaScript v3, the AWS SDK user agent header was provided by parsing the navigator user agent string with the `bowser` library.
This was later changed to browser feature detection using the native Navigator APIs, but if you would like to have the previous functionality, use the following code:
```js
import { createUserAgentStringParsingProvider } from "@aws-sdk/util-user-agent-browser";
import { S3Client } from "@aws-sdk/client-s3";
import pkgInfo from "@aws-sdk/client-s3/package.json";
// or any other client.
const client = new S3Client({
defaultUserAgentProvider: createUserAgentStringParsingProvider({
// For a client's serviceId, check the corresponding shared runtimeConfig file
// https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/src/runtimeConfig.shared.ts
serviceId: "S3",
clientVersion: pkgInfo.version,
}),
});
```
This usage is not recommended, due to the size of the additional parsing library.