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.
@oada/client
Advanced tools
A lightweight client tool for interacting with an OADA-compliant server
This module is available through npm. To install the module, simply run:
$ npm install @oada/client
const client = require('@oada/client');
const connection = await client.connect({
domain: 'api.oada.com', // domain of OADA server
token: 'abc', // token
});
const response = await connection.get({
path: '/bookmarks/test',
timeout: 1000, // timeout in milliseconds (optional)
});
const dataTree = {
bookmarks: {
_type: 'application/vnd.oada.bookmarks.1+json',
_rev: 0,
thing: {
_type: 'application/json',
_rev: 0,
abc: {
'*': {
_type: 'application/json',
_rev: 0,
},
},
},
},
};
const response = await connection.get({
path: '/bookmarks/thing',
tree: dataTree,
timeout: 1000, // timeout in milliseconds (optional)
});
A watch request can be issued by sending a watch
request as follows.
// Resolves once the watch is established
const { changes } = await connection.watch({
path: '/bookmarks/test',
rev: 1, // optional
timeout: 1000, // timeout in milliseconds (optional)
});
// Async iterator for all changes since the watch was started (or since `rev`)
for await (const change of changes) {
console.log(change);
}
To unwatch a resource, use the unwatch
request.
const response = await connection.unwatch(requestId);
const response = await connection.put({
path: '/bookmarks/test',
data: { thing: 'abc' },
contentType: 'application/json',
timeout: 1000, // timeout in milliseconds (optional)
});
const dataTree = {
bookmarks: {
_type: 'application/vnd.oada.bookmarks.1+json',
_rev: 0,
thing: {
_type: 'application/json',
_rev: 0,
abc: {
'*': {
_type: 'application/json',
_rev: 0,
},
},
},
},
};
const response = await connection.put({
path: '/bookmarks/thing/abc/xyz/zzz',
tree: dataTree,
data: { test: 'something' },
timeout: 1000, // timeout in milliseconds (optional)
});
const response = await connection.head({
path: '/bookmarks/test',
timeout: 1000, // timeout in milliseconds (optional)
});
FAQs
A lightweight client tool to interact with an OADA-compliant server
The npm package @oada/client receives a total of 26 weekly downloads. As such, @oada/client popularity was classified as not popular.
We found that @oada/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
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.