@workos/oagen 0.24.1 → 0.24.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 +7 -2
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{diff-8vcYeHKf.mjs → diff-IXR1sWSP.mjs} +8 -3
- package/dist/{diff-8vcYeHKf.mjs.map → diff-IXR1sWSP.mjs.map} +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/verify/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -5837,8 +5837,13 @@ function buildEmitterContext(spec, options) {
|
|
|
5837
5837
|
let scopedModelNames;
|
|
5838
5838
|
let scopedEnumNames;
|
|
5839
5839
|
if (options.scopedServices && options.scopedServices.size > 0) {
|
|
5840
|
-
const
|
|
5841
|
-
const
|
|
5840
|
+
const scope = options.scopedServices;
|
|
5841
|
+
const present = options.presentServiceKeys ?? /* @__PURE__ */ new Set();
|
|
5842
|
+
const postMountOf = (service) => resolvedOperations.find((r) => r.service.name === service.name)?.mountOn ?? service.name;
|
|
5843
|
+
const reachable = collectReferencedNames(spec.services.filter((s) => {
|
|
5844
|
+
const postMount = postMountOf(s);
|
|
5845
|
+
return scope.has(postMount) || present.has(canonicalServiceKey(postMount));
|
|
5846
|
+
}), spec.models, { preserveAllDiscriminated: false });
|
|
5842
5847
|
scopedModelNames = reachable.models;
|
|
5843
5848
|
scopedEnumNames = reachable.enums;
|
|
5844
5849
|
}
|