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

react-intl

Package Overview
Dependencies
Maintainers
8
Versions
341
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intl - npm Package Compare versions

Comparing version 5.20.11 to 5.20.12

1

index.js

@@ -37,2 +37,3 @@ "use strict";

exports.FormattedTime = createFormattedComponent_1.createFormattedComponent('formatTime');
// @ts-ignore issue w/ TS Intl types
exports.FormattedNumber = createFormattedComponent_1.createFormattedComponent('formatNumber');

@@ -39,0 +40,0 @@ exports.FormattedList = createFormattedComponent_1.createFormattedComponent('formatList');

@@ -15,2 +15,3 @@ import { createFormattedComponent, createFormattedDateTimePartsComponent, } from './src/components/createFormattedComponent';

export var FormattedTime = createFormattedComponent('formatTime');
// @ts-ignore issue w/ TS Intl types
export var FormattedNumber = createFormattedComponent('formatNumber');

@@ -17,0 +18,0 @@ export var FormattedList = createFormattedComponent('formatList');

2

lib/src/components/relative.js

@@ -58,3 +58,3 @@ import { __assign, __rest } from "tslib";

if (unit === void 0) { unit = 'second'; }
return INCREMENTABLE_UNITS.includes(unit);
return INCREMENTABLE_UNITS.indexOf(unit) > -1;
}

@@ -61,0 +61,0 @@ var SimpleFormattedRelativeTime = function (props) {

{
"name": "react-intl",
"version": "5.20.11",
"version": "5.20.12",
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",

@@ -131,11 +131,11 @@ "keywords": [

"dependencies": {
"@formatjs/ecma402-abstract": "1.9.8",
"@formatjs/icu-messageformat-parser": "2.0.11",
"@formatjs/intl": "1.14.1",
"@formatjs/intl-displaynames": "5.2.3",
"@formatjs/intl-listformat": "6.3.3",
"@formatjs/ecma402-abstract": "1.9.9",
"@formatjs/icu-messageformat-parser": "2.0.12",
"@formatjs/intl": "1.14.2",
"@formatjs/intl-displaynames": "5.2.4",
"@formatjs/intl-listformat": "6.3.4",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/react": "16 || 17",
"hoist-non-react-statics": "^3.3.2",
"intl-messageformat": "9.9.1",
"intl-messageformat": "9.9.2",
"tslib": "^2.1.0"

@@ -145,3 +145,3 @@ },

"react": "^16.3.0 || 17",
"typescript": "^4.2"
"typescript": "^4.3"
},

@@ -148,0 +148,0 @@ "peerDependenciesMeta": {

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

if (unit === void 0) { unit = 'second'; }
return INCREMENTABLE_UNITS.includes(unit);
return INCREMENTABLE_UNITS.indexOf(unit) > -1;
}

@@ -63,0 +63,0 @@ var SimpleFormattedRelativeTime = function (props) {

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 too big to display

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