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

realar

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realar - npm Package Compare versions

Comparing version 0.5.18 to 0.5.19

9

build/index.d.ts

@@ -38,5 +38,8 @@ import { FC } from 'react';

declare function signal<T = void>(init: T): Signal<T>;
declare function ready<T = void>(): Signal<T, Ensurable<T>>;
declare function ready<T = void>(init: T): Signal<T>;
declare function ready<T = void>(init: T, to: T): Signal<void, T>;
declare type SignalReset = {
reset(): void;
};
declare function ready<T = void>(): Signal<T, Ensurable<T>> & SignalReset;
declare function ready<T = void>(init: T): Signal<T> & SignalReset;
declare function ready<T = void>(init: T, to: T): Signal<void, T> & SignalReset;
declare function wrap<T, K, P>(target: Signal<T, K>, set: () => T, get: (data: K) => P): Signal<void, P>;

@@ -43,0 +46,0 @@ declare function wrap<T, K, P, M = T>(target: Signal<T, K>, set: (data: M) => T, get: (data: K) => P): Signal<M, P>;

@@ -94,2 +94,7 @@ "use strict";

};
fn.reset = () => {
resolve = def_promisify(fn);
resolved = 0;
set([init]);
};
def_format(fn, () => get()[0], fn, 1);

@@ -96,0 +101,0 @@ resolve = def_promisify(fn);

{
"name": "realar",
"version": "0.5.18",
"version": "0.5.19",
"description": "React state manager",

@@ -88,3 +88,3 @@ "repository": {

},
"gitHead": "e484d617e971267876f5961f14906c4e8c33fc5c"
"gitHead": "52f2b0b5de759f10eb5b3411618191bb4c4e1af5"
}

@@ -149,5 +149,9 @@ import React, { Context, FC } from 'react';

function ready<T = void>(): Signal<T, Ensurable<T>>;
function ready<T = void>(init: T): Signal<T>;
function ready<T = void>(init: T, to: T): Signal<void, T>;
type SignalReset = {
reset(): void;
};
function ready<T = void>(): Signal<T, Ensurable<T>> & SignalReset;
function ready<T = void>(init: T): Signal<T> & SignalReset;
function ready<T = void>(init: T, to: T): Signal<void, T> & SignalReset;
function ready(init?: any, to?: any) {

@@ -167,3 +171,7 @@ let resolved = 0;

};
fn.reset = () => {
resolve = def_promisify(fn);
resolved = 0;
set([init]);
};
def_format(fn, () => get()[0], fn, 1);

@@ -439,4 +447,3 @@ resolve = def_promisify(fn);

if (fn) {
if (context_unsubs)
context_unsubs = context_unsubs.filter((i: any) => i !== fn);
if (context_unsubs) context_unsubs = context_unsubs.filter((i: any) => i !== fn);
return fn;

@@ -443,0 +450,0 @@ }

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