@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.
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{diff-DQ9greXC.mjs → diff-P41Nm-Pr.mjs} +2 -2
- package/dist/diff-P41Nm-Pr.mjs.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/verify/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/diff-DQ9greXC.mjs.map +0 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -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));
|