New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cnbritain/merlin-frontend-statepusher-js

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cnbritain/merlin-frontend-statepusher-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

js/StatePusher.js

@@ -13,2 +13,4 @@ "use strict";

import { hasHistory } from '@cnbritain/merlin-frontend-utils-js/js/detect';
function StatePusher(){

@@ -48,3 +50,5 @@ this._currentIndex = -1;

url = getParent( articleTitle, ".a-main, .a-main--gallery" ).getAttribute( "data-url" ) + queryParams;
history.replaceState( {}, articleTitle.innerHTML, url );
if(hasHistory){
history.replaceState( {}, articleTitle.innerHTML, url );
}
document.title = articleTitle.innerHTML;

@@ -51,0 +55,0 @@ setStorage('last_article', url);

2

package.json
{
"name": "@cnbritain/merlin-frontend-statepusher-js",
"cnOptions": {},
"version": "1.0.0",
"version": "1.0.1",
"description": "A handy-dandy reusuable front-end component for great justice.",

@@ -6,0 +6,0 @@ "main": "js/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