
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
xolabot-sdk
Advanced tools
$ npm install xolabot-sdk xolabot-scripts
src/index.js
.package.json
.{
"scripts": {
"start": "xolabot-scripts start",
"build": "xolabot-scripts build"
}
}
$ npm start
This will spin up a development server and serve your module from: http://localhost:3000/main.js
.
You can use that address to register a plugin in App Store server.
In src/index.js
:
import Module from 'xolabot-sdk';
class MyModule extends Module {
constructor(...args) {
super('my_module_name', ...args);
// Register bus event listeners here...
}
}
// Required.
// This is how module will be registered with Xolabot.
MyModule.load();
Event bus is available as an instance property: this.bus
.
/**
* @param {Object} event
* @param {string} event.channel
* @param {string} event.type
* @param {Function} listener
* @returns {Function} Function for unsubscribing from the event.
*/
this.bus.on(event, listener);
/**
* @param {Object} event
* @param {string} event.channel
* @param {string} event.type
* @param {Function} listener
* @returns {Function} Function for unsubscribing from the event.
*/
this.bus.once(event, listener);
/**
* @param {Object} event
* @param {string} event.channel
* @param {string} event.type
* @param {Function} listener
* @returns {Function} Function for unsubscribing from the event.
*/
this.bus.off(event, listener);
Available as an instance property: this.api
.
See official documentation.
/**
* @param state {Object}
*/
this.saveState(state);
FAQs
XolaBot SDK
The npm package xolabot-sdk receives a total of 0 weekly downloads. As such, xolabot-sdk popularity was classified as not popular.
We found that xolabot-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.