New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-line-social

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-line-social - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/consts.js

6

dist/friend.js

@@ -23,2 +23,6 @@ 'use strict';

var _consts = require('./consts');
var _consts2 = _interopRequireDefault(_consts);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -79,3 +83,3 @@

lineid: _propTypes2.default.string.isRequired,
locale: _propTypes2.default.oneOf(['en', 'ja', 'zh-TW', 'th', 'id']),
locale: _propTypes2.default.oneOf(_consts2.default.LOCALES),
count: _propTypes2.default.bool,

@@ -82,0 +86,0 @@ home: _propTypes2.default.bool

@@ -23,2 +23,6 @@ 'use strict';

var _consts = require('./consts');
var _consts2 = _interopRequireDefault(_consts);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -80,3 +84,3 @@

lineid: _propTypes2.default.string,
locale: _propTypes2.default.oneOf(['en', 'ja', 'zh-TW', 'th', 'id']),
locale: _propTypes2.default.oneOf(_consts2.default.LOCALES),
share: _propTypes2.default.bool,

@@ -83,0 +87,0 @@ url: _propTypes2.default.string

15

dist/share.js

@@ -21,2 +21,6 @@ 'use strict';

var _consts = require('./consts');
var _consts2 = _interopRequireDefault(_consts);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -55,3 +59,4 @@

className = _props.className,
locale = _props.locale;
locale = _props.locale,
type = _props.type;

@@ -64,3 +69,3 @@ var url = _utils2.default.fixUrl(this.props.url);

'data-lang': _utils2.default.localeToLang(locale),
'data-type': 'share-a',
'data-type': type,
'data-url': url });

@@ -76,3 +81,4 @@ }

className: _propTypes2.default.string,
locale: _propTypes2.default.oneOf(['en', 'ja', 'zh-TW', 'th', 'id']),
locale: _propTypes2.default.oneOf(_consts2.default.LOCALES),
type: _propTypes2.default.oneOf(_consts2.default.TYPES),
url: _propTypes2.default.string

@@ -82,5 +88,6 @@ };

Share.defaultProps = {
locale: 'zh-TW'
locale: 'zh-TW',
type: 'share-a'
};
exports.default = Share;
{
"name": "react-line-social",
"author": "szchenghuang <szchenghuang@gmail.com>",
"version": "0.1.0",
"version": "0.2.0",
"description": "Line Social Plugins in React",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -24,2 +24,3 @@ # react-line-social #

<Share />
<Share type='share-b' />

@@ -42,2 +43,3 @@ <Friend lineid="@lineteamjp" />

* _locale_ - '**en**' | '**ja**' | '**zh-TW**' | '**th**' | '**id**'. Defaut: `zh-TW`.
* _type_ - '**share-a**' | '**share-b' | '**share-c**' | '**share-d**' | '**share-e**'. Defaut: `share-a`.
* _url_ - String. Default: `window.location.href`.

@@ -44,0 +46,0 @@

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