
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
A simple demo of mikasa using iTunes Api: Demo
A simple wrapper for server side rendering isomorphic react. It uses Koa.js as webserver, Redux and React-router for routing.
Parameters | Type | Description |
---|---|---|
port | Number | The port that webserver will run on |
routes | Array | An Array of Route Objects |
static | Object | An configuration object |
layout | React Component | The React Component that will be used as layout |
store | Object | An Object containing the redux reducer and the initialState |
promises | Array | An array of promises that need to be resolved before any render from server side |
Routes are based on routes from react-router, they must be specified as an array of objects that must contain the following attributes.
Parameters | Type | Description |
---|---|---|
path | String | The route path, for example: /about |
exact | Boolean | Exact parameter from react-router |
component | React Component | The component that will be rendered for that route |
loadData | Function | A function used for doing asynchronus actions before the render of the component. It must return a promise or an array of promises. The function takes three parameters: The context parameter from koa that contains the request, a shared object, and the redux store object for the dispatches before the render. |
The static object must contain the following attributes.
Parameters | Type | Description |
---|---|---|
path | String | The path that will be used in browser, for exmaple: /public |
local | String | The path to folder containing the static files. |
options | Object | This object is used as options for koa-static. example: { gzip: true } |
The store object is used to create the redux storage on the backend. It must contain the following attributes:
Parameters | Type | Description |
---|---|---|
reducer | Function | It can be a simple reducer or a combined reducer. |
initialState | Object | This will be used as initialState for the redux. |
import initialState from './store/default'
import reducer from './reducers'
import Layout from './components/layout'
const mikasa = require('mikasa')
mikasa({
port: 3002,
routes: routes,
static: {
path: '/public',
local: './static',
options: {
gzip: true,
}
},
layout: Layout,
store: {
initialState: initialState,
reducer: reducer,
},
promises: [],
})
}
For the the browser usage import mikasa/browser. The configuration object is similar to the server one and it must contain the following attributes:
Parameters | Type | Description |
---|---|---|
reducer | Function | It can be a simple reducer or a combined reducer. |
routes | Array | An Array of Route Objects. |
layout | React Component | The React Component that will be used as layout. |
import mikasa from 'mikasa/browser'
import reducer from '/reducers'
import routes from '/routes'
import layout from '/components/layout'
mikasa({
reducer: reducer,
routes: routes,
layout: layout,
})
FAQs
Framework for rendering react server-side
We found that mikasa 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.