ecqm-bundler
Advanced tools
Comparing version 0.0.4 to 0.0.5
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getValueSetInfo = exports.findELMByIdentifier = exports.getDependencyInfo = void 0; | ||
exports.getValueSetInfo = exports.findELMByIdentifier = exports.getDependencyInfo = exports.getAllDependencyInfo = void 0; | ||
function getAllDependencyInfo(elm) { | ||
return [...new Set(elm.map(getDependencyInfo).flat())]; | ||
} | ||
exports.getAllDependencyInfo = getAllDependencyInfo; | ||
function getDependencyInfo(elm) { | ||
@@ -5,0 +9,0 @@ var _a; |
@@ -153,3 +153,4 @@ #!/usr/bin/env node | ||
]; | ||
const remainingDeps = elm.filter(e => e.library.identifier.id !== mainLibraryId); | ||
const allUsedDependencies = [...new Set((0, elm_1.getAllDependencyInfo)(elm).map(e => e.id))]; | ||
const remainingDeps = elm.filter(e => allUsedDependencies.includes(e.library.identifier.id)); | ||
const depLibraries = remainingDeps.map(d => (Object.assign(Object.assign({}, (0, fhir_1.generateLibraryResource)(`library-${d.library.identifier.id}`, d, opts.canonicalBase)), { relatedArtifact: [ | ||
@@ -156,0 +157,0 @@ ...(0, elm_1.getDependencyInfo)(d).map(dep => (0, fhir_1.generateLibraryRelatedArtifact)(dep, remainingDeps, opts.canonicalBase)), |
{ | ||
"name": "ecqm-bundler", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "CLI for bundling FHIR-based eCQMs", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
40735
494