@aws-sdk/middleware-user-agent 3.357.0 → 3.369.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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0;
4
- const protocol_http_1 = require("@aws-sdk/protocol-http");
5
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const constants_1 = require("./constants");
7
7
  const userAgentMiddleware = (options) => (next, context) => async (args) => {
8
8
  var _a, _b;
@@ -1,5 +1,5 @@
1
- import { HttpRequest } from "@aws-sdk/protocol-http";
2
1
  import { getUserAgentPrefix } from "@aws-sdk/util-endpoints";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
3
  import { SPACE, UA_ESCAPE_CHAR, UA_NAME_ESCAPE_REGEX, UA_NAME_SEPARATOR, UA_VALUE_ESCAPE_REGEX, USER_AGENT, X_AMZ_USER_AGENT, } from "./constants";
4
4
  export const userAgentMiddleware = (options) => (next, context) => async (args) => {
5
5
  const { request } = args;
@@ -1,4 +1,4 @@
1
- import { Provider, UserAgent } from "@aws-sdk/types";
1
+ import { Provider, UserAgent } from "@smithy/types";
2
2
  export interface UserAgentInputConfig {
3
3
  /**
4
4
  * The custom user agent header that would be appended to default one
@@ -1,4 +1,4 @@
1
- import { Provider, UserAgent } from "@aws-sdk/types";
1
+ import { Provider, UserAgent } from "@smithy/types";
2
2
  export interface UserAgentInputConfig {
3
3
  customUserAgent?: string | UserAgent;
4
4
  }
@@ -5,7 +5,7 @@ import {
5
5
  HandlerExecutionContext,
6
6
  MetadataBearer,
7
7
  Pluggable,
8
- } from "@aws-sdk/types";
8
+ } from "@smithy/types";
9
9
  import { UserAgentResolvedConfig } from "./configurations";
10
10
  export declare const userAgentMiddleware: (
11
11
  options: UserAgentResolvedConfig
@@ -1,4 +1,4 @@
1
- import { AbsoluteLocation, BuildHandler, BuildHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@aws-sdk/types";
1
+ import { AbsoluteLocation, BuildHandler, BuildHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types";
2
2
  import { UserAgentResolvedConfig } from "./configurations";
3
3
  /**
4
4
  * Build user agent header sections from:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.357.0",
3
+ "version": "3.369.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,10 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/protocol-http": "3.357.0",
25
- "@aws-sdk/types": "3.357.0",
26
- "@aws-sdk/util-endpoints": "3.357.0",
24
+ "@aws-sdk/types": "3.369.0",
25
+ "@aws-sdk/util-endpoints": "3.369.0",
26
+ "@smithy/protocol-http": "^1.1.0",
27
+ "@smithy/types": "^1.1.0",
27
28
  "tslib": "^2.5.0"
28
29
  },
29
30
  "devDependencies": {