// Copyright (c) HashiCorp, Inc // SPDX-License-Identifier: MPL-2.0 import camelcase from "camelcase"; export { logger } from "@cdktn/commons"; export const fileBugCommentText = `This is likely a bug in cdktn. Please report it at https://github.com/open-constructs/cdk-terrain/issues/new?assignees=&labels=bug&template=bug-report.md&title=.`; export const camelCase = (str: string) => camelcase(str.replace(/[-/]/g, "_")); export const pascalCase = (str: string) => camelcase(str.replace(/[-/]/g, "_"), { pascalCase: true }); export function uniqueId(set: Set, key: string): string { if (set.has(key)) { return uniqueId(set, `${key}_${set.size}`); } set.add(key); return key; }