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

on-change

Package Overview
Dependencies
Maintainers
2
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 4.0.1 to 4.0.2

15

index.d.ts

@@ -257,3 +257,3 @@ export interface Options {

// Overload that returns an Array as path when `pathAsArray` option is true.
// Overload that returns a string array as path when `ignoreSymbols` and `pathAsArray` options are true.
<ObjectType extends Record<string, any>>(

@@ -263,2 +263,15 @@ object: ObjectType,

this: ObjectType,
path: string[],
value: unknown,
previousValue: unknown,
applyData: ApplyData
) => void,
options: Options & {ignoreSymbols: true; pathAsArray: true}
): ObjectType;
// Overload that returns an array as path when `pathAsArray` option is true.
<ObjectType extends Record<string, any>>(
object: ObjectType,
onChange: (
this: ObjectType,
path: Array<string | symbol>,

@@ -265,0 +278,0 @@ value: unknown,

2

package.json
{
"name": "on-change",
"version": "4.0.1",
"version": "4.0.2",
"description": "Watch an object or array for changes",

@@ -5,0 +5,0 @@ "license": "MIT",

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