Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ltht-react/utils

Package Overview
Dependencies
Maintainers
1
Versions
329
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ltht-react/utils - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

lib/atoms/allergy-intolerance-category-code.test.d.ts

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.0.10](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/utils@0.0.9...@ltht-react/utils@0.0.10) (2020-01-30)
**Note:** Version bump only for package @ltht-react/utils
## [0.0.9](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/utils@0.0.8...@ltht-react/utils@0.0.9) (2020-01-21)

@@ -8,0 +16,0 @@

2

lib/atoms/allergy-intolerance-category-code.d.ts
import { AllergyIntoleranceCategoryCode, Maybe } from '@ltht-react/types';
declare const allergyIntoleranceCategoryCodeDisplaySummary: (categories?: Maybe<AllergyIntoleranceCategoryCode>[]) => string;
export { allergyIntoleranceCategoryCodeDisplaySummary };
export default allergyIntoleranceCategoryCodeDisplaySummary;

@@ -12,3 +12,3 @@ "use strict";

};
exports.allergyIntoleranceCategoryCodeDisplaySummary = allergyIntoleranceCategoryCodeDisplaySummary;
exports.default = allergyIntoleranceCategoryCodeDisplaySummary;
//# sourceMappingURL=allergy-intolerance-category-code.js.map

@@ -1,7 +0,7 @@

export * from './allergy-intolerance-category-code';
export { default as allergyIntoleranceCategoryCodeDisplaySummary } from './allergy-intolerance-category-code';
export * from './codeable-concept';
export * from './metadata';
export * from './partial-date-time';
export * from './period';
export * from './resource-reference';
export * from './title-case';
export { default as metadataSourceSummaryText } from './metadata';
export { default as partialDateTimeText } from './partial-date-time';
export { default as periodSummaryText } from './period';
export { default as resourceReferenceDisplaySummary } from './resource-reference';
export { default as titleCase } from './title-case';

@@ -6,9 +6,15 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./allergy-intolerance-category-code"));
var allergy_intolerance_category_code_1 = require("./allergy-intolerance-category-code");
exports.allergyIntoleranceCategoryCodeDisplaySummary = allergy_intolerance_category_code_1.default;
__export(require("./codeable-concept"));
__export(require("./metadata"));
__export(require("./partial-date-time"));
__export(require("./period"));
__export(require("./resource-reference"));
__export(require("./title-case"));
var metadata_1 = require("./metadata");
exports.metadataSourceSummaryText = metadata_1.default;
var partial_date_time_1 = require("./partial-date-time");
exports.partialDateTimeText = partial_date_time_1.default;
var period_1 = require("./period");
exports.periodSummaryText = period_1.default;
var resource_reference_1 = require("./resource-reference");
exports.resourceReferenceDisplaySummary = resource_reference_1.default;
var title_case_1 = require("./title-case");
exports.titleCase = title_case_1.default;
//# sourceMappingURL=index.js.map
import { Metadata } from '@ltht-react/types';
declare const metadataSourceSummaryText: (metadata: Metadata) => string;
export { metadataSourceSummaryText };
export default metadataSourceSummaryText;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var metadataSourceSummaryText = function (metadata) {
if (!metadata || !metadata.dataSources || metadata.dataSources.length == 0) {
if (!metadata || !metadata.dataSources || metadata.dataSources.length === 0) {
return '';

@@ -15,3 +15,3 @@ }

};
exports.metadataSourceSummaryText = metadataSourceSummaryText;
exports.default = metadataSourceSummaryText;
//# sourceMappingURL=metadata.js.map
import { PartialDateTime } from '@ltht-react/types';
declare const partialDateTimeText: (partialDateTime?: PartialDateTime | null | undefined) => string;
export { partialDateTimeText };
export default partialDateTimeText;

@@ -29,5 +29,6 @@ "use strict";

return formatDate(new Date(partialDateTime.value));
case types_1.PartialDateTimeKindCode.DateTime:
case types_1.PartialDateTimeKindCode.DateTime: {
var date = new Date(partialDateTime.value);
return formatDate(date) + " " + formatTime(date);
}
case types_1.PartialDateTimeKindCode.Year:

@@ -46,3 +47,3 @@ return new Date(partialDateTime.value).toLocaleString(locale, { year: yearFormat });

};
exports.partialDateTimeText = partialDateTimeText;
exports.default = partialDateTimeText;
//# sourceMappingURL=partial-date-time.js.map
import { Period } from '@ltht-react/types';
declare const periodSummaryText: (period?: Period | null | undefined) => string;
export { periodSummaryText };
export default periodSummaryText;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var partial_date_time_1 = require("./partial-date-time");
var partial_date_time_1 = __importDefault(require("./partial-date-time"));
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)) || '';
var start = (((_a = period) === null || _a === void 0 ? void 0 : _a.start) && partial_date_time_1.default((_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.default((_d = period) === null || _d === void 0 ? void 0 : _d.end)) || '';
if (start === '' && end === '')

@@ -16,3 +19,3 @@ return '';

};
exports.periodSummaryText = periodSummaryText;
exports.default = periodSummaryText;
//# sourceMappingURL=period.js.map
import { ResourceReference, Maybe } from '@ltht-react/types';
declare const resourceReferenceDisplaySummary: (resourceReferences?: Maybe<ResourceReference>[]) => string;
export { resourceReferenceDisplaySummary };
export default resourceReferenceDisplaySummary;

@@ -13,3 +13,3 @@ "use strict";

};
exports.resourceReferenceDisplaySummary = resourceReferenceDisplaySummary;
exports.default = resourceReferenceDisplaySummary;
//# sourceMappingURL=resource-reference.js.map

@@ -1,2 +0,2 @@

declare const titleCase: (value: string) => string;
export { titleCase };
export declare const titleCase: (value: string) => string;
export default titleCase;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var titleCase = function (value) {
if (!value || value.length == 0) {
exports.titleCase = function (value) {
if (!value || value.length === 0) {
return '';
}
var titleCased = value
return value
.toLowerCase()

@@ -14,5 +14,4 @@ .split(/\s|_/)

.join(' ');
return titleCased;
};
exports.titleCase = titleCase;
exports.default = exports.titleCase;
//# sourceMappingURL=title-case.js.map
{
"name": "@ltht-react/utils",
"version": "0.0.9",
"version": "0.0.10",
"description": "> TODO: description",

@@ -21,14 +21,9 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>",

"scripts": {
"clean": "rimraf lib",
"build": "yarn build:lib",
"watch": "tsc -w",
"build:lib": "tsc",
"type:check": "tsc --noEmit",
"lint": "prettylint 'src/*.{ts,tsx}'",
"test": "jest"
"clean": "rimraf lib && rimraf node_modules",
"build": "tsc"
},
"dependencies": {
"@ltht-react/types": "^0.0.6"
"@ltht-react/types": "^0.0.7"
},
"gitHead": "3bf0417168b8ef06ab75cd394fefea498b0694a5"
"gitHead": "41a42ce817ac46f80fe142d3af2e0e4af689adf3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc