uomlibrarycommons-core
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -11,2 +11,3 @@ export declare enum EUomLibrarySite { | ||
export declare function idFromEUomLibrarySite(site: EUomLibrarySite): number; | ||
export declare function idToEUomLibrarySite(id: number): EUomLibrarySite | undefined; | ||
export declare function prettyFromEUomLibrarySite(site: EUomLibrarySite): string; |
@@ -68,2 +68,16 @@ "use strict"; | ||
exports.idFromEUomLibrarySite = idFromEUomLibrarySite; | ||
function idToEUomLibrarySite(id) { | ||
switch (id) { | ||
case sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_JOULE: | ||
return EUomLibrarySite.JOULE; | ||
case sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_MAIN: | ||
return EUomLibrarySite.MAIN; | ||
case sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_PRECINCT: | ||
return EUomLibrarySite.PRECINCT; | ||
case sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_AGLC: | ||
return EUomLibrarySite.AGLC; | ||
} | ||
return undefined; | ||
} | ||
exports.idToEUomLibrarySite = idToEUomLibrarySite; | ||
function prettyFromEUomLibrarySite(site) { | ||
@@ -70,0 +84,0 @@ switch (site) { |
{ | ||
"name": "uomlibrarycommons-core", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Common Node and Angular code for UoM library development", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14547
222