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

@input-output-hk/front-end-core-components

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@input-output-hk/front-end-core-components - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

components/Link.js

@@ -57,3 +57,3 @@ "use strict";

function getHref() {
if (props.lang && (0, _url.isRelative)(props.href) && !props.isStatic(props.href) && !props.href.match(new RegExp("^/".concat(props.lang, "(/?|/.*)$")))) {
if (props.lang && (0, _url.isRelative)(props.href) && !props.isStatic(props.href) && !props.href.match(new RegExp("^/".concat(props.lang, "(/?|/.*)$"))) && !props.href.match(/^(#|\?)/)) {
return "/".concat(props.lang).concat(props.href);

@@ -115,2 +115,2 @@ }

exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9MaW5rLmpzIl0sIm5hbWVzIjpbIkxpbmtDb250ZXh0IiwiUHJvdmlkZXIiLCJjaGlsZHJlbiIsImNvbXBvbmVudCIsImlzU3RhdGljIiwiaHJlZiIsImxhbmciLCJwcm9wVHlwZXMiLCJQcm9wVHlwZXMiLCJub2RlIiwiaXNSZXF1aXJlZCIsInN0cmluZyIsImZ1bmMiLCJhbnkiLCJMaW5rSW5uZXIiLCJwcm9wcyIsInJlZiIsImdldEhyZWYiLCJtYXRjaCIsIlJlZ0V4cCIsIkNvbXBvbmVudCIsImNvbXBvbmVudFByb3BzIiwiaXNSZWxhdGl2ZSIsIkxpbmsiLCJlbFJlZiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7Ozs7OztBQUVBLElBQU1BLFdBQVcsR0FBRywyQkFBcEI7O0FBRU8sSUFBTUMsUUFBUSxHQUFHLFNBQVhBLFFBQVc7QUFBQSxNQ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vcHMuaXNTdGF0aWNcbiAgICBkZWxldGUgY29tcG9uZW50UHJvcHMuaXNSZWxhdGl2ZVxuICB9XG5cbiAgcmV0dXJuIChcbiAgICA8Q29tcG9uZW50IHsuLi5jb21wb25lbnRQcm9wc30gcmVmPXtyZWZ9IC8+XG4gIClcbn0pXG5cbmNvbnN0IExpbmsgPSBmb3J3YXJkUmVmKChwcm9wcywgcmVmKSA9PiAoXG4gIDxMaW5rQ29udGV4dC5Db25zdW1lcj5cbiAgICB7KHsgbGFuZywgaXNTdGF0aWMgPSAoKSA9PiBmYWxzZSwgY29tcG9uZW50ID0gJ2EnIH0gPSB7fSkgPT4gKFxuICAgICAgPExpbmtJbm5lciB7Li4ucHJvcHN9IHJlZj17cmVmfSBsYW5nPXtsYW5nfSBpc1N0YXRpYz17aXNTdGF0aWN9IGNvbXBvbmVudD17Y29tcG9uZW50fSAvPlxuICAgICl9XG4gIDwvTGlua0NvbnRleHQuQ29uc3VtZXI+XG4pKVxuXG5MaW5rSW5uZXIucHJvcFR5cGVzID0ge1xuICBocmVmOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGxhbmc6IFByb3BUeXBlcy5zdHJpbmcsXG4gIGlzU3RhdGljOiBQcm9wVHlwZXMuZnVuYyxcbiAgZWxSZWY6IFByb3BUeXBlcy5hbnksXG4gIGNvbXBvbmVudDogUHJvcFR5cGVzLmFueVxufVxuXG5MaW5rLnByb3BUeXBlcyA9IHtcbiAgaHJlZjogUHJvcFR5cGVzLnN0cmluZy5pc1JlcXVpcmVkXG59XG5cbmV4cG9ydCBkZWZhdWx0IExpbmtcbiJdfQ==
{
"name": "@input-output-hk/front-end-core-components",
"version": "1.0.7",
"version": "1.0.8",
"description": "IOHK front-end web core React components",

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

@@ -25,3 +25,9 @@ import React, { forwardRef, createContext } from 'react'

function getHref () {
if (props.lang && isRelative(props.href) && !props.isStatic(props.href) && !props.href.match(new RegExp(`^/${props.lang}(/?|/.*)$`))) {
if (
props.lang &&
isRelative(props.href) &&
!props.isStatic(props.href) &&
!props.href.match(new RegExp(`^/${props.lang}(/?|/.*)$`)) &&
!props.href.match(/^(#|\?)/)
) {
return `/${props.lang}${props.href}`

@@ -28,0 +34,0 @@ }

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