
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
yoga-layout-wasm
Advanced tools
yoga-layout webassembly module, for browser and node. fallback to asm.js in non-webassembly environment
$ npm i yoga-layout-wasm --save
import Yoga from 'yoga-layout-wasm'
function test () {
const Node = Yoga.Node
const root = Node.create();
root.setWidth(500);
root.setHeight(300);
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
const node1 = Node.create();
node1.setWidth(100);
node1.setHeight(100);
const node2 = Node.create();
node2.setWidth(100);
node2.setHeight(100);
root.insertChild(node1, 0);
root.insertChild(node2, 1);
root.calculateLayout(500, 300, yoga.DIRECTION_LTR);
console.log(root.getComputedLayout());
// {left: 0, top: 0, width: 500, height: 300}
console.log(node1.getComputedLayout());
// {left: 150, top: 0, width: 100, height: 100}
console.log(node2.getComputedLayout());
// {left: 250, top: 0, width: 100, height: 100}
}
const wasmFilePath = 'node_modules/yoga-layout-wasm/dist/yoga.wasm'
Yoga.init(wasmFilePath).then(test)
asm.js module// *.js
import Yoga from 'yoga-layout-wasm/asm'
Yoga.init().then(yoga => {
// ... test()
})
// ... webpack.config.js
{
test: /\.(wasm)$/,
type: 'javascript/auto',
use: [
{
loader: 'file-loader',
options: {
name: '[path][name].[md5:hash:base64:6].[ext]',
},
},
],
}
// ...
// *.js
typeof WebAssembly === 'undefined' ?
import('yoga-layout-wasm/asm')
.then(mod => mod.default.init())
.then(test) :
import('yoga-layout-wasm')
.then(mod => mod.default.init(require('yoga-layout-wasm/dist/yoga.wasm')))
.then(test);
$ npm run example:node
$ npm run example:html
$ npm run example:node:asm
FAQs
yoga-layout webassembly module
The npm package yoga-layout-wasm receives a total of 9 weekly downloads. As such, yoga-layout-wasm popularity was classified as not popular.
We found that yoga-layout-wasm 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.