@workos/oagen 0.22.3 → 0.22.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-DkeDowzz.mjs → diff-B8Yi0oQa.mjs} +2 -2
- package/dist/diff-B8Yi0oQa.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-DkeDowzz.mjs.map +0 -1
|
@@ -2344,7 +2344,7 @@ async function overwriteWithPreservedRegions(existingContent, generatedContent,
|
|
|
2344
2344
|
}
|
|
2345
2345
|
if (entry.lines.some((l) => /^\s*import\s/.test(l))) while (insertLine >= 2 && result[insertLine - 1]?.trim() === "" && /^\s*(import|using|from)\s/.test(result[insertLine - 2] ?? "")) insertLine--;
|
|
2346
2346
|
const prevLine = insertLine > 0 ? result[insertLine - 1]?.trimStart() ?? "" : "";
|
|
2347
|
-
const blockContent = /^import\s/.test(prevLine) || /^
|
|
2347
|
+
const blockContent = /^import\s/.test(prevLine) || /^from\s/.test(prevLine) || insertLine > 0 && prevLine === "" ? [...entry.lines] : ["", ...entry.lines];
|
|
2348
2348
|
if ((result[insertLine]?.trimStart() ?? "").startsWith("///")) blockContent.push("");
|
|
2349
2349
|
insertions.push({
|
|
2350
2350
|
line: insertLine,
|
|
@@ -3713,4 +3713,4 @@ function summarize(changes) {
|
|
|
3713
3713
|
//#endregion
|
|
3714
3714
|
export { MANIFEST_FILENAME as a, treeShakeFiles as c, collectReferencedNames as d, generateAllFiles as f, resolveOperations as h, generate as i, applyFileHeaders as l, deriveMethodName as m, getEmitter as n, integrateGeneratedFiles as o, generateFiles as p, registerEmitter as r, mapFilesForTargetIntegration as s, diffSpecs as t, buildEmitterContext as u };
|
|
3715
3715
|
|
|
3716
|
-
//# sourceMappingURL=diff-
|
|
3716
|
+
//# sourceMappingURL=diff-B8Yi0oQa.mjs.map
|