
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@neovici/cosmoz-page-router
Advanced tools
A Polymer component to handle client side URL routing and view loading / management
cosmoz-page-router is a haunted component to handle client side URL routing and view loading / management.
By default cosmoz-page-router listens to popstate
event
, gets current location href and matches it against the routes defined.
Using npm:
npm install --save @neovici/cosmoz-page-router
The cosmoz-page-router element can be imported using:
import '@neovici/cosmoz-page-router/cosmoz-page-router';
Routes are defined as an Array of Objects:
import { html } from 'lit-html';
import { creteElement, navigate } from '@neovici/cosmoz-page-router/lib/use-routes';
const routes = [
{
name: 'home', // optional (can be used to identity the route),
rule: /^\/$/iu/, // a Regexp used to matched the route,
handle: ({
url, // the current url string ( that matched the route)
match, // the result of matching route against the rule,
}) => html`<home />`
},
{
name: 'some-page',
rule: (url) => url.startsWith('/some-page'), // function called with current url string
handle: ({ url })=>import('page.js')
.then(()=> createElement('some-element', Object.fromEntries(url.searchParams)))
},
{
name: 'redirect',
rule: /^\/some\-redirect$/iu,
handle: ()=> navigate('#!/', null, {
replace: true, // true to use replaceState,false to use pushState,
notify: true // true to dispatch a `popstate` event
})
}
];
and passed to cosmoz-page-router:
html`<cosmoz-page-router .routes=${routes} />`;
See http://neovici.github.io/cosmoz-page-router (outdated)
TODO
FAQs
A Polymer component to handle client side URL routing and view loading / management
We found that @neovici/cosmoz-page-router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.