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.1.1 to 1.2.0

70

CHANGELOG.md

@@ -7,6 +7,24 @@ # CHANGELOG

## 1.1.0 - 2019-09-03
## [1.2.0] - 2020-12-19
### Added
* *Nothing*
#### Added
### Changed
* [#16](https://github.com/acelaya/react-external-link/issues/16) Migrated build to Github Actions.
* [#17](https://github.com/acelaya/react-external-link/issues/17) Migrated release publishing to Github Actions.
* [#18](https://github.com/acelaya/react-external-link/issues/18) Migrated to Codecov as coverage backend.
* [#19](https://github.com/acelaya/react-external-link/issues/19) Updated dependencies.
### Deprecated
* *Nothing*
### Removed
* *Nothing*
### Fixed
* *Nothing*
## [1.1.0] - 2019-09-03
### Added
* [#2](https://github.com/acelaya/react-external-link/issues/2) Added travis config and enabled project builds.

@@ -17,62 +35,46 @@ * [#1](https://github.com/acelaya/react-external-link/issues/1) Added tests which are run as part of the build.

#### Changed
### Changed
* [#6](https://github.com/acelaya/react-external-link/issues/6) Changed coding styles to adidas coding styles.
#### Deprecated
### Deprecated
* *Nothing*
#### Removed
### Removed
* *Nothing*
#### Fixed
### Fixed
* *Nothing*
## 1.0.1 - 2019-08-29
#### Added
## [1.0.1] - 2019-08-29
### Added
* *Nothing*
#### Changed
### Changed
* *Nothing*
#### Deprecated
### Deprecated
* *Nothing*
#### Removed
### Removed
* *Nothing*
#### Fixed
### Fixed
* Fixed typescript interface not accepting any extra props in `ExternalLink`
## 1.0.0 - 2019-08-28
#### Added
## [1.0.0] - 2019-08-28
### Added
* First stable release
#### Changed
### Changed
* *Nothing*
#### Deprecated
### Deprecated
* *Nothing*
#### Removed
### Removed
* *Nothing*
#### Fixed
### Fixed
* *Nothing*

@@ -5,19 +5,21 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React = _interopDefault(require('react'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -50,5 +52,5 @@

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__default['default'].createElement("a", __assign({ target: "_blank", rel: "noopener noreferrer", href: href }, rest), children || href));
};
exports.ExternalLink = ExternalLink;
import React from 'react';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -17,0 +17,0 @@

{
"name": "react-external-link",
"version": "1.1.1",
"version": "1.2.0",
"license": "MIT",

@@ -30,3 +30,3 @@ "main": "dist/index.cjs.js",

"test": "jest --colors",
"test:cover": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=clover",
"test:ci": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary --coverageReporters=clover",
"lint": "eslint --ext js,jsx,ts,tsx ./src ./test ./*.js",

@@ -36,37 +36,36 @@ "lint:fix": "npm run lint -- --fix"

"devDependencies": {
"@testing-library/jest-dom": "^4.1.0",
"@testing-library/react": "^9.1.3",
"@types/jest": "^24.0.18",
"@types/react": "^16.8",
"@types/react-dom": "^16.8",
"@typescript-eslint/eslint-plugin": "^1.13",
"@typescript-eslint/parser": "^2.0.0",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@types/jest": "^26.0.19",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"babel-eslint": "^10.0",
"concurrently": "^4.1.1",
"eslint": "^5.16",
"eslint-config-adidas-babel": "^1.1.0",
"eslint-config-adidas-env": "^1.1.0",
"eslint-config-adidas-react": "^1.1.1",
"eslint-config-adidas-typescript": "^1.0.1",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^21.22.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^24.9.0",
"ocular.js": "^0.1.0",
"prepend-file": "^1.3.1",
"react": "^16.8",
"react-dom": "^16.8",
"rollup": "^1.19.4",
"rollup-plugin-typescript2": "^0.22.1",
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0",
"tslib": "^1.10.0",
"typescript": "^3.5.3"
"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-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",
"prepend-file": "^2.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rollup": "^2.35.1",
"rollup-plugin-typescript2": "^0.29.0",
"ts-jest": "^26.4.4",
"ts-node": "^9.1.1",
"tslib": "^2.0.3",
"typescript": "^4.1.3"
},
"peerDependencies": {
"react": "^16.8",
"react-dom": "^16.8"
"react": "^17.0",
"react-dom": "^17.0"
},

@@ -73,0 +72,0 @@ "files": [

# React External Link
[![Build Status](https://img.shields.io/travis/acelaya/react-external-link.svg?style=flat-square)](https://travis-ci.org/acelaya/react-external-link)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/acelaya/react-external-link.svg?style=flat-square)](https://scrutinizer-ci.com/g/acelaya/react-external-link/?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/acelaya/react-external-link.svg?style=flat-square)](https://scrutinizer-ci.com/g/acelaya/react-external-link/?branch=master)
[![Build Status](https://img.shields.io/github/workflow/status/acelaya/react-external-link/Continuous%20integration/main?logo=github&style=flat-square)](https://github.com/acelaya/react-external-link/actions?query=workflow%3A%22Continuous+integration%22)
[![Code Coverage](https://img.shields.io/codecov/c/gh/acelaya/react-external-link/main?style=flat-square)](https://app.codecov.io/gh/acelaya/react-external-link)
[![npm](https://img.shields.io/npm/v/react-external-link?style=flat-square)](https://www.npmjs.com/package/react-external-link)

@@ -15,6 +14,4 @@ [![npm downloads](https://img.shields.io/npm/dt/react-external-link?style=flat-square)](https://www.npmjs.com/package/react-external-link)

Using npm: `npm install react-external-link --save`
npm install react-external-link --save
Using yarn: `yarn add react-external-link`
## Usage

@@ -37,4 +34,8 @@

This will be rendered as `<a href="https://example.com" target="_blank" rel="noopener noreferrer">https://example.com</a>`.
This will be rendered as:
```html
<a href="https://example.com" target="_blank" rel="noopener noreferrer">https://example.com</a>
```
If you need to provide a custom content, you can do so by providing the `ExternalLink`'s `children`:

@@ -50,3 +51,3 @@

<span>Visit the site</span>
<ExternalLink>
</ExternalLink>
</div>

@@ -77,2 +78,6 @@ );

The result in this case will be `<a href="https://example.com" target="_blank" rel="noopener noreferrer" class="my-class">https://example.com</a>`.
The result in this case will be:
```html
<a href="https://example.com" target="_blank" rel="noopener noreferrer" class="my-class">https://example.com</a>
```

Sorry, the diff of this file is not supported yet

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