This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
v0.3.0
- Updated
globImport
API to better work with Deno security policies
It was discovered after publishing that the previous API had unexpected behavior. In Deno, when remote library calls import()
without a protocol (such as https
) it prepends the import path with the library's hosted URL. So when importing from deno.land/x/
, import("/foo")
would import from "https://deno.land/x/pskfyi_deno_utils/foo"
while in locally testing this behavior was not observed. This behavior can be avoided by having the consumer provide their own import
s, meaning that file handlers must become a required argument.