@alekitto/cdk-constructs
Advanced tools
Comparing version 0.1.8-beta.3 to 0.1.8
@@ -111,2 +111,2 @@ "use strict"; | ||
exports.Code = Code; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNvZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkNBQTRIO0FBQzVILGlEQUE0RDtBQUM1RCwrQ0FBZ0Q7QUFFaEQsU0FBUyxPQUFPLENBQUMsQ0FBYTtJQUMxQixPQUFPLEtBQUssQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLEVBQUUsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDO0FBQzVDLENBQUM7QUFFRCxTQUFTLFVBQVUsQ0FBQyxJQUFjLEVBQUUsT0FBMEI7O0lBQzFELE1BQU0sSUFBSSxTQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsVUFBVSxtQ0FBSSxRQUFRLENBQUM7SUFDaEQsTUFBTSxJQUFJLEdBQUcseUJBQVMsQ0FBQyxJQUFJLEVBQUUsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBRTVDLElBQUksSUFBSSxDQUFDLEtBQUssRUFBRTtRQUNaLE1BQU0sSUFBSSxDQUFDLEtBQUssQ0FBQztLQUNwQjtJQUVELElBQUksQ0FBQyxLQUFLLElBQUksQ0FBQyxNQUFNLEVBQUU7UUFDbkIsSUFBSSxJQUFJLENBQUMsTUFBTSxJQUFJLElBQUksQ0FBQyxNQUFNLEVBQUU7WUFDNUIsTUFBTSxJQUFJLEtBQUssQ0FBQyxXQUFXLElBQUksQ0FBQyxNQUFNLGFBQWEsTUFBQSxJQUFJLENBQUMsTUFBTSwwQ0FBRSxRQUFRLEdBQUcsSUFBSSxFQUFFLGlCQUFpQixNQUFBLElBQUksQ0FBQyxNQUFNLDBDQUFFLFFBQVEsR0F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D8udG9TdHJpbmcoKS50cmltKCl9XFxuXFxuXFxuc3RkZXJyOiAke3Byb2Muc3RkZXJyPy50b1N0cmluZygpLnRyaW0oKX1gKTtcbiAgICAgICAgfVxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYCR7cHJvZ30gZXhpdGVkIHdpdGggc3RhdHVzICR7cHJvYy5zdGF0dXN9YCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHByb2M7XG59XG5cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBDb2RlIGV4dGVuZHMgbGFtYmRhLkNvZGUge1xuICAgIHN0YXRpYyBmcm9tQXNzZXQocGF0aDogc3RyaW5nLCBvcHRpb25zPzogczNfYXNzZXRzLkFzc2V0T3B0aW9ucyk6IGxhbWJkYS5Bc3NldENvZGUge1xuICAgICAgICBjb25zdCBidW5kbGluZ09wdGlvbnM6IEJ1bmRsaW5nT3B0aW9ucyB8IHVuZGVmaW5lZCA9IG9wdGlvbnM/LmJ1bmRsaW5nICE9PSB1bmRlZmluZWQgPyB7XG4gICAgICAgICAgICBsb2NhbDoge1xuICAgICAgICAgICAgICAgIHRyeUJ1bmRsZShvdXRwdXREaXI6IHN0cmluZywgb3B0aW9uczogQnVuZGxpbmdPcHRpb25zKTogYm9vbGVhbiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGRvY2tlclZvbHVtZXM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZvbHVtZTogRG9ja2VyVm9sdW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgdm9sdW1lTmFtZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICB9W10gPSBbXTtcblxuICAgICAgICAgICAgICAgICAgICBsZXQgaW5wdXRWb2x1bWU6IGFueTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IG91dHB1dFZvbHVtZTogYW55O1xuXG4gICAgICAgICAgICAgICAgICAgIC8vIEFsd2F5cyBtb3VudCBpbnB1dCBhbmQgb3V0cHV0IGRpclxuICAgICAgICAgICAgICAgICAgICBjb25zdCB2b2x1bWVzID0gW1xuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhvc3RQYXRoOiBwYXRoLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRhaW5lclBhdGg6IEFzc2V0U3RhZ2luZy5CVU5ETElOR19JTlBVVF9ESVIsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhvc3RQYXRoOiBvdXRwdXREaXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGFpbmVyUGF0aDogQXNzZXRTdGFnaW5nLkJVTkRMSU5HX09VVFBVVF9ESVIsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4ub3B0aW9ucy52b2x1bWVzID8/IFtdLFxuICAgICAgICAgICAgICAgICAgICBdO1xuXG4gICAgICAgICAgICAgICAgICAgIGZvciAoY29uc3QgdiBvZiB2b2x1bWVzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB2b2x1bWVOYW1lID0gbWFrZVVuaXF1ZUlkKFsgdi5ob3N0UGF0aCBdKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHZvbHVtZSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2b2x1bWU6IHYsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdm9sdW1lTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGRvY2tlclZvbHVtZXMucHVzaCh2b2x1bWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHYuY29udGFpbmVyUGF0aCA9PT0gQXNzZXRTdGFnaW5nLkJVTkRMSU5HX0lOUFVUX0RJUikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlucHV0Vm9sdW1lID0gdm9sdW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh2LmNvbnRhaW5lclBhdGggPT09IEFzc2V0U3RhZ2luZy5CVU5ETElOR19PVVRQVVRfRElSKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0Vm9sdW1lID0gdm9sdW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBkb2NrZXJFeGVjKFsgJ3ZvbHVtZScsICdjcmVhdGUnLCB2b2x1bWVOYW1lIF0pO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gRG9ja2VyIHJ1biAtdiBhc3NldC1pbnB1dDovYXNzZXQtaW5wdXQgLXYgYXNzZXQtb3V0cHV0Oi9hc3NldC1vdXRwdXQgLS1uYW1lIGhlbHBlciBidXN5Ym94XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGhlbHBlck5hbWUgPSAnaGVscGVyJyArIH5+KE1hdGgucmFuZG9tKCkgKiAxMDAwMDAwMCk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGhlbHBlckNvbnRhaW5lclByb2MgPSBkb2NrZXJFeGVjKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICdydW4nLCAnLWQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4uZmxhdHRlbihkb2NrZXJWb2x1bWVzLm1hcChkdiA9PiBbICctdicsIGR2LnZvbHVtZU5hbWUgKyAnOicgKyBkdi52b2x1bWUuY29udGFpbmVyUGF0aCBdKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAnLS1uYW1lJywgaGVscGVyTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICdidXN5Ym94JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICdzbGVlcCcsICcxODAnLFxuICAgICAgICAgICAgICAgICAgICBdKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoaGVscGVyQ29udGFpbmVyUHJvYy5lcnJvcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgaGVscGVyQ29udGFpbmVyUHJvYy5lcnJvcjtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGlmICgwICE9PSBoZWxwZXJDb250YWluZXJQcm9jLnN0YXR1cykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdCdW5kbGluZyBoZWxwZXIgZXhpdGVkIHdpdGggc3RhdHVzOiAnICsgaGVscGVyQ29udGFpbmVyUHJvYy5zdGF0dXMpO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gRG9ja2VyIGNwIDxhc3NldCBzb3VyY2U+IGhlbHBlcjovYXNzZXQtaW5wdXRcbiAgICAgICAgICAgICAgICAgICAgZG9ja2VyRXhlYyhbICdjcCcsIGlucHV0Vm9sdW1lIS52b2x1bWUuaG9zdFBhdGggKyAnLy4nLCBoZWxwZXJOYW1lICsgJzonICsgaW5wdXRWb2x1bWUhLnZvbHVtZS5jb250YWluZXJQYXRoIF0pO1xuXG4gICAgICAgICAgICAgICAgICAgIC8vIERvY2tlciBydW4gLS1ybSAtdiBhc3NldC1pbnB1dDovYXNzZXQtaW5wdXQgLXYgYXNzZXQtb3V0cHV0L2Fzc2V0LW91dHB1dCA8dXNlciBjb21tYW5kPlxuICAgICAgICAgICAgICAgICAgICBjb25zdCBlbnZpcm9ubWVudCA9IG9wdGlvbnMuZW52aXJvbm1lbnQgfHwge307XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGNvbW1hbmQgPSBvcHRpb25zLmNvbW1hbmQgfHwgW107XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGRvY2tlckFyZ3MgPSBbXG4gICAgICAgICAgICAgICAgICAgICAgICAncnVuJywgJy0tcm0nLFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4ub3B0aW9ucy51c2VyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBbICctdScsIG9wdGlvbnMudXNlciBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLmZsYXR0ZW4oZG9ja2VyVm9sdW1lcy5tYXAodiA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFsgJy12JywgYCR7di52b2x1bWVOYW1lfToke3Yudm9sdW1lLmNvbnRhaW5lclBhdGh9YCBdO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSkpLFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4uZmxhdHRlbihPYmplY3QuZW50cmllcyhlbnZpcm9ubWVudCkubWFwKChbIGssIHYgXSkgPT4gWyAnLS1lbnYnLCBgJHtrfT0ke3Z9YCBdKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAnLXcnLCBpbnB1dFZvbHVtZSEudm9sdW1lLmNvbnRhaW5lclBhdGgsXG4gICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zLmltYWdlLnRvSlNPTigpLFxuICAgICAgICAgICAgICAgICAgICAgICAgLi4uY29tbWFuZCxcbiAgICAgICAgICAgICAgICAgICAgXTtcblxuICAgICAgICAgICAgICAgICAgICBkb2NrZXJFeGVjKGRvY2tlckFyZ3MpO1xuXG4gICAgICAgICAgICAgICAgICAgIC8vIERvY2tlciBjcCBoZWxwZXI6L2Fzc2V0LW91dHB1dCA8c3RhZ2VkIGJ1bmRsaW5nIGRpcj5cbiAgICAgICAgICAgICAgICAgICAgZG9ja2VyRXhlYyhbICdjcCcsIGhlbHBlck5hbWUgKyAnOicgKyBvdXRwdXRWb2x1bWUhLnZvbHVtZS5jb250YWluZXJQYXRoICsgJy8uJywgb3V0cHV0Vm9sdW1lIS52b2x1bWUuaG9zdFBhdGggXSk7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gRG9ja2VyIHJ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ICAgICB0cnlCdW5kbGUob3V0cHV0RGlyOiBzdHJpbmcsIG9wdGlvbnM6IEJ1bmRsaW5nT3B0aW9ucyk6IGJvb2xlYW4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBkb2NrZXJWb2x1bWVzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB2b2x1bWU6IERvY2tlclZvbHVtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHZvbHVtZU5hbWU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgfVtdID0gW107XG5cbiAgICAgICAgICAgICAgICAgICAgbGV0IGlucHV0Vm9sdW1lOiBhbnk7XG4gICAgICAgICAgICAgICAgICAgIGxldCBvdXRwdXRWb2x1bWU6IGFueTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBBbHdheXMgbW91bnQgaW5wdXQgYW5kIG91dHB1dCBkaXJcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgdm9sdW1lcyA9IFtcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBob3N0UGF0aDogcGF0aCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250YWluZXJQYXRoOiBBc3NldFN0YWdpbmcuQlVORExJTkdfSU5QVVRfRElSLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBob3N0UGF0aDogb3V0cHV0RGlyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRhaW5lclBhdGg6IEFzc2V0U3RhZ2luZy5CVU5ETElOR19PVVRQVVRfRElSLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLm9wdGlvbnMudm9sdW1lcyA/PyBbXSxcbiAgICAgICAgICAgICAgICAgICAgXTtcblxuICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IHYgb2Ygdm9sdW1lcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3Qgdm9sdW1lTmFtZSA9IG1ha2VVbmlxdWVJZChbIHYuaG9zdFBhdGggXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB2b2x1bWUgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdm9sdW1lOiB2LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZvbHVtZU5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBkb2NrZXJWb2x1bWVzLnB1c2godm9sdW1lKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2LmNvbnRhaW5lclBhdGggPT09IEFzc2V0U3RhZ2luZy5CVU5ETElOR19JTlBVVF9ESVIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnB1dFZvbHVtZSA9IHZvbHVtZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodi5jb250YWluZXJQYXRoID09PSBBc3NldFN0YWdpbmcuQlVORExJTkdfT1VUUFVUX0RJUikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dFZvbHVtZSA9IHZvbHVtZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgZG9ja2VyRXhlYyhbICd2b2x1bWUnLCAnY3JlYXRlJywgdm9sdW1lTmFtZSBdKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIERvY2tlciBydW4gLXYgYXNzZXQtaW5wdXQ6L2Fzc2V0LWlucHV0IC12IGFzc2V0LW91dHB1dDovYXNzZXQtb3V0cHV0IC0tbmFtZSBoZWxwZXIgYnVzeWJveFxuICAgICAgICAgICAgICAgICAgICBjb25zdCBoZWxwZXJOYW1lID0gJ2hlbHBlcicgKyB+fihNYXRoLnJhbmRvbSgpICogMTAwMDAwMDApO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBoZWxwZXJDb250YWluZXJQcm9jID0gZG9ja2VyRXhlYyhbXG4gICAgICAgICAgICAgICAgICAgICAgICAncnVuJywgJy1kJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLmZsYXR0ZW4oZG9ja2VyVm9sdW1lcy5tYXAoZHYgPT4gWyAnLXYnLCBkdi52b2x1bWVOYW1lICsgJzonICsgZHYudm9sdW1lLmNvbnRhaW5lclBhdGggXSkpLFxuICAgICAgICAgICAgICAgICAgICAgICAgJy0tbmFtZScsIGhlbHBlck5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAnYnVzeWJveCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAnc2xlZXAnLCAnMTgwJyxcbiAgICAgICAgICAgICAgICAgICAgXSk7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKGhlbHBlckNvbnRhaW5lclByb2MuZXJyb3IpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IGhlbHBlckNvbnRhaW5lclByb2MuZXJyb3I7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBpZiAoMCAhPT0gaGVscGVyQ29udGFpbmVyUHJvYy5zdGF0dXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignQnVuZGxpbmcgaGVscGVyIGV4aXRlZCB3aXRoIHN0YXR1czogJyArIGhlbHBlckNvbnRhaW5lclByb2Muc3RhdHVzKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIERvY2tlciBjcCA8YXNzZXQgc291cmNlPiBoZWxwZXI6L2Fzc2V0LWlucHV0XG4gICAgICAgICAgICAgICAgICAgIGRvY2tlckV4ZWMoWyAnY3AnLCBpbnB1dFZvbHVtZSEudm9sdW1lLmhvc3RQYXRoICsgJy8uJywgaGVscGVyTmFtZSArICc6JyArIGlucHV0Vm9sdW1lIS52b2x1bWUuY29udGFpbmVyUGF0aCBdKTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBEb2NrZXIgcnVuIC0tcm0gLXYgYXNzZXQtaW5wdXQ6L2Fzc2V0LWlucHV0IC12IGFzc2V0LW91dHB1dC9hc3NldC1vdXRwdXQgPHVzZXIgY29tbWFuZD5cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgZW52aXJvbm1lbnQgPSBvcHRpb25zLmVudmlyb25tZW50IHx8IHt9O1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBjb21tYW5kID0gb3B0aW9ucy5jb21tYW5kIHx8IFtdO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBkb2NrZXJBcmdzID0gW1xuICAgICAgICAgICAgICAgICAgICAgICAgJ3J1bicsICctLXJtJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLm9wdGlvbnMudXNlclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gWyAnLXUnLCBvcHRpb25zLnVzZXIgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAuLi5mbGF0dGVuKGRvY2tlclZvbHVtZXMubWFwKHYgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbICctdicsIGAke3Yudm9sdW1lTmFtZX06JHt2LnZvbHVtZS5jb250YWluZXJQYXRofWAgXTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLmZsYXR0ZW4oT2JqZWN0LmVudHJpZXMoZW52aXJvbm1lbnQpLm1hcCgoWyBrLCB2IF0pID0+IFsgJy0tZW52JywgYCR7a309JHt2fWAgXSkpLFxuICAgICAgICAgICAgICAgICAgICAgICAgJy13JywgaW5wdXRWb2x1bWUhLnZvbHVtZS5jb250YWluZXJQYXRoLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5pbWFnZS50b0pTT04oKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLmNvbW1hbmQsXG4gICAgICAgICAgICAgICAgICAgIF07XG5cbiAgICAgICAgICAgICAgICAgICAgZG9ja2VyRXhlYyhkb2NrZXJBcmdzKTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBEb2NrZXIgY3AgaGVscGVyOi9hc3NldC1vdXRwdXQgPHN0YWdlZCBidW5kbGluZyBkaXI+XG4gICAgICAgICAgICAgICAgICAgIGRvY2tlckV4ZWMoWyAnY3AnLCBoZWxwZXJOYW1lICsgJzonICsgb3V0cHV0Vm9sdW1lIS52b2x1bWUuY29udGFpbmVyUGF0aCArICcvLicsIG91dHB1dFZvbHVtZSEudm9sdW1lLmhvc3RQYXRoIF0pO1xuXG4gICAgICAgICAgICAgICAgICAgIC8vIERvY2tlciBybSBoZWxwZXJcbiAgICAgICAgICAgICAgICAgICAgZG9ja2VyRXhlYyhbICdybScsICctLWZvcmNlJywgaGVscGVyTmFtZSBdKTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBEb2NrZXIgcm0gaGVscGVyXG4gICAgICAgICAgICAgICAgICAgIGRvY2tlckV4ZWMoWyAndm9sdW1lJywgJ3JtJywgLi4uZG9ja2VyVm9sdW1lcy5tYXAodiA9PiB2LnZvbHVtZU5hbWUpIF0pO1xuXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLi4ub3B0aW9ucy5idW5kbGluZyxcbiAgICAgICAgfSA6IHVuZGVmaW5lZDtcblxuICAgICAgICByZXR1cm4gbGFtYmRhLkNvZGUuZnJvbUFzc2V0KHBhdGgsIHsgLi4uKG9wdGlvbnMgPz8ge30pLCBidW5kbGluZzogYnVuZGxpbmdPcHRpb25zIH0pO1xuICAgIH1cbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
import { IResolvable, TokenizedStringFragments } from "aws-cdk-lib"; | ||
import { IResolvable, TokenizedStringFragments } from 'aws-cdk-lib'; | ||
export declare const BEGIN_STRING_TOKEN_MARKER = "${Token["; | ||
@@ -3,0 +3,0 @@ export declare const BEGIN_LIST_TOKEN_MARKER = "#{Token["; |
@@ -19,2 +19,3 @@ "use strict"; | ||
class TokenString { | ||
/* eslint-disable no-useless-constructor */ | ||
constructor(str, re) { | ||
@@ -36,2 +37,3 @@ this.str = str; | ||
} | ||
/* eslint-enable no-useless-constructor */ | ||
/** | ||
@@ -81,14 +83,12 @@ * Split string on markers, substituting markers with Tokens | ||
function unresolved(obj) { | ||
if (typeof (obj) === 'string') { | ||
if ('string' === typeof (obj)) { | ||
return TokenString.forString(obj).test(); | ||
} | ||
else if (typeof obj === 'number') { | ||
else if ('number' === typeof obj) { | ||
return extractTokenDouble(obj) !== undefined; | ||
} | ||
else if (Array.isArray(obj) && obj.length === 1) { | ||
return typeof (obj[0]) === 'string' && TokenString.forListToken(obj[0]).test(); | ||
else if (Array.isArray(obj) && 1 === obj.length) { | ||
return 'string' === typeof (obj[0]) && TokenString.forListToken(obj[0]).test(); | ||
} | ||
else { | ||
return aws_cdk_lib_1.isResolvableObject(obj); | ||
} | ||
return aws_cdk_lib_1.isResolvableObject(obj); | ||
} | ||
@@ -150,3 +150,3 @@ exports.unresolved = unresolved; | ||
// Must use + instead of | here (bitwise operations | ||
// will force 32-bits integer arithmetic, + will not). | ||
// Will force 32-bits integer arithmetic, + will not). | ||
return ints[0] + shl32(ints[1] & 0xFFFF); | ||
@@ -156,2 +156,2 @@ /* eslint-enable no-bitwise */ | ||
exports.extractTokenDouble = extractTokenDouble; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jb2RpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJlbmNvZGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2Q0FBd0Y7QUFFeEYscUZBQXFG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CA9IG5ldyBUb2tlbml6ZWRTdHJpbmdGcmFnbWVudHMoKTtcblxuICAgICAgICBsZXQgcmVzdCA9IDA7XG4gICAgICAgIHRoaXMucmUubGFzdEluZGV4ID0gMDsgLy8gUmVzZXRcbiAgICAgICAgbGV0IG0gPSB0aGlzLnJlLmV4ZWModGhpcy5zdHIpO1xuICAgICAgICB3aGlsZSAobSkge1xuICAgICAgICAgICAgaWYgKG0uaW5kZXggPiByZXN0KSB7XG4gICAgICAgICAgICAgICAgcmV0LmFkZExpdGVyYWwodGhpcy5zdHIuc3Vic3RyaW5nKHJlc3QsIG0uaW5kZXgpKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmV0LmFkZFRva2VuKGxvb2t1cChtWzFdKSk7XG5cbiAgICAgICAgICAgIHJlc3QgPSB0aGlzLnJlLmxhc3RJbmRleDtcbiAgICAgICAgICAgIG0gPSB0aGlzLnJlLmV4ZWModGhpcy5zdHIpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHJlc3QgPCB0aGlzLnN0ci5sZW5ndGgpIHtcbiAgICAgICAgICAgIHJldC5hZGRMaXRlcmFsKHRoaXMuc3RyLnN1YnN0cmluZyhyZXN0KSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmV0O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEluZGljYXRlcyBpZiB0aGlzIHN0cmluZyBpbmNsdWRlcyB0b2tlbnMuXG4gICAgICovXG4gICAgcHVibGljIHRlc3QoKTogYm9vbGVhbiB7XG4gICAgICAgIHRoaXMucmUubGFzdEluZGV4ID0gMDsgLy8gUmVzZXRcbiAgICAgICAgcmV0dXJuIHRoaXMucmUudGVzdCh0aGlzLnN0cik7XG4gICAgfVxufVxuXG4vKipcbiAqIFF1b3RlIGEgc3RyaW5nIGZvciB1c2UgaW4gYSByZWdleFxuICovXG5leHBvcnQgZnVuY3Rpb24gcmVnZXhRdW90ZShzOiBzdHJpbmcpIHtcbiAgICByZXR1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ge1xuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIC8vIE11c3QgdXNlICsgaW5zdGVhZCBvZiB8IGhlcmUgKGJpdHdpc2Ugb3BlcmF0aW9uc1xuICAgIC8vIFdpbGwgZm9yY2UgMzItYml0cyBpbnRlZ2VyIGFyaXRobWV0aWMsICsgd2lsbCBub3QpLlxuICAgIHJldHVybiBpbnRzWzBdICsgc2hsMzIoaW50c1sxXSAmIDB4RkZGRik7XG4gICAgLyogZXNsaW50LWVuYWJsZSBuby1iaXR3aXNlICovXG59XG4iXX0= |
@@ -19,3 +19,3 @@ "use strict"; | ||
const HASH_LEN = 8; | ||
const MAX_HUMAN_LEN = 240; // max ID len is 255 | ||
const MAX_HUMAN_LEN = 240; // Max ID len is 255 | ||
const MAX_ID_LEN = 255; | ||
@@ -33,3 +33,3 @@ /** | ||
components = components.filter(x => x !== HIDDEN_ID); | ||
if (components.length === 0) { | ||
if (0 === components.length) { | ||
throw new Error('Unable to calculate a unique id for an empty set of components'); | ||
@@ -39,17 +39,17 @@ } | ||
const unresolvedTokens = components.filter(c => encoding_1.unresolved(c)); | ||
if (unresolvedTokens.length > 0) { | ||
if (0 < unresolvedTokens.length) { | ||
throw new Error(`ID components may not include unresolved tokens: ${unresolvedTokens.join(',')}`); | ||
} | ||
// top-level resources will simply use the `name` as-is in order to support | ||
// transparent migration of cloudformation templates to the CDK without the | ||
// need to rename all resources. | ||
if (components.length === 1) { | ||
// we filter out non-alpha characters but that is actually a bad idea | ||
// because it could create conflicts ("A-B" and "AB" will render the same | ||
// logical ID). sadly, changing it in the 1.x version line is impossible | ||
// because it will be a breaking change. we should consider for v2.0. | ||
// Top-level resources will simply use the `name` as-is in order to support | ||
// Transparent migration of cloudformation templates to the CDK without the | ||
// Need to rename all resources. | ||
if (1 === components.length) { | ||
// We filter out non-alpha characters but that is actually a bad idea | ||
// Because it could create conflicts ("A-B" and "AB" will render the same | ||
// Logical ID). sadly, changing it in the 1.x version line is impossible | ||
// Because it will be a breaking change. we should consider for v2.0. | ||
// https://github.com/aws/aws-cdk/issues/6421 | ||
const candidate = removeNonAlphanumeric(components[0]); | ||
// if our candidate is short enough, use it as is. otherwise, fall back to | ||
// the normal mode. | ||
// If our candidate is short enough, use it as is. otherwise, fall back to | ||
// The normal mode. | ||
if (candidate.length <= MAX_ID_LEN) { | ||
@@ -92,3 +92,3 @@ return candidate; | ||
for (const component of path) { | ||
if (ret.length === 0 || !ret[ret.length - 1].endsWith(component)) { | ||
if (0 === ret.length || !ret[ret.length - 1].endsWith(component)) { | ||
ret.push(component); | ||
@@ -99,2 +99,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pcXVlaWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ1bmlxdWVpZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxpQ0FBaUM7QUFDakMseUNBQXdDO0FBRXhDOzs7OztHQUtHO0FBQ0gsTUFBTSxvQkFBb0IsR0FBRyxVQUFVLENBQUM7QUFFeEM7O0dBRUc7QUFDSCxNQUFNLFNBQVMsR0FBRyxTQUFTLENBQUM7QUFFNUIsTUFBTSxRQUFRLEdBQUcsR0FBRyxDQUFDO0FBRXJCLE1BQU0sUUFBUSxHQUFHLENBQUMsQ0FBQztBQUNuQixNQUFNLGFBQWEsR0FBRyxHQUFHLENBQUMsQ0FBQyxvQkFBb0I7QUFDL0MsTUFBTSxVQUFVLEdBQUcsR0FBRyxDQUFDO0FBRXZCOzs7Ozs7OztHQVFHO0FBQ0gsU0FBZ0IsWUFBWSxDQUFDLFVBQW9CO0lBQzdDLFVBQVUsR0FBRyxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxLQUFLLFNBQVMsQ0FBQyxDQUFDO0lBRXJELElBQUksVUFBVSxDQUFDLE1BQU0sS0FBSyxDQU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8c3RyaW5nPigpO1xuXG4gICAgZm9yIChjb25zdCBjb21wb25lbnQgb2YgcGF0aCkge1xuICAgICAgICBpZiAoMCA9PT0gcmV0Lmxlbmd0aCB8fCAhcmV0W3JldC5sZW5ndGggLSAxXS5lbmRzV2l0aChjb21wb25lbnQpKSB7XG4gICAgICAgICAgICByZXQucHVzaChjb21wb25lbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHJldDtcbn1cbiJdfQ== |
{ | ||
"name": "@alekitto/cdk-constructs", | ||
"version": "0.1.8-beta.3", | ||
"version": "0.1.8", | ||
"description": "AWS CDK constructs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
1013794