@ltht-react/utils
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -0,4 +1,6 @@ | ||
export * from './allergy-intolerance-category-code'; | ||
export * from './codeable-concept'; | ||
export * from './metadata'; | ||
export * from './partial-date-time'; | ||
export * from './period'; | ||
export * from './metadata'; | ||
export * from './resource-reference'; |
@@ -6,6 +6,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./allergy-intolerance-category-code")); | ||
__export(require("./codeable-concept")); | ||
__export(require("./metadata")); | ||
__export(require("./partial-date-time")); | ||
__export(require("./period")); | ||
__export(require("./metadata")); | ||
__export(require("./resource-reference")); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var partial_date_time_1 = require("./partial-date-time"); | ||
var periodSummaryText = function (period) { var _a; return partial_date_time_1.partialDateTimeText((_a = period) === null || _a === void 0 ? void 0 : _a.start); }; | ||
var periodSummaryText = function (period) { | ||
var _a, _b, _c, _d; | ||
var start = (((_a = period) === null || _a === void 0 ? void 0 : _a.start) && partial_date_time_1.partialDateTimeText((_b = period) === null || _b === void 0 ? void 0 : _b.start)) || ''; | ||
var end = (((_c = period) === null || _c === void 0 ? void 0 : _c.end) && partial_date_time_1.partialDateTimeText((_d = period) === null || _d === void 0 ? void 0 : _d.end)) || ''; | ||
if (start === '' && end === '') | ||
return ''; | ||
if (end === '') | ||
return start + " to Present"; | ||
if (start === '') | ||
return "Unknown to " + end; | ||
return start + " to " + end; | ||
}; | ||
exports.periodSummaryText = periodSummaryText; | ||
//# sourceMappingURL=period.js.map |
{ | ||
"name": "@ltht-react/utils", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "> TODO: description", | ||
@@ -30,5 +30,5 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
"dependencies": { | ||
"@ltht-react/types": "^0.0.4" | ||
"@ltht-react/types": "^0.0.5" | ||
}, | ||
"gitHead": "2d719428737868b651adf3a7bf624c6831cf2c07" | ||
"gitHead": "5fd8016ae3d0996170492f82a2e0d60df41e4229" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13441
27
165
+ Added@ltht-react/types@0.0.5(transitive)
- Removed@ltht-react/types@0.0.4(transitive)
Updated@ltht-react/types@^0.0.5