Socket
Socket
Sign inDemoInstall

@ltht-react/utils

Package Overview
Dependencies
Maintainers
6
Versions
320
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 1.1.10 to 1.1.11

lib/atoms/mobile-view.d.ts

8

CHANGELOG.md

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

## 1.1.11 (2021-09-17)
**Note:** Version bump only for package @ltht-react/utils
## 1.1.10 (2021-08-26)

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

0

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

@@ -0,0 +0,0 @@ import { CodeableConcept, Maybe } from '@ltht-react/types';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -10,2 +10,3 @@ export { default as allergyIntoleranceCategoryCodeDisplaySummary } from './allergy-intolerance-category-code';

export { default as titleCase } from './title-case';
export { default as isMobileView } from './mobile-view';
export * from './patient';

4

lib/atoms/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.titleCase = exports.resourceReferenceDisplaySummary = exports.rangeText = exports.quantityText = exports.periodSummaryText = exports.metadataSourceSummaryText = exports.allergyIntoleranceCategoryCodeDisplaySummary = void 0;
exports.isMobileView = exports.titleCase = exports.resourceReferenceDisplaySummary = exports.rangeText = exports.quantityText = exports.periodSummaryText = exports.metadataSourceSummaryText = exports.allergyIntoleranceCategoryCodeDisplaySummary = void 0;
var allergy_intolerance_category_code_1 = require("./allergy-intolerance-category-code");

@@ -34,3 +34,5 @@ Object.defineProperty(exports, "allergyIntoleranceCategoryCodeDisplaySummary", { enumerable: true, get: function () { return __importDefault(allergy_intolerance_category_code_1).default; } });

Object.defineProperty(exports, "titleCase", { enumerable: true, get: function () { return __importDefault(title_case_1).default; } });
var mobile_view_1 = require("./mobile-view");
Object.defineProperty(exports, "isMobileView", { enumerable: true, get: function () { return __importDefault(mobile_view_1).default; } });
__exportStar(require("./patient"), exports);
//# sourceMappingURL=index.js.map
import { Metadata } from '@ltht-react/types';
declare const metadataSourceSummaryText: (metadata: Metadata) => string;
export default metadataSourceSummaryText;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

import { PartialDateTime } from '@ltht-react/types';
export declare const formatDate: (date: Date) => string;
export declare const formatDateExplicitMonth: (date: Date) => string;
export declare const formatTime: (date: Date) => string;
export declare const partialDateTimeText: (partialDateTime?: PartialDateTime | null | undefined) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.partialDateTimeText = exports.formatTime = exports.formatDate = void 0;
exports.partialDateTimeText = exports.formatTime = exports.formatDateExplicitMonth = exports.formatDate = void 0;
var types_1 = require("@ltht-react/types");

@@ -8,2 +8,3 @@ var locale = 'en-gb';

var monthFormat = 'short';
var monthFormatLong = 'long';
var yearFormat = 'numeric';

@@ -16,2 +17,6 @@ var hourFormat = '2-digit';

exports.formatDate = formatDate;
var formatDateExplicitMonth = function (date) {
return date.toLocaleString(locale, { day: dayFormat, month: monthFormatLong, year: yearFormat }).split(' ').join(' ');
};
exports.formatDateExplicitMonth = formatDateExplicitMonth;
var formatTime = function (date) {

@@ -18,0 +23,0 @@ return date.toLocaleString(locale, { hour: hourFormat, minute: minuteFormat, hour12: false }).split(' ').join(':');

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Patient, NhsNumberStatus } from '@ltht-react/types';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

import { Period } from '@ltht-react/types';
declare const periodSummaryText: (period?: Period | null | undefined) => string;
export default periodSummaryText;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

import { Quantity, Maybe } from '@ltht-react/types';
declare const quantityText: (quantity?: Maybe<Quantity> | undefined) => string;
export default quantityText;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

import { Range, Maybe } from '@ltht-react/types';
declare const rangeText: (range?: Maybe<Range> | undefined) => string;
export default rangeText;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

import { ResourceReference, Maybe } from '@ltht-react/types';
declare const resourceReferenceDisplaySummary: (resourceReferences?: Maybe<ResourceReference>[]) => string;
export default resourceReferenceDisplaySummary;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

export declare const titleCase: (value: string) => string;
export default titleCase;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

export * from './atoms';

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@ltht-react/utils",
"version": "1.1.10",
"version": "1.1.11",
"description": "> TODO: description",

@@ -25,5 +25,5 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>",

"dependencies": {
"@ltht-react/types": "^1.0.8"
"@ltht-react/types": "^1.0.9"
},
"gitHead": "88e4f8ea8a70b024c7be60f7535935c9bd7a9eb2"
"gitHead": "2fb4ee694529d51759e27b2201553e35b9aa5f2f"
}

@@ -0,0 +0,0 @@ # `@ltht-react/utils`

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