@workos/oagen 0.19.3 → 0.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4860,7 +4860,7 @@ function collectTsImports(lines) {
4860
4860
  * Mutates `resultLines` in place.
4861
4861
  */
4862
4862
  function spliceExtraImports(existingLines, resultLines) {
4863
- const isPythonSimpleImport = (l) => /^import\s+\w/.test(l) && !/\sfrom\s/.test(l);
4863
+ const isPythonSimpleImport = (l) => /^import\s+\w/.test(l) && !/\sfrom\s/.test(l) && !/[{}]/.test(l);
4864
4864
  const existingSimple = new Set(existingLines.filter(isPythonSimpleImport).map((l) => l.trim()));
4865
4865
  const generatedSimple = new Set(resultLines.filter(isPythonSimpleImport).map((l) => l.trim()));
4866
4866
  const extraSimple = [...existingSimple].filter((l) => !generatedSimple.has(l));