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

fluids

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluids - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

1

dist/cjs/index.d.ts

@@ -13,2 +13,3 @@ export { hasFluidValue, getFluidValue, getFluidConfig, setFluidConfig, addFluidObserver, };

/** Add an observer to a fluid object. Returns an unsubscribe function if the target is a fluid object, otherwise undefined. */
declare function addFluidObserver<E extends FluidEvent>(target: FluidValue<any, E>, observer: FluidObserver<E>): () => void;
declare function addFluidObserver(target: object, observer: FluidObserver): (() => void) | undefined;

@@ -15,0 +16,0 @@ export interface ChangeEvent<T = any> {

1

dist/cjs/index.js

@@ -25,3 +25,2 @@ "use strict";

exports.setFluidConfig = setFluidConfig;
/** Add an observer to a fluid object. Returns an unsubscribe function if the target is a fluid object, otherwise undefined. */
function addFluidObserver(target, observer) {

@@ -28,0 +27,0 @@ var config = getFluidConfig(target);

@@ -13,2 +13,3 @@ export { hasFluidValue, getFluidValue, getFluidConfig, setFluidConfig, addFluidObserver, };

/** Add an observer to a fluid object. Returns an unsubscribe function if the target is a fluid object, otherwise undefined. */
declare function addFluidObserver<E extends FluidEvent>(target: FluidValue<any, E>, observer: FluidObserver<E>): () => void;
declare function addFluidObserver(target: object, observer: FluidObserver): (() => void) | undefined;

@@ -15,0 +16,0 @@ export interface ChangeEvent<T = any> {

@@ -20,3 +20,2 @@ var $config = Symbol.for('FluidValue:config');

}
/** Add an observer to a fluid object. Returns an unsubscribe function if the target is a fluid object, otherwise undefined. */
function addFluidObserver(target, observer) {

@@ -23,0 +22,0 @@ var config = getFluidConfig(target);

{
"name": "fluids",
"version": "0.1.8",
"version": "0.1.9",
"description": "Glue layer for reactivity",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index",

@@ -42,2 +42,12 @@ const $config = Symbol.for('FluidValue:config')

/** Add an observer to a fluid object. Returns an unsubscribe function if the target is a fluid object, otherwise undefined. */
function addFluidObserver<E extends FluidEvent>(
target: FluidValue<any, E>,
observer: FluidObserver<E>
): () => void
function addFluidObserver(
target: object,
observer: FluidObserver
): (() => void) | undefined
function addFluidObserver(target: object, observer: FluidObserver) {

@@ -44,0 +54,0 @@ const config = getFluidConfig(target)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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