Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Import Mase JS using CDN.
import { MaseJSInterpreter } from 'https://cdn.jsdelivr.net/npm/masejs';
import { MaseJSInterpreter } from 'https://cdn.jsdelivr.net/npm/masejs@latest';
Install Mase JS using npm and node.
npm install masejs
Import Mase JS definitions from MaseJSInterpreter
.
index.js
import { MaseJSInterpreter } from 'masejs';
MaseJSInterpreter.interpret(masejs);
Use the tree structure in your Javascript. That's it 🎉.
script.js
import { MaseJSInterpreter } from 'https://cdn.jsdelivr.net/npm/masejs@latest';
const masejs = {
div: {
center: 'true',
class: 'button-container',
styles: {
height: '100%',
width: '100%',
inset: '0px',
position: 'fixed',
},
button: [
{
value: 'Click me',
styles: {
color: 'white',
'background-color': '#000000',
outline: 'none',
border: 'none',
height: '38px',
width: '88px',
'border-radius': '5px',
cursor: 'pointer',
},
class: 'button',
id: 'button',
events: {
click: () => alert('Button clicked!')
},
}
]
}
};
MaseJSInterpreter.interpret(masejs);
A basic form with MaseJS.
A simple sidebar with MaseJS.
Using the library with Material UI.
Check out Mase JS Examples for a curated of list of projects built using masejs.
Licensed under the MIT License, Copyright © 2024-present masejs.
See LICENSE for more information.
FAQs
Mase JS is a new way to write HTML entirely in your JavaScript.
The npm package masejs receives a total of 0 weekly downloads. As such, masejs popularity was classified as not popular.
We found that masejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.