{"_id":"@aws-sdk/util-user-agent-browser@3.972.56","bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dist":{"shasum":"d0659862037e7fafa55fb2948b7a5dda4abea080","tarball":"http://registry-npm.ywwl.com/@aws-sdk/util-user-agent-browser/download/@aws-sdk/util-user-agent-browser-3.972.56.tgz","fileCount":6,"integrity":"sha512-uupWzuyIhat6jXcaW7rbYCKCKNNmlWgIY2PDk0ATHb7dyxfsEDBsamALw77fpAlAObbRvr0KQb9lOqQ1Tt8Hcg==","signatures":[{"sig":"MEQCIFhNrdY/F1AK/5bqcBu+m0/h5a2AmlhkXhoXcIS8C217AiB0jGz2jwX0NFRY/NnFPhneJGjAX20qPqRnTUMFlb+Maw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF9aMDvGkDxOTMD3KLvC+YSsyEaZtMTlEIuQsoARIijiAiEA20GimM94oC/uNMO6phOiq/91wqwEouNnpkSg9DsYNpQ="}],"unpackedSize":14808,"size":5361,"noattachment":false,"key":"/@aws-sdk/util-user-agent-browser/-/@aws-sdk/util-user-agent-browser-3.972.56.tgz"},"main":"./dist-cjs/index.js","name":"@aws-sdk/util-user-agent-browser","types":"./dist-types/index.d.ts","author":{"url":"https://aws.amazon.com/sdk-for-javascript/","name":"AWS SDK for JavaScript Team"},"module":"./dist-es/index.js","browser":{},"license":"Apache-2.0","scripts":{"build":"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","clean":"premove dist-cjs dist-es dist-types","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:cjs":"node ../../scripts/compilation/inline","build:types":"premove dist-types && tsc -p tsconfig.types.json","build:include:deps":"yarn g:turbo run build -F=\"$npm_package_name\""},"version":"3.972.56","_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/util-user-agent-browser","repository":{"url":"git+https://github.com/aws/aws-sdk-js-v3.git","type":"git","directory":"packages-internal/util-user-agent-browser"},"_npmVersion":"11.21.1","description":"[![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.n","directories":{},"maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"}],"sideEffects":false,"_nodeVersion":"24.22.2","dependencies":{"tslib":"^2.6.2","@aws-sdk/core":"^3.980.0"},"react-native":{},"_hasShrinkwrap":false,"devDependencies":{"premove":"4.0.0","typescript":"~7.0.2","concurrently":"7.0.0","@tsconfig/recommended":"1.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/util-user-agent-browser_3.972.56_1793825431997_0.7627812009145701"},"readme":"# @aws-sdk/util-user-agent-browser\n\n[![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)\n[![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)\n\n## Usage\n\nIn 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.\n\nThis 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:\n\n```js\nimport { createUserAgentStringParsingProvider } from \"@aws-sdk/util-user-agent-browser\";\n\nimport { S3Client } from \"@aws-sdk/client-s3\";\nimport pkgInfo from \"@aws-sdk/client-s3/package.json\";\n// or any other client.\n\nconst client = new S3Client({\n  defaultUserAgentProvider: createUserAgentStringParsingProvider({\n    // For a client's serviceId, check the corresponding shared runtimeConfig file\n    // https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/src/runtimeConfig.shared.ts\n    serviceId: \"S3\",\n    clientVersion: pkgInfo.version,\n  }),\n});\n```\n\nThis usage is not recommended, due to the size of the additional parsing library.\n","publish_time":1793825432082,"_cnpm_publish_time":1793825432082,"dist-tags":{"alpha":"1.0.0-alpha.9","beta":"1.0.0-beta.4","gamma":"1.0.0-gamma.8","latest":"3.972.56","preview":"0.1.0-preview.9","rc":"1.0.0-rc.10"}}