
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.
A tiny observable library in JS using native ES5 getters and setters. 541 bytes minified and gzipped.
This library is a work in progress. Currently the observable functionality is limited to the first 'level' of an object, meaning nested properties do not have discrete watch functionality. It's up for debate whether it should support nesting of properties or not.
Lookout is packaged with UMD, so you can include it via require() or as a script tag in your markup.
npm i lookoutjs
var lookout = require('lookoutjs');
The library is lazy, i.e. it won't build listener queues or fire any callbacks until they are defined.
Simply pass the object you want to observe to Lookout, and then call watch() on a property to define a callback function to fire when that value changes.
// Create observable object
var user = lookout({
firstName: 'Eric',
lastName: 'Bailey',
meta: {
birthday: '1992-02-14',
height: 73
}
});
// Assign callbacks to keys in the object
user.watch('firstName', function(val){
console.log('First name changed to '+val);
});
user.watch('firstName', function(val){
console.log('You can assign more than one listener callback function to a value');
});
user.watch('meta', function(val){
console.log('Meta data updated!');
});
// Change key values
user.firstName = 'Ryan';
user.meta = {
birthday: '1990-05-08',
height: 72
};
user.meta.height = 65;
// Result
// 'First name changed to Ryan'
// 'You can assign more than...'
// 'Meta data updated!'
// 'Meta data updated!'
FAQs
A tiny observable library in JS. WIP.
The npm package lookoutjs receives a total of 1 weekly downloads. As such, lookoutjs popularity was classified as not popular.
We found that lookoutjs 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.