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

history-manager

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

history-manager - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

2

package.json
{
"name": "history-manager",
"version": "2.0.0",
"version": "2.1.0",
"description": "",

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

@@ -26,2 +26,8 @@ /**

window.addEventListener("popstate", listener, true);
// remove options of just loaded page
if (Object.keys(get()).length > 0) {
set({});
}
return destroyEventListener = () => {

@@ -148,7 +154,2 @@ window.removeEventListener("popstate", listener, true);

return splitHref()[0];
}
// remove options of just loaded page
if (Object.keys(get()).length > 0) {
set({});
}

@@ -9,13 +9,26 @@ /**

let BASE: string = "#";
const LOCATION_BASE: string = `${
window.location.protocol
}//${
window.location.host
}`;
const LOCATION_PATHNAME = window.location.pathname;
let LOCATION_BASE: string | null = null;
let LOCATION_PATHNAME: string | null = null;
function getLocation() {
return LOCATION_BASE + (BASE[0] === "#" ? LOCATION_PATHNAME : "");
function getLocationBase() {
if (LOCATION_BASE !== null) {
return LOCATION_BASE;
}
return LOCATION_BASE = `${
window.location.protocol
}//${
window.location.host
}`;
}
function getLocationPathname() {
if (LOCATION_PATHNAME !== null) {
return LOCATION_PATHNAME;
}
return LOCATION_PATHNAME = window.location.pathname;
}
function getLocation(): string {
return getLocationBase() + (BASE[0] === "#" ? getLocationPathname() : "");
}
const parenthesesRegex: RegExp = /[\\\/]+/g;

@@ -22,0 +35,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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