UNPKG

fume-fhir-converter

Version:

FHIR-Utilized Mapping Engine - Community

29 lines 962 B
"use strict"; /** * © Copyright Outburn Ltd. 2022-2024 All Rights Reserved * Project name: FUME-COMMUNITY */ Object.defineProperty(exports, "__esModule", { value: true }); exports.downloadPackages = void 0; const tslib_1 = require("tslib"); const logger_1 = require("../logger"); const ensurePackageInstalled_1 = tslib_1.__importDefault(require("./ensurePackageInstalled")); /** * Download a list of packages from the registry to the local package cache (including dependencies) * @param fhirPackage A string or array of strings in the format `packageId@version` */ const downloadPackages = async (fhirPackage) => { try { for (const pack of fhirPackage) { await (0, ensurePackageInstalled_1.default)(pack); } ; return true; } catch (e) { (0, logger_1.getLogger)().error(e); return null; } }; exports.downloadPackages = downloadPackages; //# sourceMappingURL=loadPackages.js.map