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

gatsby-link

Package Overview
Dependencies
Maintainers
1
Versions
693
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-link - npm Package Compare versions

Comparing version 1.0.0-alpha11-alpha.3b0066c5 to 1.0.0-alpha11-alpha.3e341373

README.md

10

index.js
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _react = require('react');

@@ -13,2 +15,7 @@

var linkPrefix = '';
if (__PREFIX_LINKS__) {
linkPrefix = __LINK_PREFIX__;
}
// Use createClass instead of ES6 class as Babel spews out a ton of code

@@ -52,3 +59,4 @@ // for polyfilling classes which there's no reason to pay for this.

render: function render() {
return _react2.default.createElement(_Link2.default, this.props);
var to = linkPrefix + this.props.to;
return _react2.default.createElement(_Link2.default, _extends({}, this.props, { to: to }));
}

@@ -55,0 +63,0 @@ });

2

package.json
{
"name": "gatsby-link",
"version": "1.0.0-alpha11-alpha.3b0066c5",
"version": "1.0.0-alpha11-alpha.3e341373",
"description": "An enhanced Link component for Gatsby sites with support for resource prefetching",

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

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