-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Virtual Packages and SUSHI Compatibility Changes
Various changes to better support the needs of SUSHI while remaining neutral for other environments and applications. Including: * VirtualPackage interface for pseudo packages not in the registry or local FHIR cache * DiskBased and InMemory implementations of Virtual Package * Support for loading VirtualPackages in the BasePackageLoader * Support for '|version' when searching by key * New exportDB function in SQLJSPackageDB and BasePackageLoader for debugging purposes * Added sort to find functions' options, with initial ByLoadOrder and ByType implementations (the original type argument is now just a filter, no longer affecting sort) * Added resolveVersion function to RegistryClient interface and corresponding implementations * Moved LRU cache from DiskBasedPackageCache to BasePackageLoader
- Loading branch information
Showing
58 changed files
with
2,818 additions
and
606 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
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
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
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
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
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
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
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
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,15 +1,12 @@ | ||
export class LatestVersionUnavailableError extends Error { | ||
constructor( | ||
public packageName: string, | ||
public customRegistry?: string, | ||
public isPatchWildCard?: boolean | ||
) { | ||
super( | ||
`Latest ${ | ||
isPatchWildCard ? 'patch ' : '' | ||
}version of package ${packageName} could not be determined from the ${ | ||
customRegistry ? 'custom ' : '' | ||
}FHIR package registry${customRegistry ? ` ${customRegistry}` : ''}` | ||
}version of package ${packageName} could not be determined from the package registry` | ||
); | ||
} | ||
} |
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
Oops, something went wrong.