{"name":"@aws-sdk/util-user-agent-browser","version":"3.972.3","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/util-user-agent-browser@3.972.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"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","bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dist":{"shasum":"1363b388cb3af86c5322ef752c0cf8d7d25efa8a","tarball":"http://registry-npm.ywwl.com/@aws-sdk/util-user-agent-browser/download/@aws-sdk/util-user-agent-browser-3.972.3.tgz","fileCount":19,"integrity":"sha512-JurOwkRUcXD/5MTDBcqdyQ9eVedtAsZgw5rBwktsPTN7QtPiS2Ld1jkJepNgYoCufz1Wcut9iup7GJDoIHp8Fw==","signatures":[{"sig":"MEUCIHwQPbQH4ZgkxHKjfA/G31limFRavdlsksaLTFET2TNQAiEAspWeGz4JIOIjd56Hc1/NPsgVyY5NlewgtVnEqozdDSg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27783,"size":7632,"noattachment":false,"key":"/@aws-sdk/util-user-agent-browser/-/@aws-sdk/util-user-agent-browser-3.972.3.tgz"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","browser":"./dist-es/index.js","scripts":{"test":"yarn g:vitest run","build":"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","build:es":"tsc -p tsconfig.es.json","build:cjs":"node ../../scripts/compilation/inline util-user-agent-browser","test:watch":"yarn g:vitest watch","build:types":"tsc -p tsconfig.types.json","build:include:deps":"yarn g:turbo run build -F=\"$npm_package_name\"","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-sdk-js-v3.git","type":"git","directory":"packages-internal/util-user-agent-browser"},"_npmVersion":"10.8.2","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":{},"sideEffects":false,"_nodeVersion":"20.19.5","dependencies":{"tslib":"^2.6.2","bowser":"^2.11.0","@smithy/types":"^4.12.0","@aws-sdk/types":"^3.973.1"},"react-native":"dist-es/index.native.js","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"_hasShrinkwrap":false,"devDependencies":{"premove":"4.0.0","typescript":"~5.8.3","concurrently":"7.0.0","downlevel-dts":"0.10.1","@tsconfig/recommended":"1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/util-user-agent-browser_3.972.3_1769803997392_0.8443012067104849","host":"s3://npm-registry-packages-npm-production"},"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":1769803997562,"_cnpm_publish_time":1769803997562,"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"}}