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

cf-component-link

Package Overview
Dependencies
Maintainers
6
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-link - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

25

lib/Link.js

@@ -33,4 +33,12 @@ 'use strict';

_initialiseProps.call(_this);
_this.handleClick = function (e) {
e.preventDefault();
if (_this.props.to) {
(0, _cfUtilRouteHandler.routeTo)(_this.props.to);
} else {
_this.props.onClick(e);
}
};
return _this;

@@ -82,17 +90,2 @@ }

};
var _initialiseProps = function _initialiseProps() {
var _this2 = this;
this.handleClick = function (e) {
e.preventDefault();
if (typeof props.to === 'string') {
(0, _cfUtilRouteHandler.routeTo)(_this2.props.to);
} else {
_this2.props.onClick(e);
}
};
};
exports.default = Link;
{
"name": "cf-component-link",
"description": "CloudFlare Link Component",
"version": "1.1.0",
"version": "1.1.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "scripts": {

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