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.
A set of tools to integrate with the Cisco Telepresence Endpoint APIs in JavaScript.
const jsxapi = require('jsxapi');
jsxapi
.connect('wss://host.example.com', {
username: 'admin',
password: 'password',
})
.on('error', console.error)
.on('ready', async (xapi) => {
const volume = await xapi.status.get('Audio Volume');
console.log(`volume is: ${volume}`);
xapi.close();
});
const jsxapi = require('jsxapi');
jsxapi
.connect('ssh://host.example.com', {
username: 'admin',
password: 'password',
})
.on('error', console.error)
.on('ready', async (xapi) => {
const volume = await xapi.status.get('Audio Volume');
console.log(`volume is: ${volume}`);
xapi.close();
});
The aim of the new style API is to improve readability, while also being more suited towards automatic type generation and auto-completion.
// Set up a call
xapi.Command.Dial({ Number: 'user@example.com' });
// Fetch volume and print it
xapi.Status.Audio.Volume
.get()
.then((volume) => { console.log(volume); });
// Set a configuration
xapi.Config.SystemUnit.Name.set('My System');
// Listen to feedback
const off = xapi.Event.Standby.on((event) => {
// ...
});
// De-register feedback
off();
// Set up a call
xapi.command('Dial', { Number: 'user@example.com' });
// Fetch volume and print it
xapi.status
.get('Audio Volume')
.then((volume) => { console.log(volume); });
// Set a configuration
xapi.config.set('SystemUnit Name', 'My System');
// Listen to feedback
const off = xapi.event.on('Standby', (event) => {
// ...
});
// De-register feedback
off();
The full API documentation can be built by running npm install
in a jsxapi
module directory. Documentation will be located under docs/
can then be opened
in a browser.
More specifically:
mkdir tmp
cd tmp
npm install jsxapi
cd node_modules/jsxapi
npm install
Then open ./docs/index.html
.
Find more information regarding Cisco's Room Devices over at developer.cisco.com or the TelePresence and Video support forums.
Questions about the xAPI, integrations and customizations? Using Webex Teams join the xAPI Devs space community for realtime support by clicking this link and entering your Webex Teams-registered e-mail address at the prompt.
Making a release is quite simple:
npm help semver
).npm version
with the appropriate version bump.npm publish
to push the package version to the registry.v5.1.1 (2021-11-03)
FAQs
JavaScript bindings for XAPI
The npm package jsxapi receives a total of 0 weekly downloads. As such, jsxapi popularity was classified as not popular.
We found that jsxapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
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.