
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
observer-data
Advanced tools
Observer data、defineProperty
npm i observer-data --save
let ObserverData = require('observer-data');//cjs
//let ObserverData = require('xxx/node_modules/observer-data.umd.js');//umd
//let ObserverData = require('xxx/node_modules/observer-data.js');//cmd
//<script type="text/javascript" src="xxx/node_modules/observer-data.js"></script>//script
let observerData = new ObserverData();
observerData.data = data;
observerData.cb = function(newVal, key, oldVal){}
observerData.run();
type:function
description:为新数据绑定监听事件
example :
let data = {a:1}...
data.$set('b',2);//新绑定了一个b属性
type:function
description:删除属性清除监听并触发回调
example :
let data = {a:1,b:2}...
data.$del('b');//解除b属性的绑定并且删除触发回调。
FAQs
Observer data、defineProperty
The npm package observer-data receives a total of 2 weekly downloads. As such, observer-data popularity was classified as not popular.
We found that observer-data 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.