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

@comparaonline/react-intl-hooks

Package Overview
Dependencies
Maintainers
14
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comparaonline/react-intl-hooks - npm Package Compare versions

Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6

8

dist/hooks.d.ts

@@ -1,3 +0,5 @@

export declare const useFormatMessage: () => (id: string, values?: {
[key: string]: any;
} | undefined) => any;
import { FormattedMessage, MessageValue } from 'react-intl';
export declare type FormatMessage = (id: FormattedMessage.MessageDescriptor['id'], values?: {
[key: string]: MessageValue;
}) => string;
export declare const useFormatMessage: () => FormatMessage;
export { IntlContext } from './IntlContext';
export { InjectIntlContext } from './InjectIntlContext';
export { useFormatMessage } from './hooks';
export { useFormatMessage, FormatMessage } from './hooks';

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

export declare const InjectIntlContext: any;
/// <reference types="react-intl" />
import React from 'react';
export declare const InjectIntlContext: React.ComponentClass<Pick<{}, never>, any> & {
WrappedComponent: React.ComponentType<ReactIntl.InjectedIntlProps>;
};
import React from 'react';
export declare const IntlContext: React.Context<any>;
import { InjectedIntl } from 'react-intl';
export declare const IntlContext: React.Context<InjectedIntl>;
{
"name": "@comparaonline/react-intl-hooks",
"author": "ComparaOnline.com",
"version": "0.0.1-alpha.5",
"version": "0.0.1-alpha.6",
"main": "dist/react-intl-hooks.js",

@@ -24,3 +24,3 @@ "types": "dist/index.d.ts",

"@types/enzyme": "^3.1.14",
"@types/jest": "^23.3.5",
"@types/jest": "^23.3.5",
"enzyme": "^3.7.0",

@@ -30,2 +30,3 @@ "jest": "^23.6.0",

"react-dom": "^16.0.0",
"react-intl": "^2.8.0",
"tslint": "^5.11.0",

@@ -38,2 +39,3 @@ "typescript": "^3.2.0",

"@types/react": "^16.0.0",
"@types/react-intl": "^2.3.17",
"prop-types": "^15.7.2",

@@ -40,0 +42,0 @@ "tslib": "^1.9.0"

@@ -28,3 +28,3 @@ # @comparaonline/react-intl-hooks

```tsx
import { useFormatMessage } from '@comparaonline/react-intl-hooks';
import { useFormatMessage, InjectIntlContext } from '@comparaonline/react-intl-hooks';

@@ -31,0 +31,0 @@ const TestIntl = () => {

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