Socket
Socket
Sign inDemoInstall

@aws-sdk/util-user-agent-browser

Package Overview
Dependencies
4
Maintainers
5
Versions
159
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.567.0 to 3.575.0

7

dist-cjs/index.js

@@ -7,4 +7,3 @@ "use strict";

const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
var _a, _b, _c, _d, _e, _f, _g;
const parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent)
const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent
? bowser_1.default.parse(window.navigator.userAgent)

@@ -15,5 +14,5 @@ : undefined;

["ua", "2.0"],
[`os/${((_b = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.os) === null || _b === void 0 ? void 0 : _b.name) || "other"}`, (_c = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.os) === null || _c === void 0 ? void 0 : _c.version],
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version],
["lang/js"],
["md/browser", `${(_e = (_d = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.browser) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : "unknown"}_${(_g = (_f = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.browser) === null || _f === void 0 ? void 0 : _f.version) !== null && _g !== void 0 ? _g : "unknown"}`],
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`],
];

@@ -20,0 +19,0 @@ if (serviceId) {

{
"name": "@aws-sdk/util-user-agent-browser",
"version": "3.567.0",
"version": "3.575.0",
"scripts": {

@@ -25,4 +25,4 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"dependencies": {
"@aws-sdk/types": "3.567.0",
"@smithy/types": "^2.12.0",
"@aws-sdk/types": "3.575.0",
"@smithy/types": "^3.0.0",
"bowser": "^2.11.0",

@@ -29,0 +29,0 @@ "tslib": "^2.6.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc