
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.
senselogic-reactor
Advanced tools
Functional component preprocessor for React, Preact and Solid.
Functional component preprocessor for React, Preact and Solid.
Allows to use a Svelte-like syntax for :
function Counter()
{
let $count = 0;
let $doubleCount := $count * 2;
function increment()
{
$count = $count + 1;
$count = $count + 1;
}
return (
<button type="button" onClick={increment}>
{$count} / {$doubleCount}
</button>
);
}
function FrameworkList()
{
let frameworkArray = [
{ name: 'React', url: 'https://reactjs.org' },
{ name: 'Preact', url: 'https://preactjs.com' },
{ name: 'Solid', url: 'https://solidjs.com' },
{ name: 'Svelte', url: 'https://svelte.dev' }
];
let frameworkCount = frameworkArray.length;
return (
<>
{#if frameworkCount > 0}
<p>Framework count : {frameworkCount}.</p>
{/if}
{#if frameworkCount == 1}
<p>{frameworkCount} framework.</p>
{:else}
<p>{frameworkCount} frameworks.</p>
{/if}
{#if frameworkCount == 0}
<p>No framework.</p>
{:else}
{#if frameworkCount == 1}
<p>One framework.</p>
{:else}
{#if frameworkCount == 2}
<p>Two frameworks.</p>
{:else}
<p>Many frameworks.</p>
{/if}
{/if}
{/if}
{#if frameworkCount == 0}
<p>No framework.</p>
{:else if frameworkCount == 1}
<p>One framework.</p>
{:else if frameworkCount == 2}
<p>Two frameworks.</p>
{:else}
<p>Many frameworks.</p>
{/if}
<ul>
{#for {name, url}, index of frameworkArray}
<li key={index}>
<a target="_blank" href={url}>
{index + 1} : {name}
</a>
</li>
{/for}
</ul>
</>
);
}
{
framework: 'react' // or 'preact' or 'solid'
}
package.json
{
"devDependencies": {
"senselogic-reactor": "^0.1.15"
},
}
webpack.config.js
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: path.resolve(__dirname, './src/index.js'),
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader', { loader: 'senselogic-reactor', options: { framework: 'react' } }],
},
],
},
resolve: {
extensions: ['*', '.js', '.jsx'],
},
output: {
path: path.resolve(__dirname, './dist'),
filename: 'bundle.js',
},
plugins: [new webpack.HotModuleReplacementPlugin()],
devServer: {
static: path.resolve(__dirname, './dist'),
hot: true,
},
};
{
framework: 'react' // or 'preact' or 'solid'
include: './src/**/*.jsx'
}
package.json
{
"devDependencies": {
"senselogic-reactor": "^0.1.15",
"senselogic-reactor-vite": "^0.1.10"
},
}
vite.config.js
import { defineConfig } from 'vite';
import reactor from 'senselogic-reactor-vite';
import preact from '@preact/preset-vite';
export default defineConfig({
plugins: [
reactor( { framework: 'preact', include: './src/**/*.jsx' } ),
preact()
]
});
0.1
Eric Pelzer (ecstatic.coder@gmail.com).
This project is licensed under the GNU Lesser General Public License version 3.
See the LICENSE.md file for details.
FAQs
Functional component preprocessor for React, Preact and Solid.
The npm package senselogic-reactor receives a total of 0 weekly downloads. As such, senselogic-reactor popularity was classified as not popular.
We found that senselogic-reactor 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.