@aws-sdk/middleware-user-agent 3.750.0 → 3.774.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -19,15 +19,15 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  DEFAULT_UA_APP_ID: () => DEFAULT_UA_APP_ID,
25
25
  getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions,
26
26
  getUserAgentPlugin: () => getUserAgentPlugin,
27
27
  resolveUserAgentConfig: () => resolveUserAgentConfig,
28
28
  userAgentMiddleware: () => userAgentMiddleware
29
29
  });
30
- module.exports = __toCommonJS(src_exports);
30
+ module.exports = __toCommonJS(index_exports);
31
31
 
32
32
  // src/configurations.ts
33
33
  var import_core = require("@smithy/core");
@@ -44,7 +44,7 @@ function resolveUserAgentConfig(input) {
44
44
  return {
45
45
  ...input,
46
46
  customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent,
47
- userAgentAppId: async () => {
47
+ userAgentAppId: /* @__PURE__ */ __name(async () => {
48
48
  const appId = await normalizedAppIdProvider();
49
49
  if (!isValidUserAgentAppId(appId)) {
50
50
  const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
@@ -55,7 +55,7 @@ function resolveUserAgentConfig(input) {
55
55
  }
56
56
  }
57
57
  return appId;
58
- }
58
+ }, "userAgentAppId")
59
59
  };
60
60
  }
61
61
  __name(resolveUserAgentConfig, "resolveUserAgentConfig");
@@ -211,9 +211,9 @@ var getUserAgentMiddlewareOptions = {
211
211
  override: true
212
212
  };
213
213
  var getUserAgentPlugin = /* @__PURE__ */ __name((config) => ({
214
- applyToStack: (clientStack) => {
214
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
215
215
  clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
216
- }
216
+ }, "applyToStack")
217
217
  }), "getUserAgentPlugin");
218
218
  // Annotate the CommonJS export names for ESM import in node:
219
219
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.750.0",
3
+ "version": "3.774.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "3.750.0",
27
+ "@aws-sdk/core": "3.774.0",
28
28
  "@aws-sdk/types": "3.734.0",
29
29
  "@aws-sdk/util-endpoints": "3.743.0",
30
- "@smithy/core": "^3.1.4",
30
+ "@smithy/core": "^3.1.5",
31
31
  "@smithy/protocol-http": "^5.0.1",
32
32
  "@smithy/types": "^4.1.0",
33
33
  "tslib": "^2.6.2"