@workos/oagen 0.22.1 → 0.22.2
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 +2 -1
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{diff-BmtN0Rgp.mjs → diff-DkeDowzz.mjs} +3 -2
- package/dist/diff-DkeDowzz.mjs.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/verify/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/diff-BmtN0Rgp.mjs.map +0 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -4926,7 +4926,8 @@ async function overwriteWithPreservedRegions(existingContent, generatedContent,
|
|
|
4926
4926
|
const info = className ? effectiveClassEndLines.get(className) : void 0;
|
|
4927
4927
|
for (const entry of classBlocks) {
|
|
4928
4928
|
let insertLine;
|
|
4929
|
-
|
|
4929
|
+
const isAmbiguousAnchor = /^end[;)\s]*$/.test(entry.anchor);
|
|
4930
|
+
if (entry.anchor && !entry.anchor.includes("@oagen-ignore") && !isAmbiguousAnchor && /[a-zA-Z]|^\/\*|^\/\//.test(entry.anchor)) {
|
|
4930
4931
|
for (let li = 0; li < result.length; li++) if (result[li].trimStart() === entry.anchor) {
|
|
4931
4932
|
insertLine = li;
|
|
4932
4933
|
break;
|