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

@trendmicro/react-anchor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trendmicro/react-anchor - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

10

lib/Anchor.js

@@ -85,7 +85,7 @@ 'use strict';

tabIndex = _props.tabIndex,
disabled = _props.disabled,
componentClass = _props.componentClass,
style = _props.style,
props = _objectWithoutProperties(_props, ['href', 'role', 'tabIndex', 'disabled', 'style']);
props = _objectWithoutProperties(_props, ['href', 'role', 'tabIndex', 'componentClass', 'style']);
var Component = this.props.componentClass || 'a';
var Component = componentClass || 'a';

@@ -97,3 +97,3 @@ if (isTrivialHref(href)) {

if (disabled) {
if (this.props.disabled) {
tabIndex = -1;

@@ -123,4 +123,4 @@ style = _extends({

tabIndex: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
componentClass: _react.PropTypes.element
componentClass: _react.PropTypes.oneOfType([_react.PropTypes.node, _react.PropTypes.string])
}, _temp2);
exports.default = Anchor;
{
"name": "@trendmicro/react-anchor",
"version": "0.5.1",
"version": "0.5.2",
"description": "Trend Micro Components: React Anchor",

@@ -13,3 +13,3 @@ "main": "lib/index.js",

"build": "babel --out-dir ./lib ./src",
"build-examples": "cd examples; webpack; cp -af index.html ../docs/index.html",
"build-examples": "cd examples; webpack",
"clean": "rm -f lib/*",

@@ -21,3 +21,3 @@ "demo": "http-server -p 8000 docs/",

"coveralls": "./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls",
"webpack-dev-server": "cd examples; webpack-dev-server --hot --inline --host 0.0.0.0 --port 8000"
"dev": "cd examples; webpack-dev-server --hot --inline --host 0.0.0.0 --port 8000 --content-base ../docs"
},

@@ -68,2 +68,3 @@ "repository": {

"eslint-plugin-react": "~6.8.0",
"html-webpack-plugin": "~2.24.1",
"http-server": "~0.9.0",

@@ -70,0 +71,0 @@ "json-loader": "~0.5.4",

@@ -39,9 +39,9 @@ # react-anchor [![build status](https://travis-ci.org/trendmicro-frontend/react-anchor.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-anchor) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-anchor/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-anchor?branch=master)

<table class="table table-bordered table-striped">
<table>
<thead>
<tr>
<th style="width: 100px;">Name</th>
<th style="width: 50px;">Type</th>
<th>Default</th>
<th>Description</th>
<th align="left">Name</th>
<th align="left">Type</th>
<th align="left">Default</th>
<th align="left">Description</th>
</tr>

@@ -82,3 +82,3 @@ </thead>

<td>componentClass</td>
<td>Element</td>
<td>Node|String</td>
<td>'a'</td>

@@ -85,0 +85,0 @@ <td></td>

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