@gammarers/aws-resource-naming
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -14,3 +14,3 @@ import * as crypto from 'crypto'; | ||
export declare namespace ResourceNaming { | ||
export function createRandomString(value: crypto.BinaryLike, length?: number): string; | ||
function createRandomString(value: crypto.BinaryLike, length?: number): string; | ||
type ResourceNamingOption = ResourceAutoNaming | ResourceDefaultNaming | { | ||
@@ -20,3 +20,3 @@ type: ResourceNamingType.CUSTOM; | ||
}; | ||
export function naming(autoNaming: { | ||
function naming(autoNaming: { | ||
[p: string]: string; | ||
@@ -26,3 +26,2 @@ }, resourceNaming?: ResourceNamingOption): { | ||
}; | ||
export {}; | ||
} |
@@ -93,2 +93,2 @@ "use strict"; | ||
})(ResourceNaming || (exports.ResourceNaming = ResourceNaming = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQWlDO0FBRWpDLFVBQVU7QUFDViw2QkFBNkI7QUFDN0IsU0FBUztBQUVULHlCQUF5QjtBQUN6Qix3RUFBd0U7QUFDeEUsSUFBSTtBQUVKLElBQVksa0JBSVg7QUFKRCxXQUFZLGtCQUFrQjtJQUM1Qix5Q0FBbUIsQ0FBQTtJQUNuQixtQ0FBYSxDQUFBO0lBQ2IsdUNBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQUpXLGtCQUFrQixrQ0FBbEIsa0JBQWtCLFFBSTdCO0FBVUQsSUFBaUIsY0FBYyxDQTBGOUI7QUExRkQsV0FBaUIsY0FBYztJQUU3Qiw0QkFBNEI7SUFDNUIsNkJBQTZCO0lBQzdCLDRCQUE0QjtJQUM1QixLQUFLO0lBRUwsbUNBQW1DO0lBQ25DLDBDQUEwQztJQUMxQyx1Q0FBdUM7SUFDdkMsdUJBQXVCO0lBQ3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uIHZhbHVlO1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgIGNhc2UgUmVzb3VyY2VOYW1pbmdUeXBlLkRFRkFVTFQ6XG4gICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgfVxuICAgICAgICAgIC8vICAgICAgICAgIGlmIChSZXNvdXJjZU5hbWluZy5pc05hbWluZ1R5cGUocmVzb3VyY2VOYW1pbmcubmFtaW5nLnR5cGUpKSB7XG4gICAgICAgICAgLy8gICAgICAgICAgICBpZiAocmVzb3VyY2VOYW1pbmcubmFtaW5nLnR5cGUgPT09IFJlc291cmNlTmFtaW5nLk5hbWluZ1R5cGUuREVGQVVMVCkge1xuICAgICAgICAgIC8vICAgICAgICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgICAgICAgLy8gICAgICAgICAgICB9XG4gICAgICAgICAgLy8gICAgICAgICAgICBpZiAocmVzb3VyY2VOYW1pbmcubmFtaW5nLnR5cGUgPT09IFJlc291cmNlTmFtaW5nLk5hbWluZ1R5cGUuTk8pIHtcbiAgICAgICAgICAvLyAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgICAvLyAgICAgICAgICAgIH1cbiAgICAgICAgICAvLyAgICAgICAgICAgIHJldHVybiByZXNvdXJjZU5hbWluZy5uYW1pbmcubmFtZXNbbmFtZSBhcyBrZXlvZiB7W2tleTogc3RyaW5nXTogc3RyaW5nfV07XG4gICAgICAgICAgLy8gICAgICAgICAgfVxuICAgICAgICAgIC8vIHJldHVybiByZXNvdXJjZU5hbWluZy5uYW1pbmdbbmFtZSBhcyBrZXlvZiB7W0sgaW4gVF06IHN0cmluZ31dO1xuICAgICAgICAgIC8vIHJldHVybiByZXNvdXJjZU5hbWluZy5uYW1pbmcubmFtZXNbbmFtZSBhcyBrZXlvZiB7W2tleTogc3RyaW5nXTogc3RyaW5nfV07XG5cbiAgICAgICAgICAvLyByZXR1cm4gdW5kZWZpbmVkO1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biAgICAvLyAgICB9KSB7XG4gICAgcmVzb3VyY2VOYW1pbmc/OiBSZXNvdXJjZU5hbWluZ09wdGlvbikge1xuICAgIHJldHVybiBPYmplY3QuZnJvbUVudHJpZXMoXG4gICAgICBPYmplY3QuZW50cmllcyhhdXRvTmFtaW5nKS5tYXAoKFtuYW1lLCB2YWx1ZV0pID0+IHtcbiAgICAgICAgcmV0dXJuIFtuYW1lLCAoKCkgPT4ge1xuICAgICAgICAgIHN3aXRjaCAocmVzb3VyY2VOYW1pbmc/LnR5cGUpIHtcbiAgICAgICAgICAgIGNhc2UgUmVzb3VyY2VOYW1pbmdUeXBlLkNVU1RPTTpcbiAgICAgICAgICAgICAgLy8gcmV0dXJuIHJlc291cmNlTmFtaW5nLltuYW1lIGFzIGtleW9mIHtba2V5OiBzdHJpbmddOiBzdHJpbmd9XTtcbiAgICAgICAgICAgICAgLy8gcmV0dXJuIHJlc291cmNlTmFtaW5nLm5hbWVzW25hbWUgYXMga2V5b2Yge1trZXk6IHN0cmluZ106IHN0cmluZ31dO1xuICAgICAgICAgICAgICByZXR1cm4gcmVzb3VyY2VOYW1pbmdbbmFtZSBhcyBrZXlvZiB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB9XTtcbiAgICAgICAgICAgIGNhc2UgUmVzb3VyY2VOYW1pbmdUeXBlLkFVVE86XG4gICAgICAgICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICBjYXNlIFJlc291cmNlTmFtaW5nVHlwZS5ERUZBVUxUOlxuICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICAgIH1cbiAgICAgICAgICAvLyAgICAgICAgICBpZiAoUmVzb3VyY2VOYW1pbmcuaXNOYW1pbmdUeXBlKHJlc291cmNlTmFtaW5nLm5hbWluZy50eXBlKSkge1xuICAgICAgICAgIC8vICAgICAgICAgICAgaWYgKHJlc291cmNlTmFtaW5nLm5hbWluZy50eXBlID09PSBSZXNvdXJjZU5hbWluZy5OYW1pbmdUeXBlLkRFRkFVTFQpIHtcbiAgICAgICAgICAvLyAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICAgIC8vICAgICAgICAgICAgfVxuICAgICAgICAgIC8vICAgICAgICAgICAgaWYgKHJlc291cmNlTmFtaW5nLm5hbWluZy50eXBlID09PSBSZXNvdXJjZU5hbWluZy5OYW1pbmdUeXBlLk5PKSB7XG4gICAgICAgICAgLy8gICAgICAgICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgICAgICAgLy8gICAgICAgICAgICB9XG4gICAgICAgICAgLy8gICAgICAgICAgICByZXR1cm4gcmVzb3VyY2VOYW1pbmcubmFtaW5nLm5hbWVzW25hbWUgYXMga2V5b2Yge1trZXk6IHN0cmluZ106IHN0cmluZ31dO1xuICAgICAgICAgIC8vICAgICAgICAgIH1cbiAgICAgICAgICAvLyByZXR1cm4gcmVzb3VyY2VOYW1pbmcubmFtaW5nW25hbWUgYXMga2V5b2Yge1tLIGluIFRdOiBzdHJpbmd9XTtcbiAgICAgICAgICAvLyByZXR1cm4gcmVzb3VyY2VOYW1pbmcubmFtaW5nLm5hbWVzW25hbWUgYXMga2V5b2Yge1trZXk6IHN0cmluZ106IHN0cmluZ31dO1xuXG4gICAgICAgICAgLy8gcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgfSkoKV07XG4gICAgICB9KSxcbiAgICApO1xuICB9XG59XG4iXX0= |
@@ -69,3 +69,3 @@ { | ||
}, | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"jest": { | ||
@@ -72,0 +72,0 @@ "coverageProvider": "v8", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35598
116