Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Bletcd is a minimalistic etcd client with convenient functionality for watching for changes.
var client = bletcd({
url: 'http://127.0.0.1:4001',
});
var watcher = client.watcher('test/other-key');
watcher.on('error', function(err) {
console.error('Watch error:', err);
watcher.stop();
});
watcher.on('change', function(op) {
console.log('Notified of change:', op);
});
client.put('test/other-key', 'a-value', function(err, response) {
if (err) {
console.error('Failed to write value', err);
watcher.stop();
return;
}
console.log('Wrote a value to etcd');
client.get('test/other-key', function(err, response) {
if (err) {
console.error('Failed to fetch value', err);
}
else {
console.log('Successfully fetched the key value:', response.node.value);
}
client.delete('test/other-key', function(err) {
if (err) {
console.error('Failed to delete value:', err);
}
else {
console.log('Successfully deleted value');
}
watcher.stop();
});
});
});
Output:
Notified of change: { action: 'set',
node:
{ key: '/test/other-key',
value: 'a-value',
modifiedIndex: 537,
createdIndex: 537 } }
Wrote a value to etcd
Successfully fetched the key value: a-value
Notified of change: { action: 'delete',
node: { key: '/test/other-key', modifiedIndex: 538, createdIndex: 537 },
prevNode:
{ key: '/test/other-key',
value: 'a-value',
modifiedIndex: 537,
createdIndex: 537 } }
Successfully deleted value
FAQs
A minimalistic etcd client
We found that bletcd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.