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

@influitive/profile-card

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influitive/profile-card - npm Package Compare versions

Comparing version 3.0.16 to 3.0.17

13

lib/components/actions.js

@@ -12,4 +12,2 @@ "use strict";

var _localization = _interopRequireDefault(require("../localization"));
var _propTypes = _interopRequireDefault(require("prop-types"));

@@ -105,10 +103,2 @@

_createClass(Footer, [{
key: "getDefaultProps",
value: function getDefaultProps() {
return {
i18n: _localization.default,
useSuspense: false
};
}
}, {
key: "render",

@@ -127,4 +117,3 @@ value: function render() {

disableViewProfile: _propTypes.default.bool.isRequired,
disableMessage: _propTypes.default.bool.isRequired,
t: _propTypes.default.string.isRequired
disableMessage: _propTypes.default.bool.isRequired
});

@@ -131,0 +120,0 @@

@@ -12,4 +12,2 @@ "use strict";

var _localization = _interopRequireDefault(require("../localization"));
var _propTypes = _interopRequireDefault(require("prop-types"));

@@ -132,10 +130,2 @@

_createClass(Details, [{
key: "getDefaultProps",
value: function getDefaultProps() {
return {
i18n: _localization.default,
useSuspense: false
};
}
}, {
key: "render",

@@ -161,4 +151,3 @@ value: function render() {

details: _propTypes.default.object.isRequired,
theme: _propTypes.default.object.isRequired,
t: _propTypes.default.string.isRequired
theme: _propTypes.default.object.isRequired
});

@@ -165,0 +154,0 @@

8

lib/index.js

@@ -26,2 +26,6 @@ "use strict";

var _reactI18next = require("react-i18next");
var _localization = _interopRequireDefault(require("./localization"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -99,2 +103,4 @@

store: store
}, _react.default.createElement(_reactI18next.I18nextProvider, {
i18n: _localization.default
}, _react.default.createElement(_profileCard.default, _extends({}, this.props, {

@@ -104,3 +110,3 @@ disableMessage: this.disableMessage,

profileCardId: this.profileCardId
})));
}))));
}

@@ -107,0 +113,0 @@ }]);

@@ -8,6 +8,4 @@ "use strict";

var _locizeLauncher = _interopRequireDefault(require("@influitive/locize-launcher"));
var _locizeLauncher = require("@influitive/locize-launcher");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var options = {

@@ -17,4 +15,4 @@ defaultNs: 'ProfileCard',

};
var i18n = (0, _locizeLauncher.default)(process.env.LOCIZE_PROJECT_ID, process.env.LOCIZE_API_KEY, options);
var i18n = (0, _locizeLauncher.i18nLocizeInstance)(process.env.LOCIZE_PROJECT_ID, process.env.LOCIZE_API_KEY, options);
var _default = i18n;
exports.default = _default;
{
"name": "@influitive/profile-card",
"version": "3.0.16",
"version": "3.0.17",
"dependencies": {
"@influitive/jwt": "^2.1.2",
"@influitive/locize-launcher": "0.2.5",
"@influitive/locize-launcher": "0.2.6",
"@influitive/runtime-deps": "3.0.0",

@@ -8,0 +8,0 @@ "@influitive/scripts": "^1.1.5",

import React, { Component } from 'react';
import { withNamespaces } from 'react-i18next';
import i18n from '../localization';
import PropTypes from 'prop-types';

@@ -21,14 +20,6 @@ import { analyticsLogEvent, analyticsTrackingDetails } from '../from-hub';

class Footer extends Component {
getDefaultProps() {
return {
i18n,
useSuspense: false
};
}
static propsTypes = {
id: PropTypes.string.isRequired,
disableViewProfile: PropTypes.bool.isRequired,
disableMessage: PropTypes.bool.isRequired,
t: PropTypes.string.isRequired
disableMessage: PropTypes.bool.isRequired
}

@@ -35,0 +26,0 @@

import React, { Component } from 'react';
import { withNamespaces } from 'react-i18next';
import i18n from '../localization';
import PropTypes from 'prop-types';

@@ -41,13 +40,5 @@ import isEmpty from 'lodash.isempty';

class Details extends Component {
getDefaultProps() {
return {
i18n,
useSuspense: false
};
}
static propsTypes = {
details: PropTypes.object.isRequired,
theme: PropTypes.object.isRequired,
t: PropTypes.string.isRequired
theme: PropTypes.object.isRequired
}

@@ -54,0 +45,0 @@

@@ -11,2 +11,5 @@ import React, { Component } from 'react';

import { I18nextProvider } from 'react-i18next';
import i18n from './localization';
const tracker = createTracker();

@@ -43,6 +46,8 @@ let createStoreWithMiddleware = applyMiddleware(thunk, tracker)(createStore);

<Provider store={store}>
<ProfileCard {...this.props}
disableMessage={this.disableMessage}
disableViewProfile={this.disableViewProfile}
profileCardId={this.profileCardId}/>
<I18nextProvider i18n={i18n}>
<ProfileCard {...this.props}
disableMessage={this.disableMessage}
disableViewProfile={this.disableViewProfile}
profileCardId={this.profileCardId}/>
</I18nextProvider>
</Provider>

@@ -49,0 +54,0 @@ );

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

import i18nLocize from '@influitive/locize-launcher';
import { i18nLocizeInstance } from '@influitive/locize-launcher';
const options = { defaultNs: 'ProfileCard', ns: 'ProfileCard' };
const i18n = i18nLocize(process.env.LOCIZE_PROJECT_ID, process.env.LOCIZE_API_KEY, options);
const i18n = i18nLocizeInstance(process.env.LOCIZE_PROJECT_ID, process.env.LOCIZE_API_KEY, options);
export default i18n;
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