@smithy/core 3.35.1 → 3.35.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.35.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d74fb5f: fix endpoint cache key collision between empty-string and absent parameters
8
+
3
9
  ## 3.35.1
4
10
 
5
11
  ### Patch Changes
@@ -307,7 +307,8 @@ class EndpointCache {
307
307
  return false;
308
308
  }
309
309
  for (const param of parameters) {
310
- const val = String(endpointParams[param] ?? "");
310
+ const raw = endpointParams[param];
311
+ const val = raw == null ? "\0" : String(raw);
311
312
  if (val.includes("|;")) {
312
313
  return false;
313
314
  }
@@ -355,7 +355,8 @@ class EndpointCache {
355
355
  return false;
356
356
  }
357
357
  for (const param of parameters) {
358
- const val = String(endpointParams[param] ?? "");
358
+ const raw = endpointParams[param];
359
+ const val = raw == null ? "\0" : String(raw);
359
360
  if (val.includes("|;")) {
360
361
  return false;
361
362
  }
@@ -39,7 +39,8 @@ export class EndpointCache {
39
39
  return false;
40
40
  }
41
41
  for (const param of parameters) {
42
- const val = String(endpointParams[param] ?? "");
42
+ const raw = endpointParams[param];
43
+ const val = raw == null ? "\0" : String(raw);
43
44
  if (val.includes("|;")) {
44
45
  return false;
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.35.1",
3
+ "version": "3.35.2",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {