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

use-intl

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-intl - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/DateTimeFormatOptions.d.ts

4

CHANGELOG.md
# Changelog
## 1.2.0
- Feat: Added specific types for `DateTimeFormatOptions`.
## 1.1.0

@@ -4,0 +8,0 @@

3

dist/Formats.d.ts

@@ -0,5 +1,6 @@

import DateTimeFormatOptions from './DateTimeFormatOptions';
declare type Formats = {
number: Record<string, Intl.NumberFormatOptions>;
dateTime: Record<string, Intl.DateTimeFormatOptions>;
dateTime: Record<string, DateTimeFormatOptions>;
};
export default Formats;

@@ -7,2 +7,3 @@ export { default as IntlProvider } from './IntlProvider';

export { default as Formats } from './Formats';
export { default as DateTimeFormatOptions } from './DateTimeFormatOptions';
export { default as IntlError, IntlErrorCode } from './IntlError';

@@ -0,5 +1,6 @@

import DateTimeFormatOptions from './DateTimeFormatOptions';
export default function useIntl(): {
formatDateTime: (value: Date | number, formatOrOptions?: string | Intl.DateTimeFormatOptions | undefined) => string;
formatDateTime: (value: Date | number, formatOrOptions?: string | DateTimeFormatOptions | undefined) => string;
formatNumber: (value: number, formatOrOptions?: string | Intl.NumberFormatOptions | undefined) => string;
formatRelativeTime: (date: number | Date, now: number | Date) => string;
};
{
"name": "use-intl",
"version": "1.1.0",
"version": "1.2.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "author": "Jan Amann <jan@amann.me>",

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