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

object-observer

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-observer - npm Package Compare versions

Comparing version 4.7.1 to 4.7.2

18

dist/object-observer.d.ts

@@ -1,8 +0,2 @@

export enum ChangeType {
INSERT = 'insert',
UPDATE = 'update',
DELETE = 'delete',
REVERSE = 'reverse',
SHUFFLE = 'shuffle'
}
export type ChangeType = 'insert' | 'update' | 'delete' | 'reverse' | 'shuffle';

@@ -31,3 +25,3 @@ /**

abstract unobserve<T>(...observer: Observer[]): T;
abstract unobserve(...observer: Observer[]): void;
}

@@ -73,15 +67,15 @@

* create `Observable` from the target and starts observation
* - important: the type `T` is NOT preserved, except its shape
* - important: the type `T` is NOT preserved, beside its shape
* @param target target to be observed, turned into `Observable` via cloning
* @param options `ObserverOptions` options
*/
observe<T>(target: T, options: ObserverOptions): Observable & T;
observe<T>(target: T, options?: ObserverOptions): Observable & T;
/**
* un-observes the `Observable`, if any, returning the original undelying plain object
* un-observes the `Observable`, returning the original undelying plain object
* @param target target to be un-observed
*/
unobserve<T>(target: (Observable & T) | unknown): T;
unobserve(target: Observable): void;
disconnect(): void;
}
{
"name": "object-observer",
"version": "4.7.1",
"version": "4.7.2",
"description": "object-observer utility provides simple means to (deeply) observe specified object/array changes; implemented via native Proxy; changes delivered in a synchronous way",

@@ -5,0 +5,0 @@ "keywords": [

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