Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Conversation

rexxars
Copy link
Contributor

@rexxars rexxars commented Oct 13, 2022

ES Modules allows for absolute URL imports, but this currently does not work with depcheck - it will say that a file depends on the https:/http: module, which is obviously incorrect.

This PR ensures that imports that has an http:// or https:// prefix (case insensitive) will be ignored.

@codecov-commenter
Copy link

Codecov Report

Merging #756 (be94cfc) into main (f9eb0ed) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #756   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files          50       50           
  Lines        1052     1052           
=======================================
  Hits         1034     1034           
  Misses         18       18           
Impacted Files Coverage Δ
src/detector/extract.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5132d5e...be94cfc. Read the comment docs.

@rumpl rumpl merged commit d19fec9 into depcheck:main Mar 28, 2023
@rexxars rexxars deleted the feat/url-imports branch April 3, 2023 15:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants