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

gatsby-react-router-scroll

Package Overview
Dependencies
Maintainers
2
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-react-router-scroll - npm Package Compare versions

Comparing version 1.1.0-alpha.f20ac0ed to 1.1.0-alpha.f5c1df61

2

package.json
{
"name": "gatsby-react-router-scroll",
"description": "React Router scroll management forked from https://github.com/ytase/react-router-scroll for Gatsby",
"version": "1.1.0-alpha.f20ac0ed",
"version": "1.1.0-alpha.f5c1df61",
"author": "Jimmy Jia",

@@ -6,0 +6,0 @@ "dependencies": {

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

try {
var value = sessionStorage.getItem(stateKey);
var value = window.sessionStorage.getItem(stateKey);
return JSON.parse(value);

@@ -46,3 +46,3 @@ } catch (e) {

try {
sessionStorage.setItem(stateKey, storedValue);
window.sessionStorage.setItem(stateKey, storedValue);
} catch (e) {

@@ -61,4 +61,3 @@ if (window && window[GATSBY_ROUTER_SCROLL_STATE]) {

SessionStorage.prototype.getStateKey = function getStateKey(location, key) {
var locationKey = location.key;
var stateKeyBase = "" + STATE_KEY_PREFIX + locationKey;
var stateKeyBase = "" + STATE_KEY_PREFIX + location.pathname;
return key === null || typeof key === "undefined" ? stateKeyBase : stateKeyBase + "|" + key;

@@ -65,0 +64,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