@aws-sdk/util-user-agent-browser
Advanced tools
Comparing version 3.15.0 to 3.18.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.18.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.17.0...v3.18.0) (2021-06-04) | ||
**Note:** Version bump only for package @aws-sdk/util-user-agent-browser | ||
# [3.15.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.14.0...v3.15.0) (2021-05-10) | ||
@@ -8,0 +16,0 @@ |
@@ -10,5 +10,7 @@ "use strict"; | ||
*/ | ||
const defaultUserAgent = ({ serviceId, clientVersion, }) => async () => { | ||
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)) ? bowser_1.default.parse(window.navigator.userAgent) : undefined; | ||
const parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) | ||
? bowser_1.default.parse(window.navigator.userAgent) | ||
: undefined; | ||
const sections = [ | ||
@@ -33,2 +35,2 @@ // sdk-metadata | ||
exports.defaultUserAgent = defaultUserAgent; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUNBLDREQUE0QjtBQUk1Qjs7O0dBR0c7QUFDSSxNQUFNLGdCQUFnQixHQUFHLENBQUMsRUFDL0IsU0FBUyxFQUNULGFBQWEsR0FDVyxFQUF1QixFQUFFLENBQUMsS0FBSyxJQUFJLEVBQUU7O0lBQzdELE1BQU0sUUFBUSxHQUFHLENBQUMsT0FBTyxNQUFNLEtBQUssV0FBVyxLQUFJLE1BQUEsTUFBTSxhQ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uZ3VhZ2UtbWV0YWRhdGFcbiAgICAgIC8vIEVDTUFTY3JpcHQgZWRpdGlvbiBkb2Vzbid0IG1hdHRlciBpbiBKUy5cbiAgICAgIFtcImxhbmcvanNcIl0sXG4gICAgICAvLyBicm93c2VyIHZlbmRvciBhbmQgdmVyc2lvbi5cbiAgICAgIFtcIm1kL2Jyb3dzZXJcIiwgYCR7cGFyc2VkVUE/LmJyb3dzZXI/Lm5hbWUgPz8gXCJ1bmtub3duXCJ9XyR7cGFyc2VkVUE/LmJyb3dzZXI/LnZlcnNpb24gPz8gXCJ1bmtub3duXCJ9YF0sXG4gICAgXTtcblxuICAgIGlmIChzZXJ2aWNlSWQpIHtcbiAgICAgIC8vIGFwaS1tZXRhZGF0YVxuICAgICAgLy8gc2VydmljZSBJZCBtYXkgbm90IGFwcGVhciBpbiBub24tQVdTIGNsaWVudHNcbiAgICAgIHNlY3Rpb25zLnB1c2goW2BhcGkvJHtzZXJ2aWNlSWR9YCwgY2xpZW50VmVyc2lvbl0pO1xuICAgIH1cblxuICAgIHJldHVybiBzZWN0aW9ucztcbiAgfTtcbiJdfQ== |
@@ -8,3 +8,3 @@ "use strict"; | ||
*/ | ||
const defaultUserAgent = ({ serviceId, clientVersion, }) => async () => { | ||
const defaultUserAgent = ({ serviceId, clientVersion }) => async () => { | ||
const sections = [ | ||
@@ -28,2 +28,2 @@ // sdk-metadata | ||
exports.defaultUserAgent = defaultUserAgent; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2luZGV4Lm5hdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQTs7O0dBR0c7QUFDSSxNQUFNLGdCQUFnQixHQUFHLENBQUMsRUFDL0IsU0FBUyxFQUNULGFBQWEsR0FDVyxFQUF1QixFQUFFLENBQUMsS0F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W9uXSxcbiAgICAgIC8vIG9zLW1ldGFkYXRhXG4gICAgICBbXCJvcy9vdGhlclwiXSxcbiAgICAgIC8vIGxhbmd1YWdlLW1ldGFkYXRhXG4gICAgICAvLyBFQ01BU2NyaXB0IGVkaXRpb24gZG9lc24ndCBtYXR0ZXIgaW4gSlMuXG4gICAgICBbXCJsYW5nL2pzXCJdLFxuICAgICAgW1wibWQvcm5cIl0sXG4gICAgXTtcblxuICAgIGlmIChzZXJ2aWNlSWQpIHtcbiAgICAgIC8vIGFwaS1tZXRhZGF0YVxuICAgICAgLy8gc2VydmljZSBJZCBtYXkgbm90IGFwcGVhciBpbiBub24tQVdTIGNsaWVudHNcbiAgICAgIHNlY3Rpb25zLnB1c2goW2BhcGkvJHtzZXJ2aWNlSWR9YCwgY2xpZW50VmVyc2lvbl0pO1xuICAgIH1cblxuICAgIHJldHVybiBzZWN0aW9ucztcbiAgfTtcbiJdfQ== |
@@ -13,3 +13,5 @@ import { __awaiter, __generator } from "tslib"; | ||
return __generator(this, function (_h) { | ||
parsedUA = (typeof window !== 'undefined' && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent)) ? bowser.parse(window.navigator.userAgent) : undefined; | ||
parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) | ||
? bowser.parse(window.navigator.userAgent) | ||
: undefined; | ||
sections = [ | ||
@@ -35,2 +37,2 @@ // sdk-metadata | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUk1Qjs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxnQ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gY2xpZW50VmVyc2lvbl0sXG4gICAgICAvLyBvcy1tZXRhZGF0YVxuICAgICAgW2Bvcy8ke3BhcnNlZFVBPy5vcz8ubmFtZSB8fCBcIm90aGVyXCJ9YCwgcGFyc2VkVUE/Lm9zPy52ZXJzaW9uXSxcbiAgICAgIC8vIGxhbmd1YWdlLW1ldGFkYXRhXG4gICAgICAvLyBFQ01BU2NyaXB0IGVkaXRpb24gZG9lc24ndCBtYXR0ZXIgaW4gSlMuXG4gICAgICBbXCJsYW5nL2pzXCJdLFxuICAgICAgLy8gYnJvd3NlciB2ZW5kb3IgYW5kIHZlcnNpb24uXG4gICAgICBbXCJtZC9icm93c2VyXCIsIGAke3BhcnNlZFVBPy5icm93c2VyPy5uYW1lID8/IFwidW5rbm93blwifV8ke3BhcnNlZFVBPy5icm93c2VyPy52ZXJzaW9uID8/IFwidW5rbm93blwifWBdLFxuICAgIF07XG5cbiAgICBpZiAoc2VydmljZUlkKSB7XG4gICAgICAvLyBhcGktbWV0YWRhdGFcbiAgICAgIC8vIHNlcnZpY2UgSWQgbWF5IG5vdCBhcHBlYXIgaW4gbm9uLUFXUyBjbGllbnRzXG4gICAgICBzZWN0aW9ucy5wdXNoKFtgYXBpLyR7c2VydmljZUlkfWAsIGNsaWVudFZlcnNpb25dKTtcbiAgICB9XG5cbiAgICByZXR1cm4gc2VjdGlvbnM7XG4gIH07XG4iXX0= |
@@ -30,2 +30,2 @@ import { __awaiter, __generator } from "tslib"; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubmF0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2luZGV4Lm5hdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBSUE7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLElBQU0sZ0JBQWdCLEdBQUcsVUFBQyxFQUdQO1FBRnhCLFNBQVMs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gICAgIC8vIG9zLW1ldGFkYXRhXG4gICAgICBbXCJvcy9vdGhlclwiXSxcbiAgICAgIC8vIGxhbmd1YWdlLW1ldGFkYXRhXG4gICAgICAvLyBFQ01BU2NyaXB0IGVkaXRpb24gZG9lc24ndCBtYXR0ZXIgaW4gSlMuXG4gICAgICBbXCJsYW5nL2pzXCJdLFxuICAgICAgW1wibWQvcm5cIl0sXG4gICAgXTtcblxuICAgIGlmIChzZXJ2aWNlSWQpIHtcbiAgICAgIC8vIGFwaS1tZXRhZGF0YVxuICAgICAgLy8gc2VydmljZSBJZCBtYXkgbm90IGFwcGVhciBpbiBub24tQVdTIGNsaWVudHNcbiAgICAgIHNlY3Rpb25zLnB1c2goW2BhcGkvJHtzZXJ2aWNlSWR9YCwgY2xpZW50VmVyc2lvbl0pO1xuICAgIH1cblxuICAgIHJldHVybiBzZWN0aW9ucztcbiAgfTtcbiJdfQ== |
@@ -7,2 +7,2 @@ import { Provider, UserAgent } from "@aws-sdk/types"; | ||
*/ | ||
export declare const defaultUserAgent: ({ serviceId, clientVersion, }: DefaultUserAgentOptions) => Provider<UserAgent>; | ||
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>; |
@@ -7,2 +7,2 @@ import { Provider, UserAgent } from "@aws-sdk/types"; | ||
*/ | ||
export declare const defaultUserAgent: ({ serviceId, clientVersion, }: DefaultUserAgentOptions) => Provider<UserAgent>; | ||
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>; |
{ | ||
"name": "@aws-sdk/util-user-agent-browser", | ||
"version": "3.15.0", | ||
"version": "3.18.0", | ||
"scripts": { | ||
@@ -21,3 +21,3 @@ "prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.15.0", | ||
"@aws-sdk/types": "3.18.0", | ||
"bowser": "^2.11.0", | ||
@@ -27,6 +27,6 @@ "tslib": "^2.0.0" | ||
"devDependencies": { | ||
"@aws-sdk/protocol-http": "3.15.0", | ||
"@aws-sdk/protocol-http": "3.18.0", | ||
"@types/jest": "^26.0.4", | ||
"jest": "^26.1.0", | ||
"typescript": "~4.2.4" | ||
"typescript": "~4.3.2" | ||
}, | ||
@@ -33,0 +33,0 @@ "typesVersions": { |
@@ -9,24 +9,23 @@ import { Provider, UserAgent } from "@aws-sdk/types"; | ||
*/ | ||
export const defaultUserAgent = ({ | ||
serviceId, | ||
clientVersion, | ||
}: DefaultUserAgentOptions): Provider<UserAgent> => async () => { | ||
const sections: UserAgent = [ | ||
// sdk-metadata | ||
["aws-sdk-js", clientVersion], | ||
// os-metadata | ||
["os/other"], | ||
// language-metadata | ||
// ECMAScript edition doesn't matter in JS. | ||
["lang/js"], | ||
["md/rn"], | ||
]; | ||
export const defaultUserAgent = | ||
({ serviceId, clientVersion }: DefaultUserAgentOptions): Provider<UserAgent> => | ||
async () => { | ||
const sections: UserAgent = [ | ||
// sdk-metadata | ||
["aws-sdk-js", clientVersion], | ||
// os-metadata | ||
["os/other"], | ||
// language-metadata | ||
// ECMAScript edition doesn't matter in JS. | ||
["lang/js"], | ||
["md/rn"], | ||
]; | ||
if (serviceId) { | ||
// api-metadata | ||
// service Id may not appear in non-AWS clients | ||
sections.push([`api/${serviceId}`, clientVersion]); | ||
} | ||
if (serviceId) { | ||
// api-metadata | ||
// service Id may not appear in non-AWS clients | ||
sections.push([`api/${serviceId}`, clientVersion]); | ||
} | ||
return sections; | ||
}; | ||
return sections; | ||
}; |
@@ -10,26 +10,28 @@ import { Provider, UserAgent } from "@aws-sdk/types"; | ||
*/ | ||
export const defaultUserAgent = ({ | ||
serviceId, | ||
clientVersion, | ||
}: DefaultUserAgentOptions): Provider<UserAgent> => async () => { | ||
const parsedUA = (typeof window !== 'undefined' && window?.navigator?.userAgent) ? bowser.parse(window.navigator.userAgent) : undefined; | ||
const sections: UserAgent = [ | ||
// sdk-metadata | ||
["aws-sdk-js", clientVersion], | ||
// os-metadata | ||
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version], | ||
// language-metadata | ||
// ECMAScript edition doesn't matter in JS. | ||
["lang/js"], | ||
// browser vendor and version. | ||
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`], | ||
]; | ||
export const defaultUserAgent = | ||
({ serviceId, clientVersion }: DefaultUserAgentOptions): Provider<UserAgent> => | ||
async () => { | ||
const parsedUA = | ||
typeof window !== "undefined" && window?.navigator?.userAgent | ||
? bowser.parse(window.navigator.userAgent) | ||
: undefined; | ||
const sections: UserAgent = [ | ||
// sdk-metadata | ||
["aws-sdk-js", clientVersion], | ||
// os-metadata | ||
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version], | ||
// language-metadata | ||
// ECMAScript edition doesn't matter in JS. | ||
["lang/js"], | ||
// browser vendor and version. | ||
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`], | ||
]; | ||
if (serviceId) { | ||
// api-metadata | ||
// service Id may not appear in non-AWS clients | ||
sections.push([`api/${serviceId}`, clientVersion]); | ||
} | ||
if (serviceId) { | ||
// api-metadata | ||
// service Id may not appear in non-AWS clients | ||
sections.push([`api/${serviceId}`, clientVersion]); | ||
} | ||
return sections; | ||
}; | ||
return sections; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70508
229
+ Added@aws-sdk/types@3.18.0(transitive)
- Removed@aws-sdk/types@3.15.0(transitive)
Updated@aws-sdk/types@3.18.0