uomlibrarycommons-core
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -10,4 +10,2 @@ export declare enum EUomLibrarySite { | ||
export declare function keyToEUomLibrarySite(key: string): EUomLibrarySite; | ||
export declare function idFromEUomLibrarySite(site: EUomLibrarySite): number; | ||
export declare function idToEUomLibrarySite(id: number): EUomLibrarySite | undefined; | ||
export declare function prettyFromEUomLibrarySite(site: EUomLibrarySite): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const sentry_library_site_ids_1 = require("../consts/sentry-library-site-ids"); | ||
var EUomLibrarySite; | ||
@@ -54,30 +53,2 @@ (function (EUomLibrarySite) { | ||
exports.keyToEUomLibrarySite = keyToEUomLibrarySite; | ||
function idFromEUomLibrarySite(site) { | ||
switch (site) { | ||
case EUomLibrarySite.JOULE: | ||
return sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_JOULE; | ||
case EUomLibrarySite.MAIN: | ||
return sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_MAIN; | ||
case EUomLibrarySite.PRECINCT: | ||
return sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_PRECINCT; | ||
case EUomLibrarySite.AGLC: | ||
return sentry_library_site_ids_1.SENTRY_LIBRARY_SITE_AGLC; | ||
} | ||
throw new Error(`Unable to obtain ID for EUomLibrarySite: ${site}`); | ||
} | ||
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) { | ||
@@ -84,0 +55,0 @@ switch (site) { |
@@ -1,2 +0,1 @@ | ||
export * from './consts'; | ||
export * from './enums'; |
@@ -7,4 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./consts")); | ||
__export(require("./enums")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "uomlibrarycommons-core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"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
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
11143
13
171