@americanexpress/react-seo
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -35,5 +35,6 @@ "use strict"; | ||
siteUrl = _ref.siteUrl, | ||
title = _ref.title; | ||
title = _ref.title, | ||
canonicalTag = _ref.canonical; | ||
var image = metaImage && metaImage.src ? "".concat(siteUrl).concat(metaImage.src) : null; | ||
var canonical = pathname ? "".concat(siteUrl).concat(pathname) : null; | ||
var canonical = canonicalTag || (pathname ? "".concat(siteUrl).concat(pathname) : null); | ||
var link = canonical ? [{ | ||
@@ -112,3 +113,4 @@ rel: 'canonical', | ||
siteUrl: _propTypes.default.string, | ||
title: _propTypes.default.string | ||
title: _propTypes.default.string, | ||
canonical: _propTypes.default.string | ||
}; | ||
@@ -126,5 +128,6 @@ SEO.defaultProps = { | ||
siteUrl: '', | ||
title: '' | ||
title: '', | ||
canonical: '' | ||
}; | ||
var _default = SEO; | ||
exports.default = _default; |
{ | ||
"name": "@americanexpress/react-seo", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Simple SEO tag manager for React", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -68,2 +68,3 @@ <h1 align="center"> | ||
title: PropTypes.string, | ||
canonical: PropTypes.string, | ||
}; | ||
@@ -82,2 +83,3 @@ | ||
title: '', | ||
canonical: '', | ||
}; | ||
@@ -84,0 +86,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19578
116
109