@cdklabs/cdk-ecs-codedeploy 0.0.179 → 0.0.181

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.
Files changed (88) hide show
  1. package/.jsii +4 -4
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/abort-controller/package.json +2 -2
  7. package/node_modules/@aws-sdk/client-codedeploy/package.json +29 -29
  8. package/node_modules/@aws-sdk/client-sso/package.json +25 -25
  9. package/node_modules/@aws-sdk/client-sso-oidc/package.json +25 -25
  10. package/node_modules/@aws-sdk/client-sts/package.json +29 -29
  11. package/node_modules/@aws-sdk/config-resolver/package.json +4 -4
  12. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  14. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  15. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  16. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  17. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  18. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  19. package/node_modules/@aws-sdk/eventstream-codec/package.json +2 -2
  20. package/node_modules/@aws-sdk/fetch-http-handler/dist-cjs/fetch-http-handler.js +16 -6
  21. package/node_modules/@aws-sdk/fetch-http-handler/dist-es/fetch-http-handler.js +15 -6
  22. package/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  23. package/node_modules/@aws-sdk/hash-node/package.json +2 -2
  24. package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  25. package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  26. package/node_modules/@aws-sdk/middleware-endpoint/package.json +5 -5
  27. package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  28. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  29. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  30. package/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  31. package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -3
  32. package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  33. package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  34. package/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  35. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  36. package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  37. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +17 -1
  38. package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +18 -5
  39. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http-handler.js +16 -1
  40. package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-handler.js +16 -3
  41. package/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  42. package/node_modules/@aws-sdk/property-provider/package.json +2 -2
  43. package/node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +3 -0
  44. package/node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js +1 -0
  45. package/node_modules/@aws-sdk/protocol-http/dist-es/httpRequest.js +3 -0
  46. package/node_modules/@aws-sdk/protocol-http/dist-es/httpResponse.js +1 -0
  47. package/node_modules/@aws-sdk/protocol-http/dist-types/httpRequest.d.ts +6 -3
  48. package/node_modules/@aws-sdk/protocol-http/dist-types/httpResponse.d.ts +2 -0
  49. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/httpRequest.d.ts +6 -3
  50. package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/httpResponse.d.ts +2 -0
  51. package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  52. package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  53. package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  54. package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  55. package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  56. package/node_modules/@aws-sdk/signature-v4/package.json +5 -5
  57. package/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  58. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  59. package/node_modules/@aws-sdk/types/dist-cjs/index.js +1 -0
  60. package/node_modules/@aws-sdk/types/dist-cjs/uri.js +2 -0
  61. package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
  62. package/node_modules/@aws-sdk/types/dist-es/uri.js +1 -0
  63. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +3 -1
  64. package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
  65. package/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +3 -1
  66. package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
  67. package/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +11 -0
  68. package/node_modules/@aws-sdk/types/dist-types/uri.d.ts +17 -0
  69. package/node_modules/@aws-sdk/types/package.json +1 -1
  70. package/node_modules/@aws-sdk/url-parser/package.json +3 -3
  71. package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  72. package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  73. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  74. package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  75. package/node_modules/@aws-sdk/util-retry/package.json +3 -3
  76. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  77. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  78. package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  79. package/node_modules/fast-xml-parser/CHANGELOG.md +26 -0
  80. package/node_modules/fast-xml-parser/README.md +1 -0
  81. package/node_modules/fast-xml-parser/package.json +7 -4
  82. package/node_modules/fast-xml-parser/src/fxp.d.ts +10 -1
  83. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +12 -2
  84. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +108 -71
  85. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +4 -0
  86. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +43 -20
  87. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +13 -1
  88. package/package.json +7 -7
@@ -65,18 +65,33 @@ export class NodeHttpHandler {
65
65
  }
66
66
  const isSSL = request.protocol === "https:";
67
67
  const queryString = buildQueryString(request.query || {});
68
+ let auth = undefined;
69
+ if (request.username != null || request.password != null) {
70
+ const username = request.username ?? "";
71
+ const password = request.password ?? "";
72
+ auth = `${username}:${password}`;
73
+ }
74
+ let path = request.path;
75
+ if (queryString) {
76
+ path += `?${queryString}`;
77
+ }
78
+ if (request.fragment) {
79
+ path += `#${request.fragment}`;
80
+ }
68
81
  const nodeHttpsOptions = {
69
82
  headers: request.headers,
70
83
  host: request.hostname,
71
84
  method: request.method,
72
- path: queryString ? `${request.path}?${queryString}` : request.path,
85
+ path,
73
86
  port: request.port,
74
87
  agent: isSSL ? this.config.httpsAgent : this.config.httpAgent,
88
+ auth,
75
89
  };
76
90
  const requestFunc = isSSL ? hsRequest : hRequest;
77
91
  const req = requestFunc(nodeHttpsOptions, (res) => {
78
92
  const httpResponse = new HttpResponse({
79
93
  statusCode: res.statusCode || -1,
94
+ reason: res.statusMessage,
80
95
  headers: getTransformedHeaders(res.headers),
81
96
  body: res,
82
97
  });
@@ -51,8 +51,14 @@ export class NodeHttp2Handler {
51
51
  reject(abortError);
52
52
  return;
53
53
  }
54
- const { hostname, method, port, protocol, path, query } = request;
55
- const authority = `${protocol}//${hostname}${port ? `:${port}` : ""}`;
54
+ const { hostname, method, port, protocol, query } = request;
55
+ let auth = "";
56
+ if (request.username != null || request.password != null) {
57
+ const username = request.username ?? "";
58
+ const password = request.password ?? "";
59
+ auth = `${username}:${password}@`;
60
+ }
61
+ const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`;
56
62
  const requestContext = { destination: new URL(authority) };
57
63
  const session = this.connectionManager.lease(requestContext, {
58
64
  requestTimeout: this.config?.sessionTimeout,
@@ -66,9 +72,16 @@ export class NodeHttp2Handler {
66
72
  reject(err);
67
73
  };
68
74
  const queryString = buildQueryString(query || {});
75
+ let path = request.path;
76
+ if (queryString) {
77
+ path += `?${queryString}`;
78
+ }
79
+ if (request.fragment) {
80
+ path += `#${request.fragment}`;
81
+ }
69
82
  const req = session.request({
70
83
  ...request.headers,
71
- [constants.HTTP2_HEADER_PATH]: queryString ? `${path}?${queryString}` : path,
84
+ [constants.HTTP2_HEADER_PATH]: path,
72
85
  [constants.HTTP2_HEADER_METHOD]: method,
73
86
  });
74
87
  session.ref();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/node-http-handler",
3
- "version": "3.344.0",
3
+ "version": "3.347.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -23,10 +23,10 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "types": "./dist-types/index.d.ts",
25
25
  "dependencies": {
26
- "@aws-sdk/abort-controller": "3.342.0",
27
- "@aws-sdk/protocol-http": "3.342.0",
28
- "@aws-sdk/querystring-builder": "3.342.0",
29
- "@aws-sdk/types": "3.342.0",
26
+ "@aws-sdk/abort-controller": "3.347.0",
27
+ "@aws-sdk/protocol-http": "3.347.0",
28
+ "@aws-sdk/querystring-builder": "3.347.0",
29
+ "@aws-sdk/types": "3.347.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/property-provider",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.342.0",
23
+ "@aws-sdk/types": "3.347.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -15,6 +15,9 @@ class HttpRequest {
15
15
  : options.protocol
16
16
  : "https:";
17
17
  this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
18
+ this.username = options.username;
19
+ this.password = options.password;
20
+ this.fragment = options.fragment;
18
21
  }
19
22
  static isInstance(request) {
20
23
  if (!request)
@@ -4,6 +4,7 @@ exports.HttpResponse = void 0;
4
4
  class HttpResponse {
5
5
  constructor(options) {
6
6
  this.statusCode = options.statusCode;
7
+ this.reason = options.reason;
7
8
  this.headers = options.headers || {};
8
9
  this.body = options.body;
9
10
  }
@@ -12,6 +12,9 @@ export class HttpRequest {
12
12
  : options.protocol
13
13
  : "https:";
14
14
  this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
15
+ this.username = options.username;
16
+ this.password = options.password;
17
+ this.fragment = options.fragment;
15
18
  }
16
19
  static isInstance(request) {
17
20
  if (!request)
@@ -1,6 +1,7 @@
1
1
  export class HttpResponse {
2
2
  constructor(options) {
3
3
  this.statusCode = options.statusCode;
4
+ this.reason = options.reason;
4
5
  this.headers = options.headers || {};
5
6
  this.body = options.body;
6
7
  }
@@ -1,10 +1,10 @@
1
- import { Endpoint, HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag } from "@aws-sdk/types";
2
- type HttpRequestOptions = Partial<HttpMessage> & Partial<Endpoint> & {
1
+ import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@aws-sdk/types";
2
+ type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & {
3
3
  method?: string;
4
4
  };
5
5
  export interface HttpRequest extends IHttpRequest {
6
6
  }
7
- export declare class HttpRequest implements HttpMessage, Endpoint {
7
+ export declare class HttpRequest implements HttpMessage, URI {
8
8
  method: string;
9
9
  protocol: string;
10
10
  hostname: string;
@@ -12,6 +12,9 @@ export declare class HttpRequest implements HttpMessage, Endpoint {
12
12
  path: string;
13
13
  query: QueryParameterBag;
14
14
  headers: HeaderBag;
15
+ username?: string;
16
+ password?: string;
17
+ fragment?: string;
15
18
  body?: any;
16
19
  constructor(options: HttpRequestOptions);
17
20
  static isInstance(request: unknown): request is HttpRequest;
@@ -1,11 +1,13 @@
1
1
  import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@aws-sdk/types";
2
2
  type HttpResponseOptions = Partial<HttpMessage> & {
3
3
  statusCode: number;
4
+ reason?: string;
4
5
  };
5
6
  export interface HttpResponse extends IHttpResponse {
6
7
  }
7
8
  export declare class HttpResponse {
8
9
  statusCode: number;
10
+ reason?: string;
9
11
  headers: HeaderBag;
10
12
  body?: any;
11
13
  constructor(options: HttpResponseOptions);
@@ -1,16 +1,16 @@
1
1
  import {
2
- Endpoint,
3
2
  HeaderBag,
4
3
  HttpMessage,
5
4
  HttpRequest as IHttpRequest,
6
5
  QueryParameterBag,
6
+ URI,
7
7
  } from "@aws-sdk/types";
8
8
  type HttpRequestOptions = Partial<HttpMessage> &
9
- Partial<Endpoint> & {
9
+ Partial<URI> & {
10
10
  method?: string;
11
11
  };
12
12
  export interface HttpRequest extends IHttpRequest {}
13
- export declare class HttpRequest implements HttpMessage, Endpoint {
13
+ export declare class HttpRequest implements HttpMessage, URI {
14
14
  method: string;
15
15
  protocol: string;
16
16
  hostname: string;
@@ -18,6 +18,9 @@ export declare class HttpRequest implements HttpMessage, Endpoint {
18
18
  path: string;
19
19
  query: QueryParameterBag;
20
20
  headers: HeaderBag;
21
+ username?: string;
22
+ password?: string;
23
+ fragment?: string;
21
24
  body?: any;
22
25
  constructor(options: HttpRequestOptions);
23
26
  static isInstance(request: unknown): request is HttpRequest;
@@ -5,10 +5,12 @@ import {
5
5
  } from "@aws-sdk/types";
6
6
  type HttpResponseOptions = Partial<HttpMessage> & {
7
7
  statusCode: number;
8
+ reason?: string;
8
9
  };
9
10
  export interface HttpResponse extends IHttpResponse {}
10
11
  export declare class HttpResponse {
11
12
  statusCode: number;
13
+ reason?: string;
12
14
  headers: HeaderBag;
13
15
  body?: any;
14
16
  constructor(options: HttpResponseOptions);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/protocol-http",
3
- "version": "3.342.0",
3
+ "version": "3.347.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,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.342.0",
24
+ "@aws-sdk/types": "3.347.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-builder",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.342.0",
23
+ "@aws-sdk/types": "3.347.0",
24
24
  "@aws-sdk/util-uri-escape": "3.310.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/querystring-parser",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.342.0",
23
+ "@aws-sdk/types": "3.347.0",
24
24
  "tslib": "^2.5.0"
25
25
  },
26
26
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/service-error-classification",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "devDependencies": {
23
- "@aws-sdk/types": "3.342.0",
23
+ "@aws-sdk/types": "3.347.0",
24
24
  "@tsconfig/recommended": "1.0.1",
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aws-sdk/shared-ini-file-loader",
3
- "version": "3.342.0",
3
+ "version": "3.347.0",
4
4
  "dependencies": {
5
- "@aws-sdk/types": "3.342.0",
5
+ "@aws-sdk/types": "3.347.0",
6
6
  "tslib": "^2.5.0"
7
7
  },
8
8
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4",
3
- "version": "3.342.0",
3
+ "version": "3.347.0",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,18 +22,18 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/eventstream-codec": "3.342.0",
25
+ "@aws-sdk/eventstream-codec": "3.347.0",
26
26
  "@aws-sdk/is-array-buffer": "3.310.0",
27
- "@aws-sdk/types": "3.342.0",
27
+ "@aws-sdk/types": "3.347.0",
28
28
  "@aws-sdk/util-hex-encoding": "3.310.0",
29
- "@aws-sdk/util-middleware": "3.342.0",
29
+ "@aws-sdk/util-middleware": "3.347.0",
30
30
  "@aws-sdk/util-uri-escape": "3.310.0",
31
31
  "@aws-sdk/util-utf8": "3.310.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@aws-crypto/sha256-js": "3.0.0",
36
- "@aws-sdk/protocol-http": "3.342.0",
36
+ "@aws-sdk/protocol-http": "3.347.0",
37
37
  "@tsconfig/recommended": "1.0.1",
38
38
  "concurrently": "7.0.0",
39
39
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/smithy-client",
3
- "version": "3.342.0",
3
+ "version": "3.347.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,8 +21,8 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-stack": "3.342.0",
25
- "@aws-sdk/types": "3.342.0",
24
+ "@aws-sdk/middleware-stack": "3.347.0",
25
+ "@aws-sdk/types": "3.347.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.345.0",
3
+ "version": "3.347.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso-oidc": "3.345.0",
30
- "@aws-sdk/property-provider": "3.342.0",
31
- "@aws-sdk/shared-ini-file-loader": "3.342.0",
32
- "@aws-sdk/types": "3.342.0",
29
+ "@aws-sdk/client-sso-oidc": "3.347.0",
30
+ "@aws-sdk/property-provider": "3.347.0",
31
+ "@aws-sdk/shared-ini-file-loader": "3.347.0",
32
+ "@aws-sdk/types": "3.347.0",
33
33
  "tslib": "^2.5.0"
34
34
  },
35
35
  "devDependencies": {
@@ -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 });
@@ -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 @@
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
+ };
@@ -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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/url-parser",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/querystring-parser": "3.342.0",
24
- "@aws-sdk/types": "3.342.0",
23
+ "@aws-sdk/querystring-parser": "3.347.0",
24
+ "@aws-sdk/types": "3.347.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-browser",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -19,13 +19,13 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/property-provider": "3.342.0",
23
- "@aws-sdk/types": "3.342.0",
22
+ "@aws-sdk/property-provider": "3.347.0",
23
+ "@aws-sdk/types": "3.347.0",
24
24
  "bowser": "^2.11.0",
25
25
  "tslib": "^2.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@aws-sdk/smithy-client": "3.342.0",
28
+ "@aws-sdk/smithy-client": "3.347.0",
29
29
  "@tsconfig/recommended": "1.0.1",
30
30
  "@types/node": "^14.14.31",
31
31
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-defaults-mode-node",
3
- "version": "3.342.0",
3
+ "version": "3.347.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",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/config-resolver": "3.342.0",
23
- "@aws-sdk/credential-provider-imds": "3.342.0",
24
- "@aws-sdk/node-config-provider": "3.342.0",
25
- "@aws-sdk/property-provider": "3.342.0",
26
- "@aws-sdk/types": "3.342.0",
22
+ "@aws-sdk/config-resolver": "3.347.0",
23
+ "@aws-sdk/credential-provider-imds": "3.347.0",
24
+ "@aws-sdk/node-config-provider": "3.347.0",
25
+ "@aws-sdk/property-provider": "3.347.0",
26
+ "@aws-sdk/types": "3.347.0",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/smithy-client": "3.342.0",
30
+ "@aws-sdk/smithy-client": "3.347.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.342.0",
3
+ "version": "3.347.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.342.0",
25
+ "@aws-sdk/types": "3.347.0",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-middleware",
3
- "version": "3.342.0",
3
+ "version": "3.347.0",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,7 +27,7 @@
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/types": "3.342.0",
30
+ "@aws-sdk/types": "3.347.0",
31
31
  "@tsconfig/recommended": "1.0.1",
32
32
  "@types/node": "^14.14.31",
33
33
  "concurrently": "7.0.0",