13 lines
345 B
JavaScript
13 lines
345 B
JavaScript
export const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
|
|
const sections = [
|
|
["aws-sdk-js", clientVersion],
|
|
["ua", "2.0"],
|
|
["os/other"],
|
|
["lang/js"],
|
|
["md/rn"],
|
|
];
|
|
if (serviceId) {
|
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
}
|
|
return sections;
|
|
};
|