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

react-external-link

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-external-link - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

dist/src/ExternalLink.d.ts

17

CHANGELOG.md

@@ -7,2 +7,19 @@ # CHANGELOG

## [1.2.1] - 2021-03-05
### Added
* *Nothing*
### Changed
* *Nothing*
### Deprecated
* *Nothing*
### Removed
* *Nothing*
### Fixed
* [#21](https://github.com/acelaya/react-external-link/issues/21) Fixed linting by updating to `@shlinkio/eslint-config-js-coding-standard` as the coding style.
## [1.2.0] - 2020-12-19

@@ -9,0 +26,0 @@ ### Added

2

dist/index.cjs.js

@@ -51,5 +51,5 @@ 'use strict';

var href = _a.href, children = _a.children, rest = __rest(_a, ["href", "children"]);
return (React__default['default'].createElement("a", __assign({ target: "_blank", rel: "noopener noreferrer", href: href }, rest), children || href));
return (React__default['default'].createElement("a", __assign({ target: "_blank", rel: "noopener noreferrer", href: href }, rest), children !== null && children !== void 0 ? children : href));
};
exports.ExternalLink = ExternalLink;

@@ -43,5 +43,5 @@ import React from 'react';

var href = _a.href, children = _a.children, rest = __rest(_a, ["href", "children"]);
return (React.createElement("a", __assign({ target: "_blank", rel: "noopener noreferrer", href: href }, rest), children || href));
return (React.createElement("a", __assign({ target: "_blank", rel: "noopener noreferrer", href: href }, rest), children !== null && children !== void 0 ? children : href));
};
export { ExternalLink };
{
"name": "react-external-link",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",

@@ -31,6 +31,7 @@ "main": "dist/index.cjs.js",

"test:ci": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=clover",
"lint": "eslint --ext js,jsx,ts,tsx ./src ./test ./*.js",
"lint": "eslint --ext ts,tsx ./src ./test",
"lint:fix": "npm run lint -- --fix"
},
"devDependencies": {
"@shlinkio/eslint-config-js-coding-standard": "~1.2.1",
"@testing-library/jest-dom": "^5.11.6",

@@ -41,17 +42,5 @@ "@testing-library/react": "^11.2.2",

"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"babel-eslint": "^10.0",
"concurrently": "^5.3.0",
"eslint": "^7.16.0",
"eslint-config-adidas-babel": "^1.2.0",
"eslint-config-adidas-env": "^1.2.0",
"eslint-config-adidas-react": "^1.2.0",
"eslint-config-adidas-typescript": "^1.3.1",
"eslint": "^7.21.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.21.5",
"jest": "^26.6.3",

@@ -58,0 +47,0 @@ "prepend-file": "^2.0.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