Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@casual-simulation/aux-vm
Advanced tools
A set of abstractions and common utilities required to run an AUX on any platform.
npm install @casual-simulation/aux-vm
import { BaseSimulation, AuxVM } from '@casual-simulation/aux-vm';
// Simulations are wrappers for an
// AuxVM + AuxChannel combo.
// They make all the capabilities of an AUX easy to access
// and understand.
export class MySimulation extends BaseSimulation {
constructor(
id: string, // The ID of the
config: { isBuilder: boolean; isPlayer: boolean }
) {
super(id, config, config => new MyAuxVM(config));
}
}
// An AUX VM is in charge of separating
// the consumer from the AUX Environment.
// Basically its a security barrier between an AUX and the consumer code.
// On Web Browsers, this is usually implemented via web workers and sandboxed iframes.
// On Node.js, this is implemented via a custom script sandbox.
// Below, you can implement your own VM.
export class MyAuxVM implements AuxVM {
// TODO: Implement
}
V0.11.14
Breaking Changes
auxStackable
and replaced it with auxPositioningMode
.
auxPositioningMode
has two possible values:
stack
- Indicates that the bot will stack on top of other bots (default)absolute
- Indicates that the bot will ignore other bots when positioning.createTemp()
function.
{ space: "value" }
mod.createTemp()
you should use create({ space: "tempLocal" })
.cookie
bot. It has been replaced with the local
space.addToContextMod()
removeFromContextMod()
addToMenuMod()
removeFromMenuMod()
setPositionMod()
from()
getID()
function to achieve the same functionality:{ auxCreator: getID(bot) }
createdBy()
filter function to byCreator()
.Improvements
space
tag which indicates where a bot will be stored.
shared
- This space is shared among multiple users and is persistent. This is the default space for bots if not specified.tempLocal
- This space is not shared and is cleared every time the browser refreshes.local
- This space is kept on your device and is persistent.{ space: "value" }
mod.
create({ space: "local" })
will create a new bot in the local
space.tempLocal
bot will produce another tempLocal
bot. You can of course override this using a mod.bySpace()
filter function.
getBots(bySpace("local"))
will get all the bots in the local
space.getBots(byTag("space", value))
.getID(bot)
gets the ID of a bot. If given a string, then that will be returned instead.getJSON(data)
gets a JSON string for the given data.Bug Fixes
FAQs
A set of abstractions required to securely run an AUX.
The npm package @casual-simulation/aux-vm receives a total of 254 weekly downloads. As such, @casual-simulation/aux-vm popularity was classified as not popular.
We found that @casual-simulation/aux-vm 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.