Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@casual-simulation/aux-vm-client
Advanced tools
A set of utilities required to securely run an AUX as a client.
A set of utilities required to run an AUX as a client.
npm install @casual-simulation/aux-vm-client
import { RemoteAuxChannel } from '@casual-simulation/aux-vm-client';
import { AuxUser, AuxConfig } from '@casual-simulation/aux-vm';
export class MyCustomChannel extends RemoteAuxChannel {
constructor(defaultHost: string, user: AuxUser, config: AuxConfig) {
super(defaultHost, user, config, {});
}
// Override the _handleServerEvents function
// to handle events sent from a remote device.
protected async _handleServerEvents(events: DeviceAction[]) {
await super._handleServerEvents(events);
let filtered = events.filter(
e => e.device.roles.indexOf(SERVER_ROLE) >= 0
);
let mapped = <BotAction[]>filtered.map(e => e.event);
if (filtered.length > 0) {
await this.sendEvents(mapped);
}
}
}
V0.11.11
Breaking Changes
create()
and createTemp()
to automatically set auxCreator
to the current this
bot.
create()
no longer takes a bot/bot ID as the first parameter. Instead, you need to use the from()
function to set the creator ID.create(from(bot))
.()
at the end.
()
to the end of a tag does nothing special.@
symbol.player.toast("Hi!")
becomes @player.toast("Hi!")
.mod()
to applyMod()
.mod.addToMenu()
to addToMenuMod()
.mod.removeFromMenu()
to removeFromMenuMod()
.mod.addToContext()
to addToContextMod()
.mod.removeFromContext()
to removeFromContextMod()
.mod.setPosition()
to setPositionMod()
.mod.subtract()
to subtractMods()
.mod.import()
to getMod()
.mod.export()
.Improvements
creator
variable to scripts and formulas which gets the bot that created the this
bot.
creator
is null if the current bot has no creator.raw
variable to scripts and formulas which gets direct access to the this
bot's tag values.
tags
variable but does not do any pre-processing on the tag value. This means you will get formula scripts back instead of the calculated formula values.tags
variable to handle setting tag values on it.
tags.name = "joe"
or bot.tags.myContext = true
.raw
variable.getBots()
and getBot()
to support setting tag values on their tags
property.
myBot.tags.name = "bob"
.that
variable.data
variable which equals that
.player.hideHtml()
function which hides the HTML modal.auxContextInventoryPannableMinX
, auxContextInventoryPannableMaxX
, auxContextInventoryPannableMinY
, auxContextInventoryPannableMaxY
.._
character from its return.FAQs
A set of utilities required to securely run an AUX as a client.
The npm package @casual-simulation/aux-vm-client receives a total of 139 weekly downloads. As such, @casual-simulation/aux-vm-client popularity was classified as not popular.
We found that @casual-simulation/aux-vm-client 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.