@workos/oagen 0.19.3 → 0.19.5
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 +21 -5
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{diff-DQ9greXC.mjs → diff-DE8ycKqW.mjs} +22 -6
- package/dist/diff-DE8ycKqW.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
|
@@ -2411,7 +2411,7 @@ function collectTsImports(lines) {
|
|
|
2411
2411
|
* Mutates `resultLines` in place.
|
|
2412
2412
|
*/
|
|
2413
2413
|
function spliceExtraImports(existingLines, resultLines) {
|
|
2414
|
-
const isPythonSimpleImport = (l) => /^import\s+\w/.test(l) && !/\sfrom\s/.test(l);
|
|
2414
|
+
const isPythonSimpleImport = (l) => /^import\s+\w/.test(l) && !/\sfrom\s/.test(l) && !/[{}]/.test(l);
|
|
2415
2415
|
const existingSimple = new Set(existingLines.filter(isPythonSimpleImport).map((l) => l.trim()));
|
|
2416
2416
|
const generatedSimple = new Set(resultLines.filter(isPythonSimpleImport).map((l) => l.trim()));
|
|
2417
2417
|
const extraSimple = [...existingSimple].filter((l) => !generatedSimple.has(l));
|
|
@@ -2455,10 +2455,26 @@ function spliceExtraImports(existingLines, resultLines) {
|
|
|
2455
2455
|
const existingPhpUse = new Set(existingLines.filter(isPhpUseImport).map((l) => l.trim()));
|
|
2456
2456
|
const generatedPhpUse = new Set(resultLines.filter(isPhpUseImport).map((l) => l.trim()));
|
|
2457
2457
|
const extraPhpUse = [...existingPhpUse].filter((l) => !generatedPhpUse.has(l));
|
|
2458
|
-
const
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2461
|
-
|
|
2458
|
+
const rubyRequireRe = /^(require(?:_relative)?)\s+['"]([^'"]+)['"]\s*$/;
|
|
2459
|
+
const rubyRequireKey = (l) => {
|
|
2460
|
+
const m = l.trim().match(rubyRequireRe);
|
|
2461
|
+
return m ? `${m[1]}\t${m[2]}` : void 0;
|
|
2462
|
+
};
|
|
2463
|
+
const generatedRubyRequireKeys = /* @__PURE__ */ new Set();
|
|
2464
|
+
for (const l of resultLines) {
|
|
2465
|
+
const key = rubyRequireKey(l);
|
|
2466
|
+
if (key) generatedRubyRequireKeys.add(key);
|
|
2467
|
+
}
|
|
2468
|
+
const seenExistingKeys = /* @__PURE__ */ new Set();
|
|
2469
|
+
const extraRubyRequire = [];
|
|
2470
|
+
for (const l of existingLines) {
|
|
2471
|
+
const key = rubyRequireKey(l);
|
|
2472
|
+
if (!key) continue;
|
|
2473
|
+
if (generatedRubyRequireKeys.has(key)) continue;
|
|
2474
|
+
if (seenExistingKeys.has(key)) continue;
|
|
2475
|
+
seenExistingKeys.add(key);
|
|
2476
|
+
extraRubyRequire.push(l.trim());
|
|
2477
|
+
}
|
|
2462
2478
|
const allExtra = [
|
|
2463
2479
|
...extraSimple,
|
|
2464
2480
|
...extraFromLines,
|
|
@@ -3475,4 +3491,4 @@ function summarize(changes) {
|
|
|
3475
3491
|
//#endregion
|
|
3476
3492
|
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 };
|
|
3477
3493
|
|
|
3478
|
-
//# sourceMappingURL=diff-
|
|
3494
|
+
//# sourceMappingURL=diff-DE8ycKqW.mjs.map
|