File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -162,11 +162,15 @@ export class LocalRegistry implements IRegistry {
162162 const { operations } = await this . getVersion ( packageId || this . packageId , version ) ?? { }
163163
164164 const versionOperations : ResolvedOperation [ ] = ( operationsIds ?? [ ...operations ?. keys ( ) ?? [ ] ] )
165- ?. filter ( id => operations ?. has ( id ) )
166- . map ( ( id ) => ( {
167- ...operations ! . get ( id ) ! ,
168- data : includeData ? operations ?. get ( id ) ?. data : undefined ,
169- } ) )
165+ . flatMap ( id => {
166+ const operation = operations ?. get ( id )
167+ return operation ?. apiType === apiType
168+ ? [ {
169+ ...operation ,
170+ data : includeData ? operation . data : undefined ,
171+ } ]
172+ : [ ]
173+ } )
170174
171175 return { operations : versionOperations }
172176 }
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ import { BUILD_TYPE } from '../src'
1919
2020const pkg = LocalRegistry . openPackage ( 'apihub' )
2121
22- // TODO 15.04.25: remove skip
23- describe . skip ( 'Prefix Groups test' , ( ) => {
22+ describe ( 'Prefix Groups test' , ( ) => {
2423 beforeAll ( async ( ) => {
2524 // generate missing versions/apihub folder contents
2625 await pkg . publish ( pkg . packageId , {
You can’t perform that action at this time.
0 commit comments