@cdk8s/awscdk-resolver 0.0.357 → 0.0.359

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 (100) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws/lambda-invoke-store/LICENSE +175 -0
  4. package/node_modules/@aws/lambda-invoke-store/README.md +182 -0
  5. package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.d.ts +52 -0
  6. package/node_modules/@aws/lambda-invoke-store/dist/invoke-store.js +90 -0
  7. package/node_modules/@aws/lambda-invoke-store/package.json +36 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  9. package/node_modules/@aws-sdk/client-sso/package.json +2 -2
  10. package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
  11. package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
  12. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
  14. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +14 -32
  15. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +32 -0
  16. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.native.js +5 -0
  17. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js +7 -0
  18. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js +7 -0
  19. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +2 -37
  20. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.browser.js +1 -0
  21. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +28 -0
  22. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.native.js +1 -0
  23. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +5 -0
  24. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +5 -0
  25. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +2 -18
  26. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +6 -0
  27. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +6 -0
  28. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +6 -0
  29. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/configuration.d.ts +3 -0
  30. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/getRecursionDetectionPlugin.d.ts +4 -0
  31. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +2 -18
  32. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.browser.d.ts +5 -0
  33. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.d.ts +5 -0
  34. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/recursionDetectionMiddleware.native.d.ts +5 -0
  35. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -2
  36. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  37. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  38. package/node_modules/@smithy/abort-controller/package.json +2 -2
  39. package/node_modules/@smithy/config-resolver/package.json +4 -4
  40. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +14 -16
  41. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +155 -221
  42. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +12 -10
  43. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +12 -22
  44. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +9 -20
  45. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +10 -21
  46. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +76 -87
  47. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +11 -12
  48. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +16 -3
  49. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +9 -20
  50. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +10 -27
  51. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -2
  52. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +3 -16
  53. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +3 -5
  54. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +3 -9
  55. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +15 -13
  56. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +3 -2
  57. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +5 -1
  58. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +3 -5
  59. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +3 -6
  60. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -2
  61. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +3 -16
  62. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +3 -5
  63. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +3 -9
  64. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +15 -13
  65. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +3 -2
  66. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +5 -1
  67. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +3 -5
  68. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +3 -9
  69. package/node_modules/@smithy/core/package.json +7 -7
  70. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  71. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  72. package/node_modules/@smithy/hash-node/package.json +2 -2
  73. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  74. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  75. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  76. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  77. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  78. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  79. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  80. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  81. package/node_modules/@smithy/property-provider/package.json +2 -2
  82. package/node_modules/@smithy/protocol-http/package.json +2 -2
  83. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  84. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  85. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  86. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  87. package/node_modules/@smithy/signature-v4/package.json +4 -4
  88. package/node_modules/@smithy/smithy-client/package.json +7 -7
  89. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +9 -2
  90. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +13 -3
  91. package/node_modules/@smithy/types/package.json +1 -1
  92. package/node_modules/@smithy/url-parser/package.json +3 -3
  93. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  94. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  95. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  96. package/node_modules/@smithy/util-middleware/package.json +2 -2
  97. package/node_modules/@smithy/util-retry/package.json +3 -3
  98. package/node_modules/@smithy/util-stream/package.json +4 -4
  99. package/node_modules/@smithy/util-waiter/package.json +3 -3
  100. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.883.0",
3
+ "version": "3.886.0",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-sso": "3.883.0",
28
+ "@aws-sdk/client-sso": "3.886.0",
29
29
  "@aws-sdk/core": "3.883.0",
30
- "@aws-sdk/token-providers": "3.883.0",
30
+ "@aws-sdk/token-providers": "3.886.0",
31
31
  "@aws-sdk/types": "3.862.0",
32
32
  "@smithy/property-provider": "^4.0.5",
33
33
  "@smithy/shared-ini-file-loader": "^4.0.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.883.0",
3
+ "version": "3.886.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,7 +34,7 @@
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
36
  "@aws-sdk/core": "3.883.0",
37
- "@aws-sdk/nested-clients": "3.883.0",
37
+ "@aws-sdk/nested-clients": "3.886.0",
38
38
  "@aws-sdk/types": "3.862.0",
39
39
  "@smithy/property-provider": "^4.0.5",
40
40
  "@smithy/types": "^4.3.2",
@@ -16,57 +16,39 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
21
 
21
22
  // src/index.ts
22
23
  var index_exports = {};
23
24
  __export(index_exports, {
24
- addRecursionDetectionMiddlewareOptions: () => addRecursionDetectionMiddlewareOptions,
25
- getRecursionDetectionPlugin: () => getRecursionDetectionPlugin,
26
- recursionDetectionMiddleware: () => recursionDetectionMiddleware
25
+ getRecursionDetectionPlugin: () => getRecursionDetectionPlugin
27
26
  });
28
27
  module.exports = __toCommonJS(index_exports);
29
- var import_protocol_http = require("@smithy/protocol-http");
30
- var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
31
- var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
32
- var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
33
- var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
34
- const { request } = args;
35
- if (!import_protocol_http.HttpRequest.isInstance(request) || options.runtime !== "node") {
36
- return next(args);
37
- }
38
- const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
39
- if (request.headers.hasOwnProperty(traceIdHeader)) {
40
- return next(args);
41
- }
42
- const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
43
- const traceId = process.env[ENV_TRACE_ID];
44
- const nonEmptyString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0, "nonEmptyString");
45
- if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
46
- request.headers[TRACE_ID_HEADER_NAME] = traceId;
47
- }
48
- return next({
49
- ...args,
50
- request
51
- });
52
- }, "recursionDetectionMiddleware");
53
- var addRecursionDetectionMiddlewareOptions = {
28
+
29
+ // src/configuration.ts
30
+ var recursionDetectionMiddlewareOptions = {
54
31
  step: "build",
55
32
  tags: ["RECURSION_DETECTION"],
56
33
  name: "recursionDetectionMiddleware",
57
34
  override: true,
58
35
  priority: "low"
59
36
  };
37
+
38
+ // src/getRecursionDetectionPlugin.ts
39
+ var import_recursionDetectionMiddleware = require("././recursionDetectionMiddleware");
60
40
  var getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({
61
41
  applyToStack: /* @__PURE__ */ __name((clientStack) => {
62
- clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
42
+ clientStack.add((0, import_recursionDetectionMiddleware.recursionDetectionMiddleware)(), recursionDetectionMiddlewareOptions);
63
43
  }, "applyToStack")
64
44
  }), "getRecursionDetectionPlugin");
45
+
46
+ // src/index.ts
47
+ __reExport(index_exports, require("././recursionDetectionMiddleware"), module.exports);
65
48
  // Annotate the CommonJS export names for ESM import in node:
66
49
 
67
50
  0 && (module.exports = {
68
- recursionDetectionMiddleware,
69
- addRecursionDetectionMiddlewareOptions,
70
- getRecursionDetectionPlugin
51
+ getRecursionDetectionPlugin,
52
+ recursionDetectionMiddleware
71
53
  });
72
54
 
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.recursionDetectionMiddleware = void 0;
4
+ const lambda_invoke_store_1 = require("@aws/lambda-invoke-store");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
7
+ const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
8
+ const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
9
+ const recursionDetectionMiddleware = () => (next) => async (args) => {
10
+ const { request } = args;
11
+ if (!protocol_http_1.HttpRequest.isInstance(request)) {
12
+ return next(args);
13
+ }
14
+ const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ??
15
+ TRACE_ID_HEADER_NAME;
16
+ if (request.headers.hasOwnProperty(traceIdHeader)) {
17
+ return next(args);
18
+ }
19
+ const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
20
+ const traceIdFromEnv = process.env[ENV_TRACE_ID];
21
+ const traceIdFromInvokeStore = lambda_invoke_store_1.InvokeStore.getXRayTraceId();
22
+ const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
23
+ const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
24
+ if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
25
+ request.headers[TRACE_ID_HEADER_NAME] = traceId;
26
+ }
27
+ return next({
28
+ ...args,
29
+ request,
30
+ });
31
+ };
32
+ exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.recursionDetectionMiddleware = void 0;
4
+ const recursionDetectionMiddleware = () => (next) => async (args) => next(args);
5
+ exports.recursionDetectionMiddleware = recursionDetectionMiddleware;
@@ -0,0 +1,7 @@
1
+ export const recursionDetectionMiddlewareOptions = {
2
+ step: "build",
3
+ tags: ["RECURSION_DETECTION"],
4
+ name: "recursionDetectionMiddleware",
5
+ override: true,
6
+ priority: "low",
7
+ };
@@ -0,0 +1,7 @@
1
+ import { recursionDetectionMiddlewareOptions } from "./configuration";
2
+ import { recursionDetectionMiddleware } from "./recursionDetectionMiddleware";
3
+ export const getRecursionDetectionPlugin = (options) => ({
4
+ applyToStack: (clientStack) => {
5
+ clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
6
+ },
7
+ });
@@ -1,37 +1,2 @@
1
- import { HttpRequest } from "@smithy/protocol-http";
2
- const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
3
- const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
4
- const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
5
- export const recursionDetectionMiddleware = (options) => (next) => async (args) => {
6
- const { request } = args;
7
- if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
8
- return next(args);
9
- }
10
- const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ??
11
- TRACE_ID_HEADER_NAME;
12
- if (request.headers.hasOwnProperty(traceIdHeader)) {
13
- return next(args);
14
- }
15
- const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
16
- const traceId = process.env[ENV_TRACE_ID];
17
- const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
18
- if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
19
- request.headers[TRACE_ID_HEADER_NAME] = traceId;
20
- }
21
- return next({
22
- ...args,
23
- request,
24
- });
25
- };
26
- export const addRecursionDetectionMiddlewareOptions = {
27
- step: "build",
28
- tags: ["RECURSION_DETECTION"],
29
- name: "recursionDetectionMiddleware",
30
- override: true,
31
- priority: "low",
32
- };
33
- export const getRecursionDetectionPlugin = (options) => ({
34
- applyToStack: (clientStack) => {
35
- clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
36
- },
37
- });
1
+ export * from "./getRecursionDetectionPlugin";
2
+ export * from "./recursionDetectionMiddleware";
@@ -0,0 +1 @@
1
+ export const recursionDetectionMiddleware = () => (next) => async (args) => next(args);
@@ -0,0 +1,28 @@
1
+ import { InvokeStore } from "@aws/lambda-invoke-store";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
+ const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
4
+ const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
5
+ const ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
6
+ export const recursionDetectionMiddleware = () => (next) => async (args) => {
7
+ const { request } = args;
8
+ if (!HttpRequest.isInstance(request)) {
9
+ return next(args);
10
+ }
11
+ const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ??
12
+ TRACE_ID_HEADER_NAME;
13
+ if (request.headers.hasOwnProperty(traceIdHeader)) {
14
+ return next(args);
15
+ }
16
+ const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
17
+ const traceIdFromEnv = process.env[ENV_TRACE_ID];
18
+ const traceIdFromInvokeStore = InvokeStore.getXRayTraceId();
19
+ const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
20
+ const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
21
+ if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
22
+ request.headers[TRACE_ID_HEADER_NAME] = traceId;
23
+ }
24
+ return next({
25
+ ...args,
26
+ request,
27
+ });
28
+ };
@@ -0,0 +1 @@
1
+ export const recursionDetectionMiddleware = () => (next) => async (args) => next(args);
@@ -0,0 +1,5 @@
1
+ import { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const recursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
@@ -0,0 +1,5 @@
1
+ import { Pluggable } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRecursionDetectionPlugin: (options: any) => Pluggable<any, any>;
@@ -1,18 +1,2 @@
1
- import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types";
2
- interface PreviouslyResolved {
3
- runtime: string;
4
- }
5
- /**
6
- * Inject to trace ID to request header to detect recursion invocation in Lambda.
7
- * @internal
8
- */
9
- export declare const recursionDetectionMiddleware: (options: PreviouslyResolved) => BuildMiddleware<any, any>;
10
- /**
11
- * @internal
12
- */
13
- export declare const addRecursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation;
14
- /**
15
- * @internal
16
- */
17
- export declare const getRecursionDetectionPlugin: (options: PreviouslyResolved) => Pluggable<any, any>;
18
- export {};
1
+ export * from "./getRecursionDetectionPlugin";
2
+ export * from "./recursionDetectionMiddleware";
@@ -0,0 +1,6 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ /**
3
+ * No-op middleware for runtimes outside of Node.js
4
+ * @internal
5
+ */
6
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>;
@@ -0,0 +1,6 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ /**
3
+ * Inject to trace ID to request header to detect recursion invocation in Lambda.
4
+ * @internal
5
+ */
6
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>;
@@ -0,0 +1,6 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ /**
3
+ * No-op middleware for runtimes outside of Node.js
4
+ * @internal
5
+ */
6
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>;
@@ -0,0 +1,3 @@
1
+ import { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types";
2
+ export declare const recursionDetectionMiddlewareOptions: BuildHandlerOptions &
3
+ AbsoluteLocation;
@@ -0,0 +1,4 @@
1
+ import { Pluggable } from "@smithy/types";
2
+ export declare const getRecursionDetectionPlugin: (
3
+ options: any
4
+ ) => Pluggable<any, any>;
@@ -1,18 +1,2 @@
1
- import {
2
- AbsoluteLocation,
3
- BuildHandlerOptions,
4
- BuildMiddleware,
5
- Pluggable,
6
- } from "@smithy/types";
7
- interface PreviouslyResolved {
8
- runtime: string;
9
- }
10
- export declare const recursionDetectionMiddleware: (
11
- options: PreviouslyResolved
12
- ) => BuildMiddleware<any, any>;
13
- export declare const addRecursionDetectionMiddlewareOptions: BuildHandlerOptions &
14
- AbsoluteLocation;
15
- export declare const getRecursionDetectionPlugin: (
16
- options: PreviouslyResolved
17
- ) => Pluggable<any, any>;
18
- export {};
1
+ export * from "./getRecursionDetectionPlugin";
2
+ export * from "./recursionDetectionMiddleware";
@@ -0,0 +1,5 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<
3
+ any,
4
+ any
5
+ >;
@@ -0,0 +1,5 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<
3
+ any,
4
+ any
5
+ >;
@@ -0,0 +1,5 @@
1
+ import { BuildMiddleware } from "@smithy/types";
2
+ export declare const recursionDetectionMiddleware: () => BuildMiddleware<
3
+ any,
4
+ any
5
+ >;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.873.0",
3
+ "version": "3.886.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 middleware-recursion-detection",
@@ -24,6 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@aws-sdk/types": "3.862.0",
27
+ "@aws/lambda-invoke-store": "^0.0.1",
27
28
  "@smithy/protocol-http": "^5.1.3",
28
29
  "@smithy/types": "^4.3.2",
29
30
  "tslib": "^2.6.2"
@@ -53,5 +54,9 @@
53
54
  "downlevel-dts": "0.10.1",
54
55
  "rimraf": "3.0.2",
55
56
  "typescript": "~5.8.3"
56
- }
57
+ },
58
+ "browser": {
59
+ "./dist-es/recursionDetectionMiddleware": "./dist-es/recursionDetectionMiddleware.browser"
60
+ },
61
+ "react-native": {}
57
62
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.883.0",
3
+ "version": "3.886.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/core": "3.883.0",
32
32
  "@aws-sdk/middleware-host-header": "3.873.0",
33
33
  "@aws-sdk/middleware-logger": "3.876.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.873.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.886.0",
35
35
  "@aws-sdk/middleware-user-agent": "3.883.0",
36
36
  "@aws-sdk/region-config-resolver": "3.873.0",
37
37
  "@aws-sdk/types": "3.862.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.883.0",
3
+ "version": "3.886.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -30,7 +30,7 @@
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
32
  "@aws-sdk/core": "3.883.0",
33
- "@aws-sdk/nested-clients": "3.883.0",
33
+ "@aws-sdk/nested-clients": "3.886.0",
34
34
  "@aws-sdk/types": "3.862.0",
35
35
  "@smithy/property-provider": "^4.0.5",
36
36
  "@smithy/shared-ini-file-loader": "^4.0.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/types": "^4.4.0",
29
+ "@smithy/types": "^4.5.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
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 config-resolver",
@@ -25,10 +25,10 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/node-config-provider": "^4.2.0",
29
- "@smithy/types": "^4.4.0",
28
+ "@smithy/node-config-provider": "^4.2.1",
29
+ "@smithy/types": "^4.5.0",
30
30
  "@smithy/util-config-provider": "^4.1.0",
31
- "@smithy/util-middleware": "^4.1.0",
31
+ "@smithy/util-middleware": "^4.1.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -333,20 +333,15 @@ var HttpBindingProtocol = class extends HttpProtocol {
333
333
  if (traits.httpQueryParams) {
334
334
  for (const [key, val] of Object.entries(data)) {
335
335
  if (!(key in query)) {
336
- this.serializeQuery(
337
- import_schema2.NormalizedSchema.of([
338
- ns.getValueSchema(),
339
- {
340
- // We pass on the traits to the sub-schema
341
- // because we are still in the process of serializing the map itself.
342
- ...traits,
343
- httpQuery: key,
344
- httpQueryParams: void 0
345
- }
346
- ]),
347
- val,
348
- query
349
- );
336
+ const valueSchema = ns.getValueSchema();
337
+ Object.assign(valueSchema.getMergedTraits(), {
338
+ // We pass on the traits to the sub-schema
339
+ // because we are still in the process of serializing the map itself.
340
+ ...traits,
341
+ httpQuery: key,
342
+ httpQueryParams: void 0
343
+ });
344
+ this.serializeQuery(valueSchema, val, query);
350
345
  }
351
346
  }
352
347
  return;
@@ -433,6 +428,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
433
428
  if (null != value) {
434
429
  if (memberSchema.isListSchema()) {
435
430
  const headerListValueSchema = memberSchema.getValueSchema();
431
+ headerListValueSchema.getMergedTraits().httpHeader = key;
436
432
  let sections;
437
433
  if (headerListValueSchema.isTimestampSchema() && headerListValueSchema.getSchema() === import_schema2.SCHEMA.TIMESTAMP_DEFAULT) {
438
434
  sections = (0, import_serde.splitEvery)(value, ",", 2);
@@ -441,7 +437,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
441
437
  }
442
438
  const list = [];
443
439
  for (const section of sections) {
444
- list.push(await deserializer.read([headerListValueSchema, { httpHeader: key }], section.trim()));
440
+ list.push(await deserializer.read(headerListValueSchema, section.trim()));
445
441
  }
446
442
  dataObject[memberName] = list;
447
443
  } else {
@@ -452,8 +448,10 @@ var HttpBindingProtocol = class extends HttpProtocol {
452
448
  dataObject[memberName] = {};
453
449
  for (const [header, value] of Object.entries(response.headers)) {
454
450
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
451
+ const valueSchema = memberSchema.getValueSchema();
452
+ valueSchema.getMergedTraits().httpHeader = header;
455
453
  dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(
456
- [memberSchema.getValueSchema(), { httpHeader: header }],
454
+ valueSchema,
457
455
  value
458
456
  );
459
457
  }