Commit 60e195c
fix(stateMachine): handle plain string Fn::Sub when useExactVersion is true (#744)
When a state machine uses pseudo-parameters (#{...}) but no lambda
function references, Fn::Sub is set to a plain string rather than
an array. The useExactVersion code path then tried to assign to
index [1] of that string, throwing a TypeError in strict mode.
Fix by converting the plain string form to the array form
[template, {}] before applying the version conversion.
Closes #488
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 72860ca commit 60e195c
File tree
2 files changed
+39
-0
lines changed- lib/deploy/stepFunctions
2 files changed
+39
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1280 | 1316 | | |
1281 | 1317 | | |
1282 | 1318 | | |
| |||
0 commit comments