Socket
Socket
Sign inDemoInstall

@ltht-react/utils

Package Overview
Dependencies
82
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

lib/atoms/partial-date-time-tests.d.ts

8

CHANGELOG.md

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

## [0.0.4](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/utils@0.0.3...@ltht-react/utils@0.0.4) (2020-01-07)
**Note:** Version bump only for package @ltht-react/utils
## [0.0.3](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/utils@0.0.2...@ltht-react/utils@0.0.3) (2020-01-07)

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

5

lib/atoms/partial-date-time.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("@ltht-react/types");
var locale = 'en-GB';
var locale = 'en-gb';
var dayFormat = '2-digit';

@@ -18,3 +18,3 @@ var monthFormat = 'short';

return date
.toLocaleString(locale, { hour: hourFormat, minute: minuteFormat })
.toLocaleString(locale, { hour: hourFormat, minute: minuteFormat, hour12: false })
.split(' ')

@@ -27,3 +27,2 @@ .join(':');

}
console.log(partialDateTime);
switch (partialDateTime.kind) {

@@ -30,0 +29,0 @@ case types_1.PartialDateTimeKindCode.Date:

6

package.json
{
"name": "@ltht-react/utils",
"version": "0.0.3",
"version": "0.0.4",
"description": "> TODO: description",

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

"lint": "prettylint 'src/*.{ts,tsx}'",
"test": ""
"test": "jest"
},

@@ -33,3 +33,3 @@ "dependencies": {

},
"gitHead": "c284068fcfa5688c5a7a299aaa2ba4efaf54ca33"
"gitHead": "2d719428737868b651adf3a7bf624c6831cf2c07"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc