Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

on-change

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

on-change - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

index.d.ts

7

index.js

@@ -7,3 +7,3 @@ 'use strict';

module.exports = (object, onChange) => {
const onChange = (object, onChange) => {
let inApply = false;

@@ -53,3 +53,3 @@ let changed = false;

const value = Reflect.get(target, property, receiver);
if (isPrimitive(value)) {
if (isPrimitive(value) || property === 'constructor') {
return value;

@@ -128,1 +128,4 @@ }

};
module.exports = onChange;
module.exports.default = onChange;
{
"name": "on-change",
"version": "1.0.0",
"version": "1.1.0",
"description": "Watch an object or array for changes",

@@ -16,7 +16,8 @@ "license": "MIT",

"scripts": {
"test": "xo && ava",
"test": "xo && ava && tsd-check",
"bench": "matcha bench/bench.js"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -42,4 +43,5 @@ "keywords": [

"matcha": "^0.7.0",
"xo": "^0.23.0"
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc