Commit Graph

30 Commits

Author SHA1 Message Date
palakkhinvasara 728ce9752e fix: keep HTTPS when resolving same origin URLs (#45157)
* pushing

* pushing

* pushing

* pushing

* pushing
2026-08-11 06:14:50 +00:00
Jamie Tanna 7f7b039559 refactor(util): add a helper method for resolveSameOriginUrl
As part of future changes, it would be useful to have a helper method to
handle the correct resolution for `Link` header parsing, where we want
to avoid the risk of a registry/platform providing a link to a different
hostname, which could lead to SSRF.

Co-authored-by: Claude Opus 4.8 <jamie.tanna+claude-code@mend.io>
2026-08-04 08:06:57 +01:00
Sebastian Poxhofer 03baf6ee4a test(noNewURL): add new rule enforcing parseUrl() from 'lib/util/url.ts' (#43247)
* test(noNewURL): add new rule enforcing parseUrl() from 'lib/util/url.ts'

* replace newURL with parseUrl

* remove non-null assertions marks if appropiate

* test: add additional tests

* test: add additional tests and ignore where it makes sense

* implement suggestions

* test: further improve coverage

* apply suggestion
2026-05-13 16:23:10 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Michael Kriese 593a92655e feat: refactor http (#34550) 2025-02-28 14:40:04 +00:00
Sergei Zharinov 16d5c6ddf0 refactor: Make parseUrl utility idempotent (#32792) 2024-11-28 16:29:27 +00:00
RahulGautamSingh b8b760768d feat(hostRules/matchHost): massage and validate (#29487)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-06-28 07:20:00 +00:00
Sergei Zharinov d6d1e57763 refactor: Rename validateUrl to isHttpUrl (#28484) 2024-04-17 15:57:33 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Sebastian Poxhofer b73cf032d2 chore: allow null value and undefined for validateURL (#25014) 2023-10-04 04:48:58 +00:00
Sergei Zharinov 89c96918f9 fix: Url utils coverage (#22994) 2023-06-27 06:47:02 +00:00
RahulGautamSingh 938a36801e refactor: replace test.each with it.each (#21859) 2023-04-28 04:33:15 +00:00
RahulGautamSingh 012c0ac2fe feat: npm workspaces (#21274)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-04-27 12:42:25 +00:00
Sergei Zharinov cd06651f89 fix(packagist): Replace V2 URL path instead of joining it (#20709) 2023-03-02 14:19:55 +00:00
Sergei Zharinov c1555efb3b refactor(datasource/crate): Enable strict null checks (#13915) 2022-02-07 06:14:23 +00:00
renovate[bot] b0acc97579 build(deps): update dependency parse-link-header to v2 [security] (#13412) 2022-01-13 06:45:50 +01:00
Sergei Zharinov ac9b270a82 refactor(util): Refactor strict null check list (#13507)
* refactor(util): Refactor strict null check list

* Fix
2022-01-12 08:28:26 +01:00
Oleg Krivtsov 29dde2f694 test: improve test readability with expect-more-jest (#12329) 2021-10-27 07:24:36 +02:00
Jennifer Wilcox 5273cbc1cb fix(docker): handle redundant port in image (#11852) 2021-09-24 12:13:54 +00:00
Michael Kriese c8c8684ea3 fix(datasource): trim trailing slash in registry url (#11392)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-08-30 18:28:32 +02:00
Sergei Zharinov 5f4b9f9a3a test: Fix test descriptions and enforce it via new linting rule (#11285) 2021-08-18 05:46:56 +00:00
Rhys Arkins 3d4d2529a1 refactor(docker): better url parsing (#10996) 2021-07-28 08:07:20 +02:00
Sergei Zharinov ce51f05cef feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
Sergei Zharinov 72d97ec2f4 refactor(workers): Enforce getName usage (#9525) 2021-04-13 10:25:51 +00:00
Sergei Zharinov 3527d8b4f3 feat(util): Add lightweight parseUrl function (#9019)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-03-13 09:41:51 +01:00
Rhys Arkins 9c658a21f0 Revert "feat(internal): Massage registryUrls (#9086)" (#9098) 2021-03-12 12:27:47 +01:00
renovate-testing 9c3b34dbb3 feat(internal): Massage registryUrls (#9086) 2021-03-11 19:23:57 +01:00
Sergei Zharinov ccdb09fe3c fix(go): Improve go-import content parsing (#9022) 2021-03-08 13:12:19 +00:00
Rhys Arkins 2abc088781 fix: validate datasource URLs (#8970)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-03-04 06:40:08 +01:00
Sergei Zharinov d8df51f20e feat(util): Add resolveBaseUrl function (#7918) 2020-12-09 13:05:31 +01:00