@cdklabs/cdk-ecs-codedeploy 0.0.95 → 0.0.96
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/.jsii +6 -6
- package/.projenrc.ts +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/abort-controller/package.json +6 -3
- package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -41
- package/node_modules/@aws-sdk/client-sso/package.json +32 -37
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +32 -37
- package/node_modules/@aws-sdk/client-sts/package.json +35 -40
- package/node_modules/@aws-sdk/config-resolver/package.json +10 -7
- package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -4
- package/node_modules/@aws-sdk/credential-provider-imds/package.json +9 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -4
- package/node_modules/@aws-sdk/fetch-http-handler/package.json +10 -7
- package/node_modules/@aws-sdk/hash-node/package.json +8 -5
- package/node_modules/@aws-sdk/invalid-dependency/package.json +6 -3
- package/node_modules/@aws-sdk/is-array-buffer/package.json +5 -2
- package/node_modules/@aws-sdk/middleware-content-length/package.json +7 -4
- package/node_modules/@aws-sdk/middleware-endpoint/package.json +12 -9
- package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -4
- package/node_modules/@aws-sdk/middleware-retry/package.json +11 -8
- package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +10 -7
- package/node_modules/@aws-sdk/middleware-serde/package.json +6 -3
- package/node_modules/@aws-sdk/middleware-signing/package.json +10 -7
- package/node_modules/@aws-sdk/middleware-stack/package.json +6 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -5
- package/node_modules/@aws-sdk/node-config-provider/package.json +8 -5
- package/node_modules/@aws-sdk/node-http-handler/package.json +9 -6
- package/node_modules/@aws-sdk/property-provider/package.json +6 -3
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/Field.js +1 -1
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/Fields.js +0 -10
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +24 -99
- package/node_modules/@aws-sdk/protocol-http/dist-es/Field.js +1 -1
- package/node_modules/@aws-sdk/protocol-http/dist-es/Fields.js +0 -10
- package/node_modules/@aws-sdk/protocol-http/dist-es/httpRequest.js +24 -99
- package/node_modules/@aws-sdk/protocol-http/dist-types/Field.d.ts +1 -1
- package/node_modules/@aws-sdk/protocol-http/dist-types/Fields.d.ts +1 -18
- package/node_modules/@aws-sdk/protocol-http/dist-types/httpRequest.d.ts +7 -50
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/Fields.d.ts +1 -3
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/httpRequest.d.ts +15 -30
- package/node_modules/@aws-sdk/protocol-http/package.json +7 -4
- package/node_modules/@aws-sdk/querystring-builder/package.json +7 -4
- package/node_modules/@aws-sdk/querystring-parser/package.json +6 -3
- package/node_modules/@aws-sdk/service-error-classification/package.json +6 -3
- package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +6 -3
- package/node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +1 -18
- package/node_modules/@aws-sdk/signature-v4/dist-es/prepareRequest.js +1 -18
- package/node_modules/@aws-sdk/signature-v4/package.json +13 -10
- package/node_modules/@aws-sdk/smithy-client/dist-types/date-utils.d.ts +16 -16
- package/node_modules/@aws-sdk/smithy-client/dist-types/default-error-handler.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/parse-utils.d.ts +23 -23
- package/node_modules/@aws-sdk/smithy-client/dist-types/ser-utils.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/split-every.d.ts +3 -3
- package/node_modules/@aws-sdk/smithy-client/package.json +7 -4
- package/node_modules/@aws-sdk/token-providers/package.json +9 -6
- package/node_modules/@aws-sdk/types/dist-types/abort.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/auth.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/dns.d.ts +3 -3
- package/node_modules/@aws-sdk/types/dist-types/http.d.ts +6 -10
- package/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/logger.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +15 -15
- package/node_modules/@aws-sdk/types/dist-types/profile.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/retry.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/serde.d.ts +7 -7
- package/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +1 -2
- package/node_modules/@aws-sdk/types/dist-types/signature.d.ts +4 -4
- package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/util.d.ts +4 -4
- package/node_modules/@aws-sdk/types/package.json +5 -2
- package/node_modules/@aws-sdk/url-parser/package.json +7 -4
- package/node_modules/@aws-sdk/util-base64/package.json +6 -3
- package/node_modules/@aws-sdk/util-body-length-browser/package.json +5 -2
- package/node_modules/@aws-sdk/util-body-length-node/package.json +5 -2
- package/node_modules/@aws-sdk/util-buffer-from/package.json +6 -3
- package/node_modules/@aws-sdk/util-config-provider/package.json +5 -2
- package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +8 -5
- package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +11 -8
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -3
- package/node_modules/@aws-sdk/util-hex-encoding/package.json +5 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +5 -2
- package/node_modules/@aws-sdk/util-middleware/package.json +6 -3
- package/node_modules/@aws-sdk/util-retry/package.json +7 -4
- package/node_modules/@aws-sdk/util-uri-escape/package.json +5 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +7 -4
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -5
- package/node_modules/@aws-sdk/util-utf8/package.json +6 -3
- package/node_modules/@aws-sdk/util-waiter/dist-types/poller.d.ts +4 -4
- package/node_modules/@aws-sdk/util-waiter/dist-types/utils/validate.d.ts +1 -1
- package/node_modules/@aws-sdk/util-waiter/dist-types/waiter.d.ts +1 -1
- package/node_modules/@aws-sdk/util-waiter/package.json +7 -4
- package/package.json +14 -14
- package/node_modules/@aws-sdk/is-array-buffer/CHANGELOG.md +0 -663
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/headersProxy.js +0 -52
- package/node_modules/@aws-sdk/protocol-http/dist-cjs/queryProxy.js +0 -71
- package/node_modules/@aws-sdk/protocol-http/dist-es/headersProxy.js +0 -45
- package/node_modules/@aws-sdk/protocol-http/dist-es/queryProxy.js +0 -65
- package/node_modules/@aws-sdk/protocol-http/dist-types/headersProxy.d.ts +0 -39
- package/node_modules/@aws-sdk/protocol-http/dist-types/queryProxy.d.ts +0 -29
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/headersProxy.d.ts +0 -8
- package/node_modules/@aws-sdk/protocol-http/dist-types/ts3.4/queryProxy.d.ts +0 -10
- package/node_modules/@aws-sdk/util-body-length-browser/CHANGELOG.md +0 -681
- package/node_modules/@aws-sdk/util-hex-encoding/CHANGELOG.md +0 -676
- package/node_modules/@aws-sdk/util-uri-escape/CHANGELOG.md +0 -768
|
@@ -1,86 +1,17 @@
|
|
|
1
|
-
import { Fields } from "./Fields";
|
|
2
|
-
import { getHeadersProxy, headersToFields } from "./headersProxy";
|
|
3
|
-
import { getQueryProxy, queryToSearchParams } from "./queryProxy";
|
|
4
1
|
export class HttpRequest {
|
|
5
2
|
constructor(options) {
|
|
6
|
-
this.protocol = "https";
|
|
7
|
-
this.hostname = "localhost";
|
|
8
|
-
this.path = "/";
|
|
9
|
-
this.query = {};
|
|
10
|
-
this.headers = {};
|
|
11
3
|
this.method = options.method || "GET";
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
4
|
+
this.hostname = options.hostname || "localhost";
|
|
5
|
+
this.port = options.port;
|
|
6
|
+
this.query = options.query || {};
|
|
7
|
+
this.headers = options.headers || {};
|
|
14
8
|
this.body = options.body;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
set(protocol) {
|
|
23
|
-
httpRequest.destination.protocol = protocol;
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
hostname: {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get() {
|
|
29
|
-
return httpRequest.destination.hostname;
|
|
30
|
-
},
|
|
31
|
-
set(hostname) {
|
|
32
|
-
httpRequest.destination.hostname = hostname;
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
port: {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get() {
|
|
38
|
-
const port = httpRequest.destination.port;
|
|
39
|
-
return port ? Number(port) : undefined;
|
|
40
|
-
},
|
|
41
|
-
set(port) {
|
|
42
|
-
httpRequest.destination.port = String(port);
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
path: {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get() {
|
|
48
|
-
return httpRequest.destination.pathname;
|
|
49
|
-
},
|
|
50
|
-
set(path) {
|
|
51
|
-
httpRequest.destination.pathname = path;
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
query: {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get() {
|
|
57
|
-
return getQueryProxy(httpRequest.destination.searchParams);
|
|
58
|
-
},
|
|
59
|
-
set(query) {
|
|
60
|
-
const searchParams = queryToSearchParams(query || {});
|
|
61
|
-
httpRequest.destination.search = searchParams.toString();
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
headers: {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get() {
|
|
67
|
-
return getHeadersProxy(httpRequest.fields);
|
|
68
|
-
},
|
|
69
|
-
set(headers) {
|
|
70
|
-
httpRequest.fields = headersToFields(headers);
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
static from(options) {
|
|
76
|
-
const request = new HttpRequest(options);
|
|
77
|
-
if (options.destination) {
|
|
78
|
-
request.destination = options.destination;
|
|
79
|
-
}
|
|
80
|
-
if (options.fields) {
|
|
81
|
-
request.fields = options.fields;
|
|
82
|
-
}
|
|
83
|
-
return request;
|
|
9
|
+
this.protocol = options.protocol
|
|
10
|
+
? options.protocol.slice(-1) !== ":"
|
|
11
|
+
? `${options.protocol}:`
|
|
12
|
+
: options.protocol
|
|
13
|
+
: "https:";
|
|
14
|
+
this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/";
|
|
84
15
|
}
|
|
85
16
|
static isInstance(request) {
|
|
86
17
|
if (!request)
|
|
@@ -94,27 +25,21 @@ export class HttpRequest {
|
|
|
94
25
|
typeof req["headers"] === "object");
|
|
95
26
|
}
|
|
96
27
|
clone() {
|
|
97
|
-
|
|
28
|
+
const cloned = new HttpRequest({
|
|
98
29
|
...this,
|
|
99
|
-
|
|
100
|
-
fields: Fields.from(this.fields.getAll().map((field) => ({
|
|
101
|
-
...field,
|
|
102
|
-
values: [...field.values],
|
|
103
|
-
}))),
|
|
30
|
+
headers: { ...this.headers },
|
|
104
31
|
});
|
|
32
|
+
if (cloned.query)
|
|
33
|
+
cloned.query = cloneQuery(cloned.query);
|
|
34
|
+
return cloned;
|
|
105
35
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
const searchParams = queryToSearchParams(options.query || {});
|
|
116
|
-
const url = new URL(`${protocol}//${hostname}${port}${path}`);
|
|
117
|
-
url.search = searchParams.toString();
|
|
118
|
-
return url;
|
|
119
|
-
}
|
|
36
|
+
}
|
|
37
|
+
function cloneQuery(query) {
|
|
38
|
+
return Object.keys(query).reduce((carry, paramName) => {
|
|
39
|
+
const param = query[paramName];
|
|
40
|
+
return {
|
|
41
|
+
...carry,
|
|
42
|
+
[paramName]: Array.isArray(param) ? [...param] : param,
|
|
43
|
+
};
|
|
44
|
+
}, {});
|
|
120
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field
|
|
1
|
+
import { Field } from "./Field";
|
|
2
2
|
import { FieldPosition } from "./FieldPosition";
|
|
3
3
|
export declare type FieldsOptions = {
|
|
4
4
|
fields?: Field[];
|
|
@@ -41,21 +41,4 @@ export declare class Fields {
|
|
|
41
41
|
* {@link FieldPosition}.
|
|
42
42
|
*/
|
|
43
43
|
getByType(kind: FieldPosition): Field[];
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves all the {@link Field}s in the collection.
|
|
46
|
-
* Includes headers and trailers.
|
|
47
|
-
*
|
|
48
|
-
* @returns All fields in the collection.
|
|
49
|
-
*/
|
|
50
|
-
getAll(): Field[];
|
|
51
|
-
/**
|
|
52
|
-
* Utility for creating {@link Fields} without having to
|
|
53
|
-
* construct each {@link Field} individually.
|
|
54
|
-
*
|
|
55
|
-
* @param fieldsToCreate List of arguments used to create each
|
|
56
|
-
* {@link Field}.
|
|
57
|
-
* @param encoding Optional encoding of resultant {@link Fields}.
|
|
58
|
-
* @returns The {@link Fields} instance.
|
|
59
|
-
*/
|
|
60
|
-
static from(fieldsToCreate: FieldOptions[], encoding?: string): Fields;
|
|
61
44
|
}
|
|
@@ -1,63 +1,20 @@
|
|
|
1
|
-
import { HeaderBag,
|
|
2
|
-
|
|
3
|
-
export interface HttpRequestOptions {
|
|
1
|
+
import { Endpoint, HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag } from "@aws-sdk/types";
|
|
2
|
+
declare type HttpRequestOptions = Partial<HttpMessage> & Partial<Endpoint> & {
|
|
4
3
|
method?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
port?: number;
|
|
8
|
-
path?: string;
|
|
9
|
-
query?: QueryParameterBag;
|
|
10
|
-
headers?: HeaderBag;
|
|
11
|
-
body?: any;
|
|
12
|
-
}
|
|
13
|
-
export interface HttpRequestFromOptions {
|
|
14
|
-
method?: string;
|
|
15
|
-
destination?: URL;
|
|
16
|
-
fields?: Fields;
|
|
17
|
-
body?: any;
|
|
4
|
+
};
|
|
5
|
+
export interface HttpRequest extends IHttpRequest {
|
|
18
6
|
}
|
|
19
|
-
export
|
|
7
|
+
export declare class HttpRequest implements HttpMessage, Endpoint {
|
|
20
8
|
method: string;
|
|
21
|
-
destination: URL;
|
|
22
|
-
fields: Fields;
|
|
23
|
-
body?: any;
|
|
24
|
-
}
|
|
25
|
-
export declare class HttpRequest implements Request {
|
|
26
|
-
method: string;
|
|
27
|
-
destination: URL;
|
|
28
|
-
fields: Fields;
|
|
29
|
-
body?: any;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use protocol in {@link destination}
|
|
32
|
-
*/
|
|
33
9
|
protocol: string;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Use hostname in {@link destination}
|
|
36
|
-
*/
|
|
37
10
|
hostname: string;
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use port in {@link destination}
|
|
40
|
-
*/
|
|
41
11
|
port?: number;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Use pathname in {@link destination}
|
|
44
|
-
*/
|
|
45
12
|
path: string;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Use searchParams in {@link destination}
|
|
48
|
-
*/
|
|
49
13
|
query: QueryParameterBag;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use {@link fields}
|
|
52
|
-
*/
|
|
53
14
|
headers: HeaderBag;
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
* @deprecated Use {@link HttpRequest.from}
|
|
57
|
-
*/
|
|
15
|
+
body?: any;
|
|
58
16
|
constructor(options: HttpRequestOptions);
|
|
59
|
-
static from(options: HttpRequestFromOptions): HttpRequest;
|
|
60
17
|
static isInstance(request: unknown): request is HttpRequest;
|
|
61
18
|
clone(): HttpRequest;
|
|
62
|
-
private static getDefaultDestination;
|
|
63
19
|
}
|
|
20
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field
|
|
1
|
+
import { Field } from "./Field";
|
|
2
2
|
import { FieldPosition } from "./FieldPosition";
|
|
3
3
|
export declare type FieldsOptions = {
|
|
4
4
|
fields?: Field[];
|
|
@@ -12,6 +12,4 @@ export declare class Fields {
|
|
|
12
12
|
getField(name: string): Field | undefined;
|
|
13
13
|
removeField(name: string): void;
|
|
14
14
|
getByType(kind: FieldPosition): Field[];
|
|
15
|
-
getAll(): Field[];
|
|
16
|
-
static from(fieldsToCreate: FieldOptions[], encoding?: string): Fields;
|
|
17
15
|
}
|
|
@@ -1,41 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
export
|
|
14
|
-
method?: string;
|
|
15
|
-
destination?: URL;
|
|
16
|
-
fields?: Fields;
|
|
17
|
-
body?: any;
|
|
18
|
-
}
|
|
19
|
-
export interface HttpRequest extends Request {
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
HeaderBag,
|
|
4
|
+
HttpMessage,
|
|
5
|
+
HttpRequest as IHttpRequest,
|
|
6
|
+
QueryParameterBag,
|
|
7
|
+
} from "@aws-sdk/types";
|
|
8
|
+
declare type HttpRequestOptions = Partial<HttpMessage> &
|
|
9
|
+
Partial<Endpoint> & {
|
|
10
|
+
method?: string;
|
|
11
|
+
};
|
|
12
|
+
export interface HttpRequest extends IHttpRequest {}
|
|
13
|
+
export declare class HttpRequest implements HttpMessage, Endpoint {
|
|
20
14
|
method: string;
|
|
21
|
-
destination: URL;
|
|
22
|
-
fields: Fields;
|
|
23
|
-
body?: any;
|
|
24
|
-
}
|
|
25
|
-
export declare class HttpRequest implements Request {
|
|
26
|
-
method: string;
|
|
27
|
-
destination: URL;
|
|
28
|
-
fields: Fields;
|
|
29
|
-
body?: any;
|
|
30
15
|
protocol: string;
|
|
31
16
|
hostname: string;
|
|
32
17
|
port?: number;
|
|
33
18
|
path: string;
|
|
34
19
|
query: QueryParameterBag;
|
|
35
20
|
headers: HeaderBag;
|
|
21
|
+
body?: any;
|
|
36
22
|
constructor(options: HttpRequestOptions);
|
|
37
|
-
static from(options: HttpRequestFromOptions): HttpRequest;
|
|
38
23
|
static isInstance(request: unknown): request is HttpRequest;
|
|
39
24
|
clone(): HttpRequest;
|
|
40
|
-
private static getDefaultDestination;
|
|
41
25
|
}
|
|
26
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/protocol-http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.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",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
|
-
"test": "jest
|
|
12
|
+
"test": "jest"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"module": "./dist-es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.292.0",
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
@@ -48,7 +48,10 @@
|
|
|
48
48
|
"concurrently": "7.0.0",
|
|
49
49
|
"downlevel-dts": "0.10.1",
|
|
50
50
|
"rimraf": "3.0.2",
|
|
51
|
-
"typedoc": "0.
|
|
51
|
+
"typedoc": "0.23.23",
|
|
52
52
|
"typescript": "~4.6.2"
|
|
53
|
+
},
|
|
54
|
+
"typedoc": {
|
|
55
|
+
"entryPoint": "src/index.ts"
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/querystring-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.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/types": "3.
|
|
24
|
-
"@aws-sdk/util-uri-escape": "3.
|
|
23
|
+
"@aws-sdk/types": "3.292.0",
|
|
24
|
+
"@aws-sdk/util-uri-escape": "3.292.0",
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
@@ -48,7 +48,10 @@
|
|
|
48
48
|
"concurrently": "7.0.0",
|
|
49
49
|
"downlevel-dts": "0.10.1",
|
|
50
50
|
"rimraf": "3.0.2",
|
|
51
|
-
"typedoc": "0.
|
|
51
|
+
"typedoc": "0.23.23",
|
|
52
52
|
"typescript": "~4.6.2"
|
|
53
|
+
},
|
|
54
|
+
"typedoc": {
|
|
55
|
+
"entryPoint": "src/index.ts"
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/querystring-parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.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.
|
|
23
|
+
"@aws-sdk/types": "3.292.0",
|
|
24
24
|
"tslib": "^2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
"concurrently": "7.0.0",
|
|
48
48
|
"downlevel-dts": "0.10.1",
|
|
49
49
|
"rimraf": "3.0.2",
|
|
50
|
-
"typedoc": "0.
|
|
50
|
+
"typedoc": "0.23.23",
|
|
51
51
|
"typescript": "~4.6.2"
|
|
52
|
+
},
|
|
53
|
+
"typedoc": {
|
|
54
|
+
"entryPoint": "src/index.ts"
|
|
52
55
|
}
|
|
53
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/service-error-classification",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.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,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.292.0",
|
|
24
24
|
"@tsconfig/recommended": "1.0.1",
|
|
25
25
|
"concurrently": "7.0.0",
|
|
26
26
|
"downlevel-dts": "0.10.1",
|
|
27
27
|
"rimraf": "3.0.2",
|
|
28
|
-
"typedoc": "0.
|
|
28
|
+
"typedoc": "0.23.23",
|
|
29
29
|
"typescript": "~4.6.2"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
@@ -46,5 +46,8 @@
|
|
|
46
46
|
"type": "git",
|
|
47
47
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
48
48
|
"directory": "packages/service-error-classification"
|
|
49
|
+
},
|
|
50
|
+
"typedoc": {
|
|
51
|
+
"entryPoint": "src/index.ts"
|
|
49
52
|
}
|
|
50
53
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/shared-ini-file-loader",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@aws-sdk/types": "3.
|
|
5
|
+
"@aws-sdk/types": "3.292.0",
|
|
6
6
|
"tslib": "^2.3.1"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"concurrently": "7.0.0",
|
|
12
12
|
"downlevel-dts": "0.10.1",
|
|
13
13
|
"rimraf": "3.0.2",
|
|
14
|
-
"typedoc": "0.
|
|
14
|
+
"typedoc": "0.23.23",
|
|
15
15
|
"typescript": "~4.6.2"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
@@ -50,5 +50,8 @@
|
|
|
50
50
|
"type": "git",
|
|
51
51
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
52
52
|
"directory": "packages/shared-ini-file-loader"
|
|
53
|
+
},
|
|
54
|
+
"typedoc": {
|
|
55
|
+
"entryPoint": "src/index.ts"
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -10,23 +10,6 @@ const prepareRequest = (request) => {
|
|
|
10
10
|
delete request.headers[headerName];
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
const url = request === null || request === void 0 ? void 0 : request.destination;
|
|
15
|
-
if (url != null) {
|
|
16
|
-
let decodedPathname;
|
|
17
|
-
try {
|
|
18
|
-
decodedPathname = decodeURIComponent(url.pathname);
|
|
19
|
-
}
|
|
20
|
-
catch (e) {
|
|
21
|
-
decodedPathname = url.pathname;
|
|
22
|
-
}
|
|
23
|
-
if (new URL(decodedPathname, url.origin).pathname !== decodedPathname) {
|
|
24
|
-
path = decodedPathname;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
...request,
|
|
29
|
-
path,
|
|
30
|
-
};
|
|
13
|
+
return request;
|
|
31
14
|
};
|
|
32
15
|
exports.prepareRequest = prepareRequest;
|
|
@@ -7,22 +7,5 @@ export const prepareRequest = (request) => {
|
|
|
7
7
|
delete request.headers[headerName];
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
const url = request?.destination;
|
|
12
|
-
if (url != null) {
|
|
13
|
-
let decodedPathname;
|
|
14
|
-
try {
|
|
15
|
-
decodedPathname = decodeURIComponent(url.pathname);
|
|
16
|
-
}
|
|
17
|
-
catch (e) {
|
|
18
|
-
decodedPathname = url.pathname;
|
|
19
|
-
}
|
|
20
|
-
if (new URL(decodedPathname, url.origin).pathname !== decodedPathname) {
|
|
21
|
-
path = decodedPathname;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
...request,
|
|
26
|
-
path,
|
|
27
|
-
};
|
|
10
|
+
return request;
|
|
28
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.292.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",
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/is-array-buffer": "3.
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@aws-sdk/util-hex-encoding": "3.
|
|
27
|
-
"@aws-sdk/util-middleware": "3.
|
|
28
|
-
"@aws-sdk/util-uri-escape": "3.
|
|
29
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/is-array-buffer": "3.292.0",
|
|
25
|
+
"@aws-sdk/types": "3.292.0",
|
|
26
|
+
"@aws-sdk/util-hex-encoding": "3.292.0",
|
|
27
|
+
"@aws-sdk/util-middleware": "3.292.0",
|
|
28
|
+
"@aws-sdk/util-uri-escape": "3.292.0",
|
|
29
|
+
"@aws-sdk/util-utf8": "3.292.0",
|
|
30
30
|
"tslib": "^2.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
34
|
-
"@aws-sdk/protocol-http": "3.
|
|
35
|
-
"@aws-sdk/util-buffer-from": "3.
|
|
34
|
+
"@aws-sdk/protocol-http": "3.292.0",
|
|
35
|
+
"@aws-sdk/util-buffer-from": "3.292.0",
|
|
36
36
|
"@tsconfig/recommended": "1.0.1",
|
|
37
37
|
"concurrently": "7.0.0",
|
|
38
38
|
"downlevel-dts": "0.10.1",
|
|
39
39
|
"rimraf": "3.0.2",
|
|
40
|
-
"typedoc": "0.
|
|
40
|
+
"typedoc": "0.23.23",
|
|
41
41
|
"typescript": "~4.6.2"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
@@ -58,5 +58,8 @@
|
|
|
58
58
|
"type": "git",
|
|
59
59
|
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
60
60
|
"directory": "packages/signature-v4"
|
|
61
|
+
},
|
|
62
|
+
"typedoc": {
|
|
63
|
+
"entryPoint": "src/index.ts"
|
|
61
64
|
}
|
|
62
65
|
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* since not all environments will have this as the expected
|
|
6
6
|
* format.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString}
|
|
9
|
+
* - Prior to ECMAScript 2018, the format of the return value
|
|
10
|
+
* - varied according to the platform. The most common return
|
|
11
|
+
* - value was an RFC-1123 formatted date stamp, which is a
|
|
12
|
+
* - slightly updated version of RFC-822 date stamps.
|
|
13
13
|
*/
|
|
14
14
|
export declare function dateToUtcString(date: Date): string;
|
|
15
15
|
/**
|
|
@@ -22,10 +22,10 @@ export declare function dateToUtcString(date: Date): string;
|
|
|
22
22
|
* Input strings must conform to RFC3339 section 5.6, and cannot have a UTC
|
|
23
23
|
* offset. Fractional precision is supported.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14}
|
|
26
26
|
*
|
|
27
|
-
* @param value the value to parse
|
|
28
|
-
* @
|
|
27
|
+
* @param value - the value to parse
|
|
28
|
+
* @returns a Date or undefined
|
|
29
29
|
*/
|
|
30
30
|
export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined;
|
|
31
31
|
/**
|
|
@@ -38,10 +38,10 @@ export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined;
|
|
|
38
38
|
* Input strings must conform to RFC3339 section 5.6, and can have a UTC
|
|
39
39
|
* offset. Fractional precision is supported.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14}
|
|
42
42
|
*
|
|
43
|
-
* @param value the value to parse
|
|
44
|
-
* @
|
|
43
|
+
* @param value - the value to parse
|
|
44
|
+
* @returns a Date or undefined
|
|
45
45
|
*/
|
|
46
46
|
export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date | undefined;
|
|
47
47
|
/**
|
|
@@ -53,10 +53,10 @@ export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date |
|
|
|
53
53
|
*
|
|
54
54
|
* Input strings must conform to RFC7231 section 7.1.1.1. Fractional seconds are supported.
|
|
55
55
|
*
|
|
56
|
-
*
|
|
56
|
+
* @see {@link https://datatracker.ietf.org/doc/html/rfc7231.html#section-7.1.1.1}
|
|
57
57
|
*
|
|
58
|
-
* @param value the value to parse
|
|
59
|
-
* @
|
|
58
|
+
* @param value - the value to parse
|
|
59
|
+
* @returns a Date or undefined
|
|
60
60
|
*/
|
|
61
61
|
export declare const parseRfc7231DateTime: (value: unknown) => Date | undefined;
|
|
62
62
|
/**
|
|
@@ -67,7 +67,7 @@ export declare const parseRfc7231DateTime: (value: unknown) => Date | undefined;
|
|
|
67
67
|
*
|
|
68
68
|
* Input strings must be an integer or floating point number. Fractional seconds are supported.
|
|
69
69
|
*
|
|
70
|
-
* @param value the value to parse
|
|
71
|
-
* @
|
|
70
|
+
* @param value - the value to parse
|
|
71
|
+
* @returns a Date or undefined
|
|
72
72
|
*/
|
|
73
73
|
export declare const parseEpochTimestamp: (value: unknown) => Date | undefined;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Emits warning if the provided Node.js version string is pending deprecation.
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
6
|
+
* @param version - The Node.js version string.
|
|
7
7
|
*/
|
|
8
8
|
export declare const emitWarningIfUnsupportedVersion: (version: string) => void;
|