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

@khanacademy/wonder-blocks-link

Package Overview
Dependencies
Maintainers
1
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-link - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

6

components/link-core.js
// @flow
import React from "react";
import * as React from "react";
import {StyleSheet} from "aphrodite";

@@ -22,4 +22,4 @@ import {Link} from "react-router-dom";

const StyledAnchor = addStyle("a");
const StyledLink = addStyle(Link);
const StyledAnchor = addStyle<"a">("a");
const StyledLink = addStyle<typeof Link>(Link);

@@ -26,0 +26,0 @@ export default class LinkCore extends React.Component<Props> {

@@ -1,2 +0,2 @@

import React__default, { createElement, Component } from 'react';
import { createElement, Component } from 'react';
import { StyleSheet } from 'aphrodite';

@@ -208,5 +208,5 @@ import { Link } from 'react-router-dom';

return router && !skipClientNav ? React__default.createElement(StyledLink, _extends({}, commonProps, {
return router && !skipClientNav ? createElement(StyledLink, _extends({}, commonProps, {
to: href
}), children) : React__default.createElement(StyledAnchor, _extends({}, commonProps, {
}), children) : createElement(StyledAnchor, _extends({}, commonProps, {
href: href

@@ -218,3 +218,3 @@ }), children);

return LinkCore;
}(React__default.Component);
}(Component);

@@ -221,0 +221,0 @@ _defineProperty(LinkCore, "contextTypes", {

@@ -133,3 +133,2 @@ module.exports =

var external_react_ = __webpack_require__(1);
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);

@@ -231,5 +230,5 @@ // EXTERNAL MODULE: external "prop-types"

return router && !skipClientNav ? external_react_default.a.createElement(StyledLink, _extends({}, commonProps, {
return router && !skipClientNav ? external_react_["createElement"](StyledLink, _extends({}, commonProps, {
to: href
}), children) : external_react_default.a.createElement(StyledAnchor, _extends({}, commonProps, {
}), children) : external_react_["createElement"](StyledAnchor, _extends({}, commonProps, {
href: href

@@ -241,3 +240,3 @@ }), children);

return LinkCore;
}(external_react_default.a.Component);
}(external_react_["Component"]);

@@ -244,0 +243,0 @@ _defineProperty(link_core_LinkCore, "contextTypes", {

{
"name": "@khanacademy/wonder-blocks-link",
"version": "3.0.3",
"version": "3.0.4",
"design": "v1",

@@ -18,4 +18,4 @@ "publishConfig": {

"dependencies": {
"@khanacademy/wonder-blocks-color": "^1.0.13",
"@khanacademy/wonder-blocks-core": "^1.2.6"
"@khanacademy/wonder-blocks-color": "^1.0.14",
"@khanacademy/wonder-blocks-core": "^1.2.7"
},

@@ -22,0 +22,0 @@ "peerDependencies": {

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