Skip to content

Commit

Permalink
Add missing validation of non canonical scheme (sass#3592)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored May 30, 2023
1 parent 8c62d02 commit 8a21cac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions proposal/prev-url.d.ts.changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Draft 1.1

* Throw an error when an importer returns a canonical URL using its non-canonical schemes.

## Draft 1

* Initial draft.
4 changes: 3 additions & 1 deletion proposal/prev-url.d.ts.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Containing URL: Draft 1.0
# Containing URL: Draft 1.1

*([Issue](https://github.com/sass/sass/issues/3247))*

Expand Down Expand Up @@ -176,6 +176,8 @@ with:
and `containingUrl`. If it returns a promise, wait for it to complete and use
its value instead, or rethrow its error if it rejects.
* If the scheme of `url` is non-canonical for this importer, throw an error.
```ts
interface Importer<sync extends 'sync' | 'async' = 'sync' | 'async'> {
```
Expand Down

0 comments on commit 8a21cac

Please sign in to comment.