Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@miniflare/runner-vm
Advanced tools
VM script runner module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
@miniflare/runner-vm
VM script runner module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers.
import { VMScriptRunner } from "@miniflare/runner-vm";
const runner = new VMScriptRunner();
// Pass `console` into sandbox
const globalScope = { console };
// Run regular script
const blueprint1 = {
code: 'console.log("hello")',
filePath: "test.js",
};
await runner.run(globalScope, blueprint1); // hello
// Run module script
const blueprint2 = {
code: 'import thing from "./thing.js"; console.log(thing);',
filePath: "test.mjs",
};
const moduleRules = [{ type: "ESModule", include: /\.js$/ }];
// Assuming thing.js contains `"export default "thing";`...
await runner.run(globalScope, blueprint2, moduleRules); // thing
// Run module script with additional module
const blueprint3 = {
code: `import additional from "__ADDITIONAL"; console.log(additional);`,
filePath: "test.mjs",
};
const modules = {
__ADDITIONAL: { default: "stuff" },
};
await runner.run(globalScope, blueprint3, moduleRules, modules); // stuff
FAQs
VM script runner module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
The npm package @miniflare/runner-vm receives a total of 33,822 weekly downloads. As such, @miniflare/runner-vm popularity was classified as popular.
We found that @miniflare/runner-vm demonstrated a healthy version release cadence and project activity because the last version was released less than 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.