forked from jspm/import-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle relative URLs in flatten() (jspm#17)
- Loading branch information
1 parent
489807e
commit 797747f
Showing
5 changed files
with
427 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
export function alphabetize<T> (obj: Record<string, T>): Record<string, T> { | ||
export function alphabetize<T>(obj: Record<string, T>): Record<string, T> { | ||
const out: Record<string, T> = {}; | ||
for (const key of Object.keys(obj).sort()) | ||
out[key] = obj[key]; | ||
for (const key of Object.keys(obj).sort()) out[key] = obj[key]; | ||
return out; | ||
} | ||
} |
Oops, something went wrong.