We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e12d157 + 22581a0 commit e784a29Copy full SHA for e784a29
lib/utils.js
@@ -111,7 +111,7 @@ class Utils {
111
* @returns {string}
112
*/
113
static getFunctionVersionName(versions, functionName) {
114
- return _.find(_.keys(versions), version => version === `${functionName}LambdaVersion`);
+ return _.find(_.keys(versions), version => _.startsWith(version, `${functionName}LambdaVersion`));
115
}
116
117
/**
@@ -120,7 +120,7 @@ class Utils {
120
121
122
static getAliasVersionName(aliases, functionName) {
123
- return _.find(_.keys(aliases), alias => alias === `${functionName}Alias`);
+ return _.find(_.keys(aliases), alias => _.startsWith(alias, `${functionName}Alias`));
124
125
126
0 commit comments