Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@nano-router/history
Advanced tools
Fork of the history package to support external navigation. Right now the two implementations is very close to each other, so documentation is still valid except for the additions.
This fork adds the following two methods:
This method will use window.location.assign
to update the browser location.
history.pushLocation("https://www.example.com");
It support blocking the navigation like you would expect.
You can optionally provide a target, to open the location in another frame:
history.pushLocation("https://www.example.com", "_blank");
This method will use window.location.replace
to update the browser location.
history.replaceLocation("https://www.example.com");
It support blocking the navigation like you would expect.
FAQs
Manage session history with JavaScript
We found that @nano-router/history demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.