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.
@voidwalkers/void-client
Advanced tools
void-cli init
void-cli config print client
import VoidClient from '@voidwalkers/void-client';
const voidClient = new VoidClient({
project: {
slug: 'test',
tokenPublic: 'token'
}
});
await voidClient.auth.signUpCustom({ // Example payload. Depends on implementation
email: 'user@example.com',
password: 'test1234'
});
const user = await voidClient.auth.getCurrentUser();
console.log(user); // {id: 'UUID'}
await voidClient.auth.signOut(true); // Ignores missing session, false by default
await voidClient.auth.signInCustom({ // Example payload. Depends on implementation
email: 'user@example.com',
password: 'test1234'
});
import {registerHttpFunction} from '@voidwalkers/void-functions';
registerCallFunction('echo', (data, context) => ({context, data}));
void-cli deploy -F echo
const result = await voidClient.function('echo')({hello: 'world'});
console.log(result); // {context: {projectUser: {id: 'UUID'}}, data: {hello: 'world'}}
await voidClient.mongo.collection('items').deleteMany({type: 'box'});
await voidClient.mongo.collection('items').deleteOne({_id: 'MONGO_ID'});
await voidClient.mongo.collection('items').find({type: 'box'}, {
// limit, skip, sort, projection
});
await voidClient.mongo.collection('items').findOne({_id: 'MONGO_ID'});
await voidClient.mongo.collection('items').findOneAndUpdate({_id: 'MONGO_ID'}, {
$set: {
name: 'updated box'
}
}, {
// upsert, includeResultMetadata, projection, returnDocument
});
await voidClient.mongo.collection('items').insertMany([{
type: 'box',
name: 'box 1'
}, {
type: 'box',
name: 'box 2'
}]);
await voidClient.mongo.collection('items').insertOne({
type: 'box',
name: 'empty box'
});
await voidClient.mongo.collection('items').replaceOne({_id: 'MONGO_ID'}, {
type: 'bag',
name: 'a bag'
}, {
// upsert
});
await voidClient.mongo.collection('items').updateMany({_id: 'MONGO_ID'}, {
$set: {
name: 'updated box'
}
}, {
// upsert
});
await voidClient.mongo.collection('items').updateOne({_id: 'MONGO_ID'}, {
$set: {
name: 'updated box'
}
}, {
// upsert
});
voidClient.mongo.collection('items').watch({
type: 'box'
}, ({data, type}) => {
// type: "insert" | "update" | "delete"
// data: document involved
}, {
// let, projection
});
// Use database other than "default"
const candiesCollection = voidClient.mongo.db('another').collection('goods');
void-cli storage buckets create photos -t public
await voidClient.storage.bucket('photos').createFile(
blobOrStream,
'kitten-1.jpg',
['kittens', 'tiny'] // Optional, default []
); // https://void.void-walkers.com/projects/test/buckets/public/photos/kittens/tiny/kitten-1.jpg
await voidClient.storage.bucket('photos').deleteFile(
'kitten-1.jpg',
['kittens', 'tiny'] // Optional, default []
);
await voidClient.storage.bucket('photos').listFiles({
limit: 100, // Optional, default 50
offset: 200, // Optional, default 0
name: 'kitten-1.jpeg', // Optional, default null
prefix: ['kittens', 'tiny'] // Optional, default []
});
await voidClient.storage.bucket('photos').updateFile(
blobOrStream,
'kitten-1.jpg',
['kittens', 'tiny'] // Optional, default []
);
FAQs
Client lib for Void Walkers Void
The npm package @voidwalkers/void-client receives a total of 32 weekly downloads. As such, @voidwalkers/void-client popularity was classified as not popular.
We found that @voidwalkers/void-client 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
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.