Socket
Socket
Sign inDemoInstall

object-change-callsite

Package Overview
Dependencies
0
Maintainers
24
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    object-change-callsite

Determine the callsite of an object change using Proxies


Version published
Weekly downloads
39
decreased by-9.3%
Maintainers
24
Install size
5.53 kB
Created
Weekly downloads
 

Readme

Source

object-change-callsite

npm version build status downloads js-standard-style

Determine the callsite of an object change using Proxies.

Usage

var onChange = require('object-change-callsite')

var state = {}
state = onChange(state, function (attr, value, callsite) {
  console.log(`${attr} changed to ${value} at ${callsite}`)
})

state.foo = 'hello'
state.bar = 'world'

API

onChange(target, callback(attribute, value, callsite))

Detect changes on the target object.

License

MIT

Keywords

FAQs

Last updated on 12 Feb 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc