scalar / openapi-parser

Modern OpenAPI parser written in TypeScript
MIT License
26 stars 7 forks source link

feat: intercept requests #118

Closed hanspagel closed 1 month ago

hanspagel commented 1 month ago

With this PR requests to URLs can be intercepted. This is great to redirect requests to a proxy. :)

fetchUrlsPlugin({
  fetch: (url) => fetch(url.replace('foo', 'bar')),
})
changeset-bot[bot] commented 1 month ago

πŸ¦‹ Changeset detected

Latest commit: f32371b3760b405a2d449466312cf9e04432f8d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @scalar/openapi-parser | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

relativeci[bot] commented 1 month ago

#72 Bundle Size β€” 114.14KiB (+0.05%).

f32371b(current) vs 05dbbc4 main#68(baseline)

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#72
     Baseline
#68
Regression  Initial JS 114.14KiB(+0.05%) 114.09KiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 0.91% 0%
No change  Chunks 44 44
No change  Assets 44 44
No change  Modules 44 44
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 0 0
No change  Duplicate Packages 0 0

Bundle size by type  Change 1 change Regression 1 regression
|            |       Current
[#72](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/72-5o0L5JcBX7uqb6m6Eoze?utm_source=github&utm_medium=pr-report "View bundle analysis report") |      Baseline
[#68](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/68-IwT5y0NWGF7mU95qi3m8?utm_source=github&utm_medium=pr-report "View baseline bundle analysis report") | |:--|--:|--:| | Regression  [JS](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/72-5o0L5JcBX7uqb6m6Eoze/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-1_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View JS assets") | `114.14KiB` (`+0.05%`) | `114.09KiB` |

Bundle analysis report Branch feat/intercept-requests Project dashboard