Skip to content

Conversation

@max-melhuish-depop
Copy link

@max-melhuish-depop max-melhuish-depop commented Oct 22, 2025

Description

fixes: #5825

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

const { protocol = 'http', host, path, port, query, hash } = url || {};
const hostStr = Array.isArray(host) ? host.filter(Boolean).join('.') : host || '';
const pathStr = Array.isArray(path) ? path.filter(Boolean).join('/') : path || '';
const pathStr = Array.isArray(path) ? path.join('/') : path || '';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change basically. This .filter(Boolean) took the array of ["a", "b", ""] to ["a", "b"] before joining


it('should handle empty variables', async () => {
const collectionWithEmptyVars = {
"info": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is removing the quotes required for the PR, or was it just a linter change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a linter change, I couldn't revert this back to how it was before, kept insisting on this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URLs mutated upon import from Postman collection json

2 participants