
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
snap-context
Advanced tools
Manage context with ease
var Context = require('proto-context');
var ctx = new Context();
ctx.set('value', 'first version'); // console.log(ctx.get('value')) -> 'first version'
ctx.snapshot();
ctx.set('value', 'second version'); // console.log(ctx.get('value')) -> 'second version'
ctx.restore();
console.log(ctx.get('value')); // -> 'first version'
Creates context object with methods:
Sets key for value in current context.
Gets value for key in current (or previous) context.
Creates new Object and add it to ctx prototype.
Removes created Object from prototype chain of ctx.
Benchmarking set -> snapshot -> get -> restore pattern:
Performance
1,133,011 op/s » Stack on array
668,539 op/s » Stack on list
645 op/s » Stack on object.prototype
FAQs
Snapshot and restore context
We found that snap-context 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.