dragonroll/backend/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js

14 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;
};