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

reshow

Package Overview
Dependencies
Maintainers
1
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow - npm Package Compare versions

Comparing version 0.1.32 to 0.1.33

20

build/ui/organisms/Reshow.js

@@ -87,4 +87,5 @@ 'use strict';

}
if ((0, _getObjectValue2.default)(params, ['data', 'canonical'])) {
this.updateCanonicalUrl((0, _getObjectValue2.default)(params, ['data', 'canonical']));
var canonical = (0, _getObjectValue2.default)(params, ['data', 'canonical']);
if (canonical) {
this.updateCanonicalUrl(canonical);
}

@@ -96,2 +97,8 @@ }

value: function updateCanonicalUrl(url) {
var lStore = (0, _getObjectValue2.default)(window, ['localStorage']);
if (lStore) {
if (lStore.getItem('no-canonical')) {
return;
}
}
var newUrl = url + document.location.search;

@@ -109,3 +116,10 @@ if (-1 !== url.indexOf(document.location.hostname)) {

if (canonical && canonical.href) {
this.updateCanonicalUrl(canonical.href);
if (-1 !== document.URL.indexOf('--no-canonical')) {
var lStore = (0, _getObjectValue2.default)(window, ['localStorage']);
if (lStore) {
lStore.setItem('no-canonical', 1);
}
} else {
this.updateCanonicalUrl(canonical.href);
}
}

@@ -112,0 +126,0 @@ }

2

package.json
{
"name": "reshow",
"version": "0.1.32",
"version": "0.1.33",
"description": "Flux Reducer Present Library",

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

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