@cdk8s/awscdk-resolver 0.0.401 → 0.0.403

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 (137) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  5. package/node_modules/@aws-sdk/core/dist-cjs/index.js +9 -5
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +9 -5
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -4
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +126 -0
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +8 -1
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +1 -1
  11. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  12. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  13. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  16. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +27 -0
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
  20. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
  21. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +1 -1
  22. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  24. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
  25. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  26. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +17 -0
  27. package/node_modules/@aws-sdk/core/package.json +1 -1
  28. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  29. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  30. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  31. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  32. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  33. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  34. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  35. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  36. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  37. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  38. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  39. package/node_modules/@smithy/abort-controller/package.json +2 -2
  40. package/node_modules/@smithy/config-resolver/package.json +5 -5
  41. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -1
  42. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -1
  43. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +3 -3
  44. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  45. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  46. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  47. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +1 -1
  48. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +1 -1
  49. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  50. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  51. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  52. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  53. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  54. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  55. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +1 -1
  56. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +1 -1
  57. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  58. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  59. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -1
  60. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  61. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  62. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +1 -1
  63. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +3 -3
  64. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
  65. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +1 -1
  66. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  67. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +1 -1
  68. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +1 -1
  69. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +1 -1
  70. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +1 -1
  71. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +1 -1
  72. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +1 -1
  73. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  74. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +1 -1
  75. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +1 -1
  76. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +1 -1
  77. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
  78. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +1 -1
  79. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -1
  80. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +1 -1
  81. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +1 -1
  82. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +1 -1
  83. package/node_modules/@smithy/core/package.json +7 -7
  84. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  85. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  86. package/node_modules/@smithy/hash-node/package.json +2 -2
  87. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  88. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  89. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  90. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  91. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  92. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  93. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  94. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  95. package/node_modules/@smithy/property-provider/package.json +2 -2
  96. package/node_modules/@smithy/protocol-http/package.json +2 -2
  97. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  98. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  99. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  100. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +2 -3
  101. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +10 -6
  102. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
  103. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +1 -1
  104. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +1 -2
  105. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +1 -0
  106. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -3
  107. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +2 -2
  108. package/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +12 -0
  109. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
  110. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +1 -0
  111. package/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +21 -0
  112. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
  113. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +1 -0
  114. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +21 -0
  115. package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -5
  116. package/node_modules/@smithy/signature-v4/package.json +4 -4
  117. package/node_modules/@smithy/smithy-client/package.json +7 -7
  118. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +12 -12
  119. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +5 -5
  120. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +15 -15
  121. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +12 -12
  122. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +5 -5
  123. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +15 -15
  124. package/node_modules/@smithy/types/package.json +1 -1
  125. package/node_modules/@smithy/url-parser/package.json +3 -3
  126. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  127. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  128. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  129. package/node_modules/@smithy/util-middleware/package.json +2 -2
  130. package/node_modules/@smithy/util-retry/package.json +3 -3
  131. package/node_modules/@smithy/util-stream/package.json +4 -4
  132. package/node_modules/@smithy/util-waiter/package.json +3 -3
  133. package/package.json +7 -7
  134. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -17
  135. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -13
  136. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -7
  137. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -7
@@ -4,7 +4,7 @@ import { Schema } from "./Schema";
4
4
  * Although numeric values exist for most simple schema, this class is used for cases where traits are
5
5
  * attached to those schema, since a single number cannot easily represent both a schema and its traits.
6
6
  *
7
- * @alpha
7
+ * @internal
8
8
  * @deprecated use StaticSchema
9
9
  */
10
10
  export declare class SimpleSchema extends Schema implements TraitsSchema {
@@ -3,7 +3,7 @@ import { Schema } from "./Schema";
3
3
  /**
4
4
  * A structure schema has a known list of members. This is also used for unions.
5
5
  *
6
- * @alpha
6
+ * @internal
7
7
  * @deprecated use StaticSchema
8
8
  */
9
9
  export declare class StructureSchema extends Schema implements IStructureSchema {
@@ -1,7 +1,7 @@
1
1
  import { BigDecimalSchema, BigIntegerSchema, BlobSchema, BooleanSchema, DocumentSchema, ListSchemaModifier, MapSchemaModifier, NumericSchema, StreamingBlobSchema, StringSchema, TimestampDateTimeSchema, TimestampDefaultSchema, TimestampEpochSecondsSchema, TimestampHttpDateSchema } from "@smithy/types";
2
2
  /**
3
3
  * Schema sentinel runtime values.
4
- * @alpha
4
+ * @internal
5
5
  *
6
6
  * @deprecated use inline numbers with type annotation to save space.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.17.2",
3
+ "version": "3.18.0",
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",
@@ -77,13 +77,13 @@
77
77
  "license": "Apache-2.0",
78
78
  "sideEffects": false,
79
79
  "dependencies": {
80
- "@smithy/middleware-serde": "^4.2.4",
81
- "@smithy/protocol-http": "^5.3.4",
82
- "@smithy/types": "^4.8.1",
80
+ "@smithy/middleware-serde": "^4.2.5",
81
+ "@smithy/protocol-http": "^5.3.5",
82
+ "@smithy/types": "^4.9.0",
83
83
  "@smithy/util-base64": "^4.3.0",
84
84
  "@smithy/util-body-length-browser": "^4.2.0",
85
- "@smithy/util-middleware": "^4.2.4",
86
- "@smithy/util-stream": "^4.5.5",
85
+ "@smithy/util-middleware": "^4.2.5",
86
+ "@smithy/util-stream": "^4.5.6",
87
87
  "@smithy/util-utf8": "^4.2.0",
88
88
  "@smithy/uuid": "^1.1.0",
89
89
  "tslib": "^2.6.2"
@@ -118,7 +118,7 @@
118
118
  "directory": "packages/core"
119
119
  },
120
120
  "devDependencies": {
121
- "@smithy/eventstream-serde-node": "^4.2.4",
121
+ "@smithy/eventstream-serde-node": "^4.2.5",
122
122
  "@types/node": "^18.11.9",
123
123
  "concurrently": "7.0.0",
124
124
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,10 +28,10 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.3.4",
32
- "@smithy/property-provider": "^4.2.4",
33
- "@smithy/types": "^4.8.1",
34
- "@smithy/url-parser": "^4.2.4",
31
+ "@smithy/node-config-provider": "^4.3.5",
32
+ "@smithy/property-provider": "^4.2.5",
33
+ "@smithy/types": "^4.9.0",
34
+ "@smithy/url-parser": "^4.2.5",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.3.5",
3
+ "version": "5.3.6",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -28,14 +28,14 @@
28
28
  "module": "./dist-es/index.js",
29
29
  "types": "./dist-types/index.d.ts",
30
30
  "dependencies": {
31
- "@smithy/protocol-http": "^5.3.4",
32
- "@smithy/querystring-builder": "^4.2.4",
33
- "@smithy/types": "^4.8.1",
31
+ "@smithy/protocol-http": "^5.3.5",
32
+ "@smithy/querystring-builder": "^4.2.5",
33
+ "@smithy/types": "^4.9.0",
34
34
  "@smithy/util-base64": "^4.3.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@smithy/abort-controller": "^4.2.4",
38
+ "@smithy/abort-controller": "^4.2.5",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "rimraf": "3.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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 hash-node",
@@ -32,7 +32,7 @@
32
32
  "typedoc": "0.23.23"
33
33
  },
34
34
  "dependencies": {
35
- "@smithy/types": "^4.8.1",
35
+ "@smithy/types": "^4.9.0",
36
36
  "@smithy/util-buffer-from": "^4.2.0",
37
37
  "@smithy/util-utf8": "^4.2.0",
38
38
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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 invalid-dependency",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.1",
27
+ "@smithy/types": "^4.9.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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-content-length",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/protocol-http": "^5.3.4",
29
- "@smithy/types": "^4.8.1",
28
+ "@smithy/protocol-http": "^5.3.5",
29
+ "@smithy/types": "^4.9.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
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-endpoint",
@@ -25,13 +25,13 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.17.2",
29
- "@smithy/middleware-serde": "^4.2.4",
30
- "@smithy/node-config-provider": "^4.3.4",
31
- "@smithy/shared-ini-file-loader": "^4.3.4",
32
- "@smithy/types": "^4.8.1",
33
- "@smithy/url-parser": "^4.2.4",
34
- "@smithy/util-middleware": "^4.2.4",
28
+ "@smithy/core": "^3.18.0",
29
+ "@smithy/middleware-serde": "^4.2.5",
30
+ "@smithy/node-config-provider": "^4.3.5",
31
+ "@smithy/shared-ini-file-loader": "^4.4.0",
32
+ "@smithy/types": "^4.9.0",
33
+ "@smithy/url-parser": "^4.2.5",
34
+ "@smithy/util-middleware": "^4.2.5",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.4.6",
3
+ "version": "4.4.7",
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,13 +34,13 @@
34
34
  "license": "Apache-2.0",
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@smithy/node-config-provider": "^4.3.4",
38
- "@smithy/protocol-http": "^5.3.4",
39
- "@smithy/service-error-classification": "^4.2.4",
40
- "@smithy/smithy-client": "^4.9.2",
41
- "@smithy/types": "^4.8.1",
42
- "@smithy/util-middleware": "^4.2.4",
43
- "@smithy/util-retry": "^4.2.4",
37
+ "@smithy/node-config-provider": "^4.3.5",
38
+ "@smithy/protocol-http": "^5.3.5",
39
+ "@smithy/service-error-classification": "^4.2.5",
40
+ "@smithy/smithy-client": "^4.9.3",
41
+ "@smithy/types": "^4.9.0",
42
+ "@smithy/util-middleware": "^4.2.5",
43
+ "@smithy/util-retry": "^4.2.5",
44
44
  "@smithy/uuid": "^1.1.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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-serde",
@@ -26,8 +26,8 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/protocol-http": "^5.3.4",
30
- "@smithy/types": "^4.8.1",
29
+ "@smithy/protocol-http": "^5.3.5",
30
+ "@smithy/types": "^4.9.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-stack",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -27,7 +27,7 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/types": "^4.8.1",
30
+ "@smithy/types": "^4.9.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -26,9 +26,9 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/property-provider": "^4.2.4",
30
- "@smithy/shared-ini-file-loader": "^4.3.4",
31
- "@smithy/types": "^4.8.1",
29
+ "@smithy/property-provider": "^4.2.5",
30
+ "@smithy/shared-ini-file-loader": "^4.4.0",
31
+ "@smithy/types": "^4.9.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.4.4",
3
+ "version": "4.4.5",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -27,10 +27,10 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/abort-controller": "^4.2.4",
31
- "@smithy/protocol-http": "^5.3.4",
32
- "@smithy/querystring-builder": "^4.2.4",
33
- "@smithy/types": "^4.8.1",
30
+ "@smithy/abort-controller": "^4.2.5",
31
+ "@smithy/protocol-http": "^5.3.5",
32
+ "@smithy/querystring-builder": "^4.2.5",
33
+ "@smithy/types": "^4.9.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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 property-provider",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.1",
27
+ "@smithy/types": "^4.9.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "5.3.4",
3
+ "version": "5.3.5",
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 protocol-http",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/types": "^4.8.1",
28
+ "@smithy/types": "^4.9.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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 querystring-builder",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@smithy/types": "^4.8.1",
26
+ "@smithy/types": "^4.9.0",
27
27
  "@smithy/util-uri-escape": "^4.2.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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 querystring-parser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.1",
27
+ "@smithy/types": "^4.9.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
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 service-error-classification",
@@ -55,6 +55,6 @@
55
55
  "directory": ".release/package"
56
56
  },
57
57
  "dependencies": {
58
- "@smithy/types": "^4.8.1"
58
+ "@smithy/types": "^4.9.0"
59
59
  }
60
60
  }
@@ -1,16 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSSOTokenFromFile = exports.tokenIntercept = void 0;
4
- const fs_1 = require("fs");
4
+ const promises_1 = require("fs/promises");
5
5
  const getSSOTokenFilepath_1 = require("./getSSOTokenFilepath");
6
- const { readFile } = fs_1.promises;
7
6
  exports.tokenIntercept = {};
8
7
  const getSSOTokenFromFile = async (id) => {
9
8
  if (exports.tokenIntercept[id]) {
10
9
  return exports.tokenIntercept[id];
11
10
  }
12
11
  const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
13
- const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
12
+ const ssoTokenText = await (0, promises_1.readFile)(ssoTokenFilepath, "utf8");
14
13
  return JSON.parse(ssoTokenText);
15
14
  };
16
15
  exports.getSSOTokenFromFile = getSSOTokenFromFile;
@@ -5,7 +5,7 @@ var getSSOTokenFilepath = require('./getSSOTokenFilepath');
5
5
  var getSSOTokenFromFile = require('./getSSOTokenFromFile');
6
6
  var path = require('path');
7
7
  var types = require('@smithy/types');
8
- var slurpFile = require('./slurpFile');
8
+ var readFile = require('./readFile');
9
9
 
10
10
  const ENV_PROFILE = "AWS_PROFILE";
11
11
  const DEFAULT_PROFILE = "default";
@@ -101,13 +101,13 @@ const loadSharedConfigFiles = async (init = {}) => {
101
101
  resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));
102
102
  }
103
103
  const parsedFiles = await Promise.all([
104
- slurpFile.slurpFile(resolvedConfigFilepath, {
104
+ readFile.readFile(resolvedConfigFilepath, {
105
105
  ignoreCache: init.ignoreCache,
106
106
  })
107
107
  .then(parseIni)
108
108
  .then(getConfigData)
109
109
  .catch(swallowError$1),
110
- slurpFile.slurpFile(resolvedFilepath, {
110
+ readFile.readFile(resolvedFilepath, {
111
111
  ignoreCache: init.ignoreCache,
112
112
  })
113
113
  .then(parseIni)
@@ -124,7 +124,7 @@ const getSsoSessionData = (data) => Object.entries(data)
124
124
  .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
125
125
 
126
126
  const swallowError = () => ({});
127
- const loadSsoSessionData = async (init = {}) => slurpFile.slurpFile(init.configFilepath ?? getConfigFilepath())
127
+ const loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath())
128
128
  .then(parseIni)
129
129
  .then(getSsoSessionData)
130
130
  .catch(swallowError);
@@ -151,10 +151,10 @@ const parseKnownFiles = async (init) => {
151
151
 
152
152
  const externalDataInterceptor = {
153
153
  getFileRecord() {
154
- return slurpFile.fileIntercept;
154
+ return readFile.fileIntercept;
155
155
  },
156
156
  interceptFile(path, contents) {
157
- slurpFile.fileIntercept[path] = Promise.resolve(contents);
157
+ readFile.fileIntercept[path] = Promise.resolve(contents);
158
158
  },
159
159
  getTokenRecord() {
160
160
  return getSSOTokenFromFile.tokenIntercept;
@@ -168,6 +168,10 @@ Object.defineProperty(exports, "getSSOTokenFromFile", {
168
168
  enumerable: true,
169
169
  get: function () { return getSSOTokenFromFile.getSSOTokenFromFile; }
170
170
  });
171
+ Object.defineProperty(exports, "readFile", {
172
+ enumerable: true,
173
+ get: function () { return readFile.readFile; }
174
+ });
171
175
  exports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;
172
176
  exports.DEFAULT_PROFILE = DEFAULT_PROFILE;
173
177
  exports.ENV_PROFILE = ENV_PROFILE;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readFile = exports.fileIntercept = exports.filePromises = void 0;
4
+ const promises_1 = require("node:fs/promises");
5
+ exports.filePromises = {};
6
+ exports.fileIntercept = {};
7
+ const readFile = (path, options) => {
8
+ if (exports.fileIntercept[path] !== undefined) {
9
+ return exports.fileIntercept[path];
10
+ }
11
+ if (!exports.filePromises[path] || options?.ignoreCache) {
12
+ exports.filePromises[path] = (0, promises_1.readFile)(path, "utf8");
13
+ }
14
+ return exports.filePromises[path];
15
+ };
16
+ exports.readFile = readFile;
@@ -1,5 +1,5 @@
1
1
  import { tokenIntercept } from "./getSSOTokenFromFile";
2
- import { fileIntercept } from "./slurpFile";
2
+ import { fileIntercept } from "./readFile";
3
3
  export const externalDataInterceptor = {
4
4
  getFileRecord() {
5
5
  return fileIntercept;
@@ -1,6 +1,5 @@
1
- import { promises as fsPromises } from "fs";
1
+ import { readFile } from "fs/promises";
2
2
  import { getSSOTokenFilepath } from "./getSSOTokenFilepath";
3
- const { readFile } = fsPromises;
4
3
  export const tokenIntercept = {};
5
4
  export const getSSOTokenFromFile = async (id) => {
6
5
  if (tokenIntercept[id]) {
@@ -7,3 +7,4 @@ export * from "./loadSsoSessionData";
7
7
  export * from "./parseKnownFiles";
8
8
  export { externalDataInterceptor } from "./externalDataInterceptor";
9
9
  export * from "./types";
10
+ export { readFile } from "./readFile";
@@ -4,7 +4,7 @@ import { getConfigFilepath } from "./getConfigFilepath";
4
4
  import { getCredentialsFilepath } from "./getCredentialsFilepath";
5
5
  import { getHomeDir } from "./getHomeDir";
6
6
  import { parseIni } from "./parseIni";
7
- import { slurpFile } from "./slurpFile";
7
+ import { readFile } from "./readFile";
8
8
  const swallowError = () => ({});
9
9
  export { CONFIG_PREFIX_SEPARATOR } from "./constants";
10
10
  export const loadSharedConfigFiles = async (init = {}) => {
@@ -20,13 +20,13 @@ export const loadSharedConfigFiles = async (init = {}) => {
20
20
  resolvedConfigFilepath = join(homeDir, configFilepath.slice(2));
21
21
  }
22
22
  const parsedFiles = await Promise.all([
23
- slurpFile(resolvedConfigFilepath, {
23
+ readFile(resolvedConfigFilepath, {
24
24
  ignoreCache: init.ignoreCache,
25
25
  })
26
26
  .then(parseIni)
27
27
  .then(getConfigData)
28
28
  .catch(swallowError),
29
- slurpFile(resolvedFilepath, {
29
+ readFile(resolvedFilepath, {
30
30
  ignoreCache: init.ignoreCache,
31
31
  })
32
32
  .then(parseIni)
@@ -1,9 +1,9 @@
1
1
  import { getConfigFilepath } from "./getConfigFilepath";
2
2
  import { getSsoSessionData } from "./getSsoSessionData";
3
3
  import { parseIni } from "./parseIni";
4
- import { slurpFile } from "./slurpFile";
4
+ import { readFile } from "./readFile";
5
5
  const swallowError = () => ({});
6
- export const loadSsoSessionData = async (init = {}) => slurpFile(init.configFilepath ?? getConfigFilepath())
6
+ export const loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath())
7
7
  .then(parseIni)
8
8
  .then(getSsoSessionData)
9
9
  .catch(swallowError);
@@ -0,0 +1,12 @@
1
+ import { readFile as fsReadFile } from "node:fs/promises";
2
+ export const filePromises = {};
3
+ export const fileIntercept = {};
4
+ export const readFile = (path, options) => {
5
+ if (fileIntercept[path] !== undefined) {
6
+ return fileIntercept[path];
7
+ }
8
+ if (!filePromises[path] || options?.ignoreCache) {
9
+ filePromises[path] = fsReadFile(path, "utf8");
10
+ }
11
+ return filePromises[path];
12
+ };
@@ -39,7 +39,9 @@ export interface SSOToken {
39
39
  startUrl?: string;
40
40
  }
41
41
  /**
42
+ * For testing only.
42
43
  * @internal
44
+ * @deprecated minimize use in application code.
43
45
  */
44
46
  export declare const tokenIntercept: Record<string, any>;
45
47
  /**
@@ -7,3 +7,4 @@ export * from "./loadSsoSessionData";
7
7
  export * from "./parseKnownFiles";
8
8
  export { externalDataInterceptor } from "./externalDataInterceptor";
9
9
  export * from "./types";
10
+ export { type ReadFileOptions, readFile } from "./readFile";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Runtime file cache.
3
+ * @internal
4
+ */
5
+ export declare const filePromises: Record<string, Promise<string>>;
6
+ /**
7
+ * For testing only.
8
+ * @internal
9
+ * @deprecated minimize use in application code.
10
+ */
11
+ export declare const fileIntercept: Record<string, Promise<string>>;
12
+ /**
13
+ * @internal
14
+ */
15
+ export interface ReadFileOptions {
16
+ ignoreCache?: boolean;
17
+ }
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const readFile: (path: string, options?: ReadFileOptions) => Promise<string>;
@@ -39,7 +39,9 @@ export interface SSOToken {
39
39
  startUrl?: string;
40
40
  }
41
41
  /**
42
+ * For testing only.
42
43
  * @internal
44
+ * @deprecated minimize use in application code.
43
45
  */
44
46
  export declare const tokenIntercept: Record<string, any>;
45
47
  /**
@@ -7,3 +7,4 @@ export * from "./loadSsoSessionData";
7
7
  export * from "./parseKnownFiles";
8
8
  export { externalDataInterceptor } from "./externalDataInterceptor";
9
9
  export * from "./types";
10
+ export { ReadFileOptions, readFile } from "./readFile";