@cdk8s/awscdk-resolver 0.0.177 → 0.0.179
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/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
- 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 +11 -11
- 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 +13 -13
- 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 +13 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
- 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 +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- 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 +4 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- 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 +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- 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 +2 -2
- 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 +3 -2
- 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 +5 -5
@@ -21,13 +21,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
21
21
|
// src/index.ts
|
22
22
|
var src_exports = {};
|
23
23
|
__export(src_exports, {
|
24
|
+
NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS,
|
24
25
|
UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME,
|
25
26
|
UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME,
|
27
|
+
createDefaultUserAgentProvider: () => createDefaultUserAgentProvider,
|
26
28
|
crtAvailability: () => crtAvailability,
|
27
29
|
defaultUserAgent: () => defaultUserAgent
|
28
30
|
});
|
29
31
|
module.exports = __toCommonJS(src_exports);
|
30
|
-
|
32
|
+
|
33
|
+
// src/defaultUserAgent.ts
|
31
34
|
var import_os = require("os");
|
32
35
|
var import_process = require("process");
|
33
36
|
|
@@ -44,52 +47,56 @@ var isCrtAvailable = /* @__PURE__ */ __name(() => {
|
|
44
47
|
return null;
|
45
48
|
}, "isCrtAvailable");
|
46
49
|
|
47
|
-
// src/
|
48
|
-
var
|
49
|
-
|
50
|
-
var
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}
|
67
|
-
if (serviceId) {
|
68
|
-
sections.push([`api/${serviceId}`, clientVersion]);
|
69
|
-
}
|
70
|
-
if (import_process.env.AWS_EXECUTION_ENV) {
|
71
|
-
sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
|
72
|
-
}
|
73
|
-
const appIdPromise = (0, import_node_config_provider.loadConfig)({
|
74
|
-
environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
|
75
|
-
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
76
|
-
default: void 0
|
77
|
-
})();
|
78
|
-
let resolvedUserAgent = void 0;
|
79
|
-
return async () => {
|
80
|
-
if (!resolvedUserAgent) {
|
81
|
-
const appId = await appIdPromise;
|
82
|
-
resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
50
|
+
// src/defaultUserAgent.ts
|
51
|
+
var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => {
|
52
|
+
return async (config) => {
|
53
|
+
var _a;
|
54
|
+
const sections = [
|
55
|
+
// sdk-metadata
|
56
|
+
["aws-sdk-js", clientVersion],
|
57
|
+
// ua-metadata
|
58
|
+
["ua", "2.1"],
|
59
|
+
// os-metadata
|
60
|
+
[`os/${(0, import_os.platform)()}`, (0, import_os.release)()],
|
61
|
+
// language-metadata
|
62
|
+
// ECMAScript edition doesn't matter in JS, so no version needed.
|
63
|
+
["lang/js"],
|
64
|
+
["md/nodejs", `${import_process.versions.node}`]
|
65
|
+
];
|
66
|
+
const crtAvailable = isCrtAvailable();
|
67
|
+
if (crtAvailable) {
|
68
|
+
sections.push(crtAvailable);
|
83
69
|
}
|
70
|
+
if (serviceId) {
|
71
|
+
sections.push([`api/${serviceId}`, clientVersion]);
|
72
|
+
}
|
73
|
+
if (import_process.env.AWS_EXECUTION_ENV) {
|
74
|
+
sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
|
75
|
+
}
|
76
|
+
const appId = await ((_a = config == null ? void 0 : config.userAgentAppId) == null ? void 0 : _a.call(config));
|
77
|
+
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
84
78
|
return resolvedUserAgent;
|
85
79
|
};
|
86
|
-
}, "
|
80
|
+
}, "createDefaultUserAgentProvider");
|
81
|
+
var defaultUserAgent = createDefaultUserAgentProvider;
|
82
|
+
|
83
|
+
// src/nodeAppIdConfigOptions.ts
|
84
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
85
|
+
var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
86
|
+
var UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
87
|
+
var NODE_APP_ID_CONFIG_OPTIONS = {
|
88
|
+
environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
|
89
|
+
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
90
|
+
default: import_middleware_user_agent.DEFAULT_UA_APP_ID
|
91
|
+
};
|
87
92
|
// Annotate the CommonJS export names for ESM import in node:
|
88
93
|
|
89
94
|
0 && (module.exports = {
|
90
95
|
crtAvailability,
|
96
|
+
createDefaultUserAgentProvider,
|
97
|
+
defaultUserAgent,
|
91
98
|
UA_APP_ID_ENV_NAME,
|
92
99
|
UA_APP_ID_INI_NAME,
|
93
|
-
|
100
|
+
NODE_APP_ID_CONFIG_OPTIONS
|
94
101
|
});
|
95
102
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { platform, release } from "os";
|
2
|
+
import { env, versions } from "process";
|
3
|
+
import { isCrtAvailable } from "./is-crt-available";
|
4
|
+
export { crtAvailability } from "./crt-availability";
|
5
|
+
export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
|
6
|
+
return async (config) => {
|
7
|
+
const sections = [
|
8
|
+
["aws-sdk-js", clientVersion],
|
9
|
+
["ua", "2.1"],
|
10
|
+
[`os/${platform()}`, release()],
|
11
|
+
["lang/js"],
|
12
|
+
["md/nodejs", `${versions.node}`],
|
13
|
+
];
|
14
|
+
const crtAvailable = isCrtAvailable();
|
15
|
+
if (crtAvailable) {
|
16
|
+
sections.push(crtAvailable);
|
17
|
+
}
|
18
|
+
if (serviceId) {
|
19
|
+
sections.push([`api/${serviceId}`, clientVersion]);
|
20
|
+
}
|
21
|
+
if (env.AWS_EXECUTION_ENV) {
|
22
|
+
sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);
|
23
|
+
}
|
24
|
+
const appId = await config?.userAgentAppId?.();
|
25
|
+
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
26
|
+
return resolvedUserAgent;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export const defaultUserAgent = createDefaultUserAgentProvider;
|
@@ -1,39 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { env, versions } from "process";
|
4
|
-
import { isCrtAvailable } from "./is-crt-available";
|
5
|
-
export { crtAvailability } from "./crt-availability";
|
6
|
-
export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
7
|
-
export const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
8
|
-
export const defaultUserAgent = ({ serviceId, clientVersion }) => {
|
9
|
-
const sections = [
|
10
|
-
["aws-sdk-js", clientVersion],
|
11
|
-
["ua", "2.0"],
|
12
|
-
[`os/${platform()}`, release()],
|
13
|
-
["lang/js"],
|
14
|
-
["md/nodejs", `${versions.node}`],
|
15
|
-
];
|
16
|
-
const crtAvailable = isCrtAvailable();
|
17
|
-
if (crtAvailable) {
|
18
|
-
sections.push(crtAvailable);
|
19
|
-
}
|
20
|
-
if (serviceId) {
|
21
|
-
sections.push([`api/${serviceId}`, clientVersion]);
|
22
|
-
}
|
23
|
-
if (env.AWS_EXECUTION_ENV) {
|
24
|
-
sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);
|
25
|
-
}
|
26
|
-
const appIdPromise = loadConfig({
|
27
|
-
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
28
|
-
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
29
|
-
default: undefined,
|
30
|
-
})();
|
31
|
-
let resolvedUserAgent = undefined;
|
32
|
-
return async () => {
|
33
|
-
if (!resolvedUserAgent) {
|
34
|
-
const appId = await appIdPromise;
|
35
|
-
resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
36
|
-
}
|
37
|
-
return resolvedUserAgent;
|
38
|
-
};
|
39
|
-
};
|
1
|
+
export * from "./defaultUserAgent";
|
2
|
+
export * from "./nodeAppIdConfigOptions";
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DEFAULT_UA_APP_ID } from "@aws-sdk/middleware-user-agent";
|
2
|
+
export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
3
|
+
export const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
4
|
+
export const NODE_APP_ID_CONFIG_OPTIONS = {
|
5
|
+
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
6
|
+
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
7
|
+
default: DEFAULT_UA_APP_ID,
|
8
|
+
};
|
@@ -0,0 +1,23 @@
|
|
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
|
+
/**
|
11
|
+
* @internal
|
12
|
+
*
|
13
|
+
* Collect metrics from runtime to put into user agent.
|
14
|
+
*/
|
15
|
+
export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @internal
|
19
|
+
*
|
20
|
+
* @deprecated use createDefaultUserAgentProvider
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
@@ -1,20 +1,2 @@
|
|
1
|
-
|
2
|
-
export
|
3
|
-
/**
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
7
|
-
/**
|
8
|
-
* @internal
|
9
|
-
*/
|
10
|
-
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
11
|
-
interface DefaultUserAgentOptions {
|
12
|
-
serviceId?: string;
|
13
|
-
clientVersion: string;
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* @internal
|
17
|
-
*
|
18
|
-
* Collect metrics from runtime to put into user agent.
|
19
|
-
*/
|
20
|
-
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>;
|
1
|
+
export * from "./defaultUserAgent";
|
2
|
+
export * from "./nodeAppIdConfigOptions";
|
@@ -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,7 +20,8 @@
|
|
20
20
|
},
|
21
21
|
"license": "Apache-2.0",
|
22
22
|
"dependencies": {
|
23
|
-
"@aws-sdk/
|
23
|
+
"@aws-sdk/middleware-user-agent": "3.664.0",
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
24
25
|
"@smithy/node-config-provider": "^3.1.8",
|
25
26
|
"@smithy/types": "^3.5.0",
|
26
27
|
"tslib": "^2.6.2"
|
@@ -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
@@ -48,15 +48,15 @@
|
|
48
48
|
"@types/node": "16.18.78",
|
49
49
|
"@typescript-eslint/eslint-plugin": "^7",
|
50
50
|
"@typescript-eslint/parser": "^7",
|
51
|
-
"aws-cdk": "^2.
|
51
|
+
"aws-cdk": "^2.161.0",
|
52
52
|
"aws-cdk-lib": "2.109.0",
|
53
53
|
"cdk8s": "2.68.91",
|
54
|
-
"cdk8s-cli": "^2.198.
|
54
|
+
"cdk8s-cli": "^2.198.236",
|
55
55
|
"commit-and-tag-version": "^12",
|
56
56
|
"constructs": "10.3.0",
|
57
57
|
"eslint": "^8",
|
58
58
|
"eslint-import-resolver-typescript": "^3.6.3",
|
59
|
-
"eslint-plugin-import": "^2.
|
59
|
+
"eslint-plugin-import": "^2.31.0",
|
60
60
|
"fs-extra": "^11.2.0",
|
61
61
|
"jest": "^27",
|
62
62
|
"jest-junit": "^15",
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"constructs": "^10.3.0"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@aws-sdk/client-cloudformation": "^3.
|
79
|
+
"@aws-sdk/client-cloudformation": "^3.665.0"
|
80
80
|
},
|
81
81
|
"bundledDependencies": [
|
82
82
|
"@aws-sdk/client-cloudformation"
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"publishConfig": {
|
93
93
|
"access": "public"
|
94
94
|
},
|
95
|
-
"version": "0.0.
|
95
|
+
"version": "0.0.179",
|
96
96
|
"jest": {
|
97
97
|
"coverageProvider": "v8",
|
98
98
|
"testMatch": [
|