@ltht-react/utils
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.0.8](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/utils@0.0.7...@ltht-react/utils@0.0.8) (2020-01-21) | ||
**Note:** Version bump only for package @ltht-react/utils | ||
## [0.0.7](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/utils@0.0.6...@ltht-react/utils@0.0.7) (2020-01-17) | ||
@@ -8,0 +16,0 @@ |
import { CodeableConcept, Maybe } from '@ltht-react/types'; | ||
declare const codeableConceptDisplaySummary: (codeableConcept?: CodeableConcept) => string; | ||
declare const codeableConceptDisplaySummary: (codeableConcept?: Maybe<CodeableConcept>) => string; | ||
declare const codeableConceptCodeSummary: (codeableConcept?: CodeableConcept) => string; | ||
declare const codeableConceptTextSummary: (codeableConcept?: Maybe<CodeableConcept>[]) => string; | ||
export { codeableConceptDisplaySummary, codeableConceptCodeSummary, codeableConceptTextSummary }; |
@@ -5,3 +5,4 @@ "use strict"; | ||
if (codeableConcept === void 0) { codeableConcept = {}; } | ||
var codings = codeableConcept.coding || []; | ||
var _a; | ||
var codings = ((_a = codeableConcept) === null || _a === void 0 ? void 0 : _a.coding) || []; | ||
var display = codings | ||
@@ -32,4 +33,4 @@ .map(function (coding) { | ||
.map(function (item) { | ||
var _a; | ||
return (_a = item) === null || _a === void 0 ? void 0 : _a.text; | ||
var _a, _b; | ||
return _b = (_a = item) === null || _a === void 0 ? void 0 : _a.text, (_b !== null && _b !== void 0 ? _b : codeableConceptDisplaySummary(item)); | ||
}) | ||
@@ -36,0 +37,0 @@ .join(', '); |
{ | ||
"name": "@ltht-react/utils", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "> TODO: description", | ||
@@ -32,3 +32,3 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
}, | ||
"gitHead": "663ce78c5a9d38757e42bb7b214b94516e6e40c3" | ||
"gitHead": "4b8098cd2b8337f593290c0781d0cb068f0741e6" | ||
} |
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
15958
30
190