Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@frehner/apphistory
Advanced tools
⚠️ Not for production. Use at your own risk; there will be breaking changes because the spec is not yet finalized ⚠️
A work-in-progress polyfill for the appHistory proposal.
This polyfill must run in a browser-like environment (e.g. an env that has window.location
and window.history
). If there's time, and demand for it, I think it would be interesting to have a discussion about how this polyfill could work in other environments.
To setup the polyfill so that it will automatically listen for anchor tag clicks, do the following:
import { useBrowerPolyfill } from "@frehner/apphistory";
userBrowserPolyfill();
// appHistory is now on the window
window.appHistory.push();
Alternatively, you can create your own instance of AppHistory:
import { AppHistory } from "@frehner/apphistory";
const appHistory = new AppHistory();
// use your own instance of appHistory, without any events from things like anchor tags
appHistory.push();
AppHistoryEntry
use event.detail.target
instead of event.target
to get access to the AppHistoryEntry that fired the event.0.0.4
Fixing bugs with useBrowserPolyfill()
FAQs
A polyfill for the appHistory proposal. Not ready for production
The npm package @frehner/apphistory receives a total of 0 weekly downloads. As such, @frehner/apphistory popularity was classified as not popular.
We found that @frehner/apphistory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.