@workos/oagen 0.10.3 → 0.10.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 +7 -13
- package/dist/cli/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -6621,17 +6621,11 @@ function filterSurfaceByManifest(surface, manifest) {
|
|
|
6621
6621
|
filesExcluded++;
|
|
6622
6622
|
continue;
|
|
6623
6623
|
}
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
filteredClasses[name] = {
|
|
6630
|
-
...cls,
|
|
6631
|
-
methods,
|
|
6632
|
-
constructorParams: []
|
|
6633
|
-
};
|
|
6634
|
-
} else filteredClasses[name] = cls;
|
|
6624
|
+
if (serviceMethodMap.get(normalize(name))) filteredClasses[name] = {
|
|
6625
|
+
...cls,
|
|
6626
|
+
constructorParams: []
|
|
6627
|
+
};
|
|
6628
|
+
else filteredClasses[name] = cls;
|
|
6635
6629
|
}
|
|
6636
6630
|
const filteredExports = {};
|
|
6637
6631
|
for (const [filePath, symbols] of Object.entries(surface.exports)) if (manifestFiles.has(filePath)) filteredExports[filePath] = symbols;
|
|
@@ -6654,9 +6648,9 @@ async function compatExtractCommand(opts) {
|
|
|
6654
6648
|
let surface = await extractor.extract(opts.sdkPath);
|
|
6655
6649
|
const manifest = await readManifest(opts.sdkPath);
|
|
6656
6650
|
if (manifest) {
|
|
6657
|
-
const { filtered, filesExcluded
|
|
6651
|
+
const { filtered, filesExcluded } = filterSurfaceByManifest(surface, manifest);
|
|
6658
6652
|
surface = filtered;
|
|
6659
|
-
if (filesExcluded > 0
|
|
6653
|
+
if (filesExcluded > 0) console.log(`Manifest filter: excluded ${filesExcluded} hand-written file(s)`);
|
|
6660
6654
|
}
|
|
6661
6655
|
const snapshot = apiSurfaceToSnapshot(surface);
|
|
6662
6656
|
if (opts.spec) {
|