@cdklabs/cdk-ecs-codedeploy 0.0.328 → 0.0.330
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 +3 -3
- 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/client-codedeploy/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -36
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sts/package.json +34 -34
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +11 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setFeature.d.ts +12 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -0
- package/node_modules/@aws-sdk/core/package.json +10 -9
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +60 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +22 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js +18 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +9 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +14 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/encode-features.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +5 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/encode-features.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +2 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +2 -1
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +54 -0
- package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +12 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +51 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +7 -0
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +6 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +6 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +4 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +6 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +46 -39
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +29 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +2 -39
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +23 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +2 -20
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +13 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/defaultUserAgent.d.ts +21 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +2 -12
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/nodeAppIdConfigOptions.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -4
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +53 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js +1 -0
- package/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +1 -0
- package/node_modules/@smithy/smithy-client/dist-es/index.js +2 -0
- package/node_modules/@smithy/smithy-client/dist-es/quote-header.js +6 -0
- package/node_modules/@smithy/smithy-client/dist-es/split-header.js +37 -0
- package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +2 -0
- package/node_modules/@smithy/smithy-client/dist-types/quote-header.d.ts +6 -0
- package/node_modules/@smithy/smithy-client/dist-types/split-header.d.ts +5 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/quote-header.d.ts +6 -0
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-header.d.ts +5 -0
- package/node_modules/@smithy/smithy-client/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<string | undefined>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Provider, UserAgent } from "@smithy/types";
|
|
2
|
+
export { crtAvailability } from "./crt-availability";
|
|
3
|
+
export interface DefaultUserAgentOptions {
|
|
4
|
+
serviceId?: string;
|
|
5
|
+
clientVersion: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PreviouslyResolved {
|
|
8
|
+
userAgentAppId: Provider<string | undefined>;
|
|
9
|
+
}
|
|
10
|
+
export declare const createDefaultUserAgentProvider: ({
|
|
11
|
+
serviceId,
|
|
12
|
+
clientVersion,
|
|
13
|
+
}: DefaultUserAgentOptions) => (
|
|
14
|
+
config?: PreviouslyResolved
|
|
15
|
+
) => Promise<UserAgent>;
|
|
16
|
+
export declare const defaultUserAgent: ({
|
|
17
|
+
serviceId,
|
|
18
|
+
clientVersion,
|
|
19
|
+
}: DefaultUserAgentOptions) => (
|
|
20
|
+
config?: PreviouslyResolved
|
|
21
|
+
) => Promise<UserAgent>;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
4
|
-
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
5
|
-
interface DefaultUserAgentOptions {
|
|
6
|
-
serviceId?: string;
|
|
7
|
-
clientVersion: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const defaultUserAgent: ({
|
|
10
|
-
serviceId,
|
|
11
|
-
clientVersion,
|
|
12
|
-
}: DefaultUserAgentOptions) => Provider<UserAgent>;
|
|
1
|
+
export * from "./defaultUserAgent";
|
|
2
|
+
export * from "./nodeAppIdConfigOptions";
|
package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/nodeAppIdConfigOptions.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
|
+
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3
|
+
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
4
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
5
|
+
string | undefined
|
|
6
|
+
>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.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 util-user-agent-node",
|
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/
|
|
24
|
-
"@
|
|
25
|
-
"@smithy/
|
|
23
|
+
"@aws-sdk/middleware-user-agent": "3.664.0",
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
|
+
"@smithy/node-config-provider": "^3.1.8",
|
|
26
|
+
"@smithy/types": "^3.5.0",
|
|
26
27
|
"tslib": "^2.6.2"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"license": "Apache-2.0",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@smithy/middleware-endpoint": "^3.1.4",
|
|
50
|
-
"@smithy/middleware-retry": "^3.0.
|
|
50
|
+
"@smithy/middleware-retry": "^3.0.23",
|
|
51
51
|
"@smithy/middleware-serde": "^3.0.7",
|
|
52
52
|
"@smithy/protocol-http": "^4.1.4",
|
|
53
|
-
"@smithy/smithy-client": "^3.
|
|
53
|
+
"@smithy/smithy-client": "^3.4.0",
|
|
54
54
|
"@smithy/types": "^3.5.0",
|
|
55
55
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
56
56
|
"@smithy/util-middleware": "^3.0.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@smithy/node-config-provider": "^3.1.8",
|
|
35
35
|
"@smithy/protocol-http": "^4.1.4",
|
|
36
36
|
"@smithy/service-error-classification": "^3.0.7",
|
|
37
|
-
"@smithy/smithy-client": "^3.
|
|
37
|
+
"@smithy/smithy-client": "^3.4.0",
|
|
38
38
|
"@smithy/types": "^3.5.0",
|
|
39
39
|
"@smithy/util-middleware": "^3.0.7",
|
|
40
40
|
"@smithy/util-retry": "^3.0.7",
|
|
@@ -64,11 +64,13 @@ __export(src_exports, {
|
|
|
64
64
|
parseRfc3339DateTime: () => parseRfc3339DateTime,
|
|
65
65
|
parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset,
|
|
66
66
|
parseRfc7231DateTime: () => parseRfc7231DateTime,
|
|
67
|
+
quoteHeader: () => quoteHeader,
|
|
67
68
|
resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,
|
|
68
69
|
resolvedPath: () => resolvedPath,
|
|
69
70
|
serializeDateTime: () => serializeDateTime,
|
|
70
71
|
serializeFloat: () => serializeFloat,
|
|
71
72
|
splitEvery: () => splitEvery,
|
|
73
|
+
splitHeader: () => splitHeader,
|
|
72
74
|
strictParseByte: () => strictParseByte,
|
|
73
75
|
strictParseDouble: () => strictParseDouble,
|
|
74
76
|
strictParseFloat: () => strictParseFloat,
|
|
@@ -1137,6 +1139,15 @@ var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, tar
|
|
|
1137
1139
|
var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish");
|
|
1138
1140
|
var pass = /* @__PURE__ */ __name((_) => _, "pass");
|
|
1139
1141
|
|
|
1142
|
+
// src/quote-header.ts
|
|
1143
|
+
function quoteHeader(part) {
|
|
1144
|
+
if (part.includes(",") || part.includes('"')) {
|
|
1145
|
+
part = `"${part.replace(/"/g, '\\"')}"`;
|
|
1146
|
+
}
|
|
1147
|
+
return part;
|
|
1148
|
+
}
|
|
1149
|
+
__name(quoteHeader, "quoteHeader");
|
|
1150
|
+
|
|
1140
1151
|
// src/resolve-path.ts
|
|
1141
1152
|
var resolvedPath = /* @__PURE__ */ __name((resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
1142
1153
|
if (input != null && input[memberName] !== void 0) {
|
|
@@ -1219,6 +1230,45 @@ function splitEvery(value, delimiter, numDelimiters) {
|
|
|
1219
1230
|
return compoundSegments;
|
|
1220
1231
|
}
|
|
1221
1232
|
__name(splitEvery, "splitEvery");
|
|
1233
|
+
|
|
1234
|
+
// src/split-header.ts
|
|
1235
|
+
var splitHeader = /* @__PURE__ */ __name((value) => {
|
|
1236
|
+
const z = value.length;
|
|
1237
|
+
const values = [];
|
|
1238
|
+
let withinQuotes = false;
|
|
1239
|
+
let prevChar = void 0;
|
|
1240
|
+
let anchor = 0;
|
|
1241
|
+
for (let i = 0; i < z; ++i) {
|
|
1242
|
+
const char = value[i];
|
|
1243
|
+
switch (char) {
|
|
1244
|
+
case `"`:
|
|
1245
|
+
if (prevChar !== "\\") {
|
|
1246
|
+
withinQuotes = !withinQuotes;
|
|
1247
|
+
}
|
|
1248
|
+
break;
|
|
1249
|
+
case ",":
|
|
1250
|
+
if (!withinQuotes) {
|
|
1251
|
+
values.push(value.slice(anchor, i));
|
|
1252
|
+
anchor = i + 1;
|
|
1253
|
+
}
|
|
1254
|
+
break;
|
|
1255
|
+
default:
|
|
1256
|
+
}
|
|
1257
|
+
prevChar = char;
|
|
1258
|
+
}
|
|
1259
|
+
values.push(value.slice(anchor));
|
|
1260
|
+
return values.map((v) => {
|
|
1261
|
+
v = v.trim();
|
|
1262
|
+
const z2 = v.length;
|
|
1263
|
+
if (z2 < 2) {
|
|
1264
|
+
return v;
|
|
1265
|
+
}
|
|
1266
|
+
if (v[0] === `"` && v[z2 - 1] === `"`) {
|
|
1267
|
+
v = v.slice(1, z2 - 1);
|
|
1268
|
+
}
|
|
1269
|
+
return v.replace(/\\"/g, '"');
|
|
1270
|
+
});
|
|
1271
|
+
}, "splitHeader");
|
|
1222
1272
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1223
1273
|
|
|
1224
1274
|
0 && (module.exports = {
|
|
@@ -1277,10 +1327,12 @@ __name(splitEvery, "splitEvery");
|
|
|
1277
1327
|
strictParseShort,
|
|
1278
1328
|
strictParseByte,
|
|
1279
1329
|
logger,
|
|
1330
|
+
quoteHeader,
|
|
1280
1331
|
resolvedPath,
|
|
1281
1332
|
serializeFloat,
|
|
1282
1333
|
serializeDateTime,
|
|
1283
1334
|
_json,
|
|
1284
|
-
splitEvery
|
|
1335
|
+
splitEvery,
|
|
1336
|
+
splitHeader
|
|
1285
1337
|
});
|
|
1286
1338
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -17,7 +17,9 @@ export * from "./lazy-json";
|
|
|
17
17
|
export * from "./NoOpLogger";
|
|
18
18
|
export * from "./object-mapping";
|
|
19
19
|
export * from "./parse-utils";
|
|
20
|
+
export * from "./quote-header";
|
|
20
21
|
export * from "./resolve-path";
|
|
21
22
|
export * from "./ser-utils";
|
|
22
23
|
export * from "./serde-json";
|
|
23
24
|
export * from "./split-every";
|
|
25
|
+
export * from "./split-header";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const splitHeader = (value) => {
|
|
2
|
+
const z = value.length;
|
|
3
|
+
const values = [];
|
|
4
|
+
let withinQuotes = false;
|
|
5
|
+
let prevChar = undefined;
|
|
6
|
+
let anchor = 0;
|
|
7
|
+
for (let i = 0; i < z; ++i) {
|
|
8
|
+
const char = value[i];
|
|
9
|
+
switch (char) {
|
|
10
|
+
case `"`:
|
|
11
|
+
if (prevChar !== "\\") {
|
|
12
|
+
withinQuotes = !withinQuotes;
|
|
13
|
+
}
|
|
14
|
+
break;
|
|
15
|
+
case ",":
|
|
16
|
+
if (!withinQuotes) {
|
|
17
|
+
values.push(value.slice(anchor, i));
|
|
18
|
+
anchor = i + 1;
|
|
19
|
+
}
|
|
20
|
+
break;
|
|
21
|
+
default:
|
|
22
|
+
}
|
|
23
|
+
prevChar = char;
|
|
24
|
+
}
|
|
25
|
+
values.push(value.slice(anchor));
|
|
26
|
+
return values.map((v) => {
|
|
27
|
+
v = v.trim();
|
|
28
|
+
const z = v.length;
|
|
29
|
+
if (z < 2) {
|
|
30
|
+
return v;
|
|
31
|
+
}
|
|
32
|
+
if (v[0] === `"` && v[z - 1] === `"`) {
|
|
33
|
+
v = v.slice(1, z - 1);
|
|
34
|
+
}
|
|
35
|
+
return v.replace(/\\"/g, '"');
|
|
36
|
+
});
|
|
37
|
+
};
|
|
@@ -18,7 +18,9 @@ export * from "./lazy-json";
|
|
|
18
18
|
export * from "./NoOpLogger";
|
|
19
19
|
export * from "./object-mapping";
|
|
20
20
|
export * from "./parse-utils";
|
|
21
|
+
export * from "./quote-header";
|
|
21
22
|
export * from "./resolve-path";
|
|
22
23
|
export * from "./ser-utils";
|
|
23
24
|
export * from "./serde-json";
|
|
24
25
|
export * from "./split-every";
|
|
26
|
+
export * from "./split-header";
|
|
@@ -18,7 +18,9 @@ export * from "./lazy-json";
|
|
|
18
18
|
export * from "./NoOpLogger";
|
|
19
19
|
export * from "./object-mapping";
|
|
20
20
|
export * from "./parse-utils";
|
|
21
|
+
export * from "./quote-header";
|
|
21
22
|
export * from "./resolve-path";
|
|
22
23
|
export * from "./ser-utils";
|
|
23
24
|
export * from "./serde-json";
|
|
24
25
|
export * from "./split-every";
|
|
26
|
+
export * from "./split-header";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@smithy/property-provider": "^3.1.7",
|
|
26
|
-
"@smithy/smithy-client": "^3.
|
|
26
|
+
"@smithy/smithy-client": "^3.4.0",
|
|
27
27
|
"@smithy/types": "^3.5.0",
|
|
28
28
|
"bowser": "^2.11.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-node",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@smithy/credential-provider-imds": "^3.2.4",
|
|
27
27
|
"@smithy/node-config-provider": "^3.1.8",
|
|
28
28
|
"@smithy/property-provider": "^3.1.7",
|
|
29
|
-
"@smithy/smithy-client": "^3.
|
|
29
|
+
"@smithy/smithy-client": "^3.4.0",
|
|
30
30
|
"@smithy/types": "^3.5.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
package/package.json
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"esbuild": "^0.24.0",
|
|
91
91
|
"eslint": "^8",
|
|
92
92
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
93
|
-
"eslint-plugin-import": "^2.
|
|
93
|
+
"eslint-plugin-import": "^2.31.0",
|
|
94
94
|
"jest": "^27",
|
|
95
95
|
"jest-junit": "^15",
|
|
96
96
|
"jsii": "~5.2",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"constructs": "^10.0.5"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
112
|
+
"@aws-sdk/client-codedeploy": "^3.664.0",
|
|
113
113
|
"jmespath": "^0.16.0"
|
|
114
114
|
},
|
|
115
115
|
"bundledDependencies": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
|
-
"version": "0.0.
|
|
130
|
+
"version": "0.0.330",
|
|
131
131
|
"jest": {
|
|
132
132
|
"coverageProvider": "v8",
|
|
133
133
|
"testMatch": [
|