
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
router5-plugin-browser
Advanced tools
The browser plugin will automatically update your browser URL and state on route changes. It will also listen to popstate events (triggered by back and forward buttons and manual URL changes).
This plugin uses HTML5 history API and therefore is not compatible with browsers which don't support it. Refer to caniuse.com for browser compatibility.
It adds a bunch of functions to work with full URLs: router.buildUrl(routeName, routeParams)
and router.matchUrl(url)
. It also decorates the start function so you don't have to supply any start path (it extracts it from the current URL).
import browserPlugin from 'router5-plugin-browser'
const router = createRouter()
router.usePlugin(
browserPlugin({
useHash: true
})
)
router.start()
forceDeactivate
: default to true
, meaning canDeactivate
handlers won't get called on popstate events. It is not recommended to set it to false
.useHash
hashPrefix
base
: the base of your application (the part to add / preserve between your domain and your route paths).preserveHash
: whether to preserve the initial hash value on page load (default to true
, only if useHash
is false
)mergeState
: whether to keep any value added in history state by a 3rd party or not (default to false
)FAQs
Router5 browser plugin
The npm package router5-plugin-browser receives a total of 13,978 weekly downloads. As such, router5-plugin-browser popularity was classified as popular.
We found that router5-plugin-browser 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.