@aws-sdk/types 3.342.0 → 3.347.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
@@ -28,5 +28,6 @@ tslib_1.__exportStar(require("./signature"), exports);
28
28
  tslib_1.__exportStar(require("./stream"), exports);
29
29
  tslib_1.__exportStar(require("./token"), exports);
30
30
  tslib_1.__exportStar(require("./transfer"), exports);
31
+ tslib_1.__exportStar(require("./uri"), exports);
31
32
  tslib_1.__exportStar(require("./util"), exports);
32
33
  tslib_1.__exportStar(require("./waiter"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist-es/index.js CHANGED
@@ -25,5 +25,6 @@ export * from "./signature";
25
25
  export * from "./stream";
26
26
  export * from "./token";
27
27
  export * from "./transfer";
28
+ export * from "./uri";
28
29
  export * from "./util";
29
30
  export * from "./waiter";
package/dist-es/uri.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { AbortSignal } from "./abort";
2
+ import { URI } from "./uri";
2
3
  /**
3
4
  * @public
4
5
  *
@@ -80,7 +81,7 @@ export interface Endpoint {
80
81
  * Interface an HTTP request class. Contains
81
82
  * addressing information in addition to standard message properties.
82
83
  */
83
- export interface HttpRequest extends HttpMessage, Endpoint {
84
+ export interface HttpRequest extends HttpMessage, URI {
84
85
  method: string;
85
86
  }
86
87
  /**
@@ -91,6 +92,7 @@ export interface HttpRequest extends HttpMessage, Endpoint {
91
92
  */
92
93
  export interface HttpResponse extends HttpMessage {
93
94
  statusCode: number;
95
+ reason?: string;
94
96
  }
95
97
  /**
96
98
  * @public
@@ -25,5 +25,6 @@ export * from "./signature";
25
25
  export * from "./stream";
26
26
  export * from "./token";
27
27
  export * from "./transfer";
28
+ export * from "./uri";
28
29
  export * from "./util";
29
30
  export * from "./waiter";
@@ -1,4 +1,5 @@
1
1
  import { AbortSignal } from "./abort";
2
+ import { URI } from "./uri";
2
3
  export interface Headers extends Map<string, string> {
3
4
  withHeader(headerName: string, headerValue: string): Headers;
4
5
  withoutHeader(headerName: string): Headers;
@@ -16,11 +17,12 @@ export interface Endpoint {
16
17
  path: string;
17
18
  query?: QueryParameterBag;
18
19
  }
19
- export interface HttpRequest extends HttpMessage, Endpoint {
20
+ export interface HttpRequest extends HttpMessage, URI {
20
21
  method: string;
21
22
  }
22
23
  export interface HttpResponse extends HttpMessage {
23
24
  statusCode: number;
25
+ reason?: string;
24
26
  }
25
27
  export interface ResolvedHttpResponse extends HttpResponse {
26
28
  body: string;
@@ -25,5 +25,6 @@ export * from "./signature";
25
25
  export * from "./stream";
26
26
  export * from "./token";
27
27
  export * from "./transfer";
28
+ export * from "./uri";
28
29
  export * from "./util";
29
30
  export * from "./waiter";
@@ -0,0 +1,11 @@
1
+ import { QueryParameterBag } from "./http";
2
+ export type URI = {
3
+ protocol: string;
4
+ hostname: string;
5
+ port?: number;
6
+ path: string;
7
+ query?: QueryParameterBag;
8
+ username?: string;
9
+ password?: string;
10
+ fragment?: string;
11
+ };
@@ -0,0 +1,17 @@
1
+ import { QueryParameterBag } from "./http";
2
+ /**
3
+ * @internal
4
+ *
5
+ * Represents the components parts of a Uniform Resource Identifier used to
6
+ * construct the target location of a Request.
7
+ */
8
+ export type URI = {
9
+ protocol: string;
10
+ hostname: string;
11
+ port?: number;
12
+ path: string;
13
+ query?: QueryParameterBag;
14
+ username?: string;
15
+ password?: string;
16
+ fragment?: string;
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.342.0",
3
+ "version": "3.347.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",