Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for URLs with non-default ports #173

Merged
merged 5 commits into from
Sep 4, 2020
Merged

Add support for URLs with non-default ports #173

merged 5 commits into from
Sep 4, 2020

Conversation

jsejcksn
Copy link
Contributor

@jsejcksn jsejcksn commented Sep 1, 2020

Ref. Deno source: https://github.com/denoland/deno/blob/2da084058397efd6f517ba98c9882760ec0a7bd6/cli/disk_cache.rs#L55

Ref. previous PR: justjavac/typescript-deno-plugin#63

This adds support for port numbers in remote module resolution. I didn't see any places that would support a test for this, so please test with a local file server before merging.

I think this should resolve #171.

core/module_resolver.ts Show resolved Hide resolved
jsejcksn and others added 2 commits September 4, 2020 05:58
- default port (https://example.com:443)
- non-default port (http://localhost:3000)
core/deno_cache.ts Outdated Show resolved Hide resolved
Co-authored-by: Jesse Jackson <jsejcksn@users.noreply.github.com>
@jsejcksn
Copy link
Contributor Author

jsejcksn commented Sep 4, 2020

It looks like the test is passing now. Let me know if any other changes are needed. Thanks for both the info and help, @lucacasonato!

Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

LGTM - thanks Jesse!

@lucacasonato lucacasonato merged commit 6f05bab into denoland:master Sep 4, 2020
axetroy pushed a commit to axetroy/vscode_deno that referenced this pull request Sep 5, 2020
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
CGQAQ pushed a commit to CGQAQ/vscode_deno that referenced this pull request Sep 13, 2020
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cached remote modules with non-default ports are not resolved
3 participants