Comparing version 0.5.32 to 0.5.33
@@ -145,2 +145,3 @@ import { FC } from 'react'; | ||
var from: typeof ready_from; | ||
var resolved: typeof ready_resolved; | ||
} | ||
@@ -159,4 +160,6 @@ declare function ready<T = void>(init: T): ReadySignal<T>; | ||
var from: typeof ready_from; | ||
var resolved: typeof ready_resolved; | ||
} | ||
declare function ready_from<T>(source: Reactionable<T>): ReadySignal<T>; | ||
declare function ready_resolved<T>(value: T): ReadySignal<T>; | ||
declare function stop_signal(): StopSignal; | ||
@@ -163,0 +166,0 @@ declare function loop(body: () => Promise<any>): () => void; |
@@ -108,2 +108,3 @@ "use strict"; | ||
ready.from = ready_from; | ||
ready.resolved = ready_resolved; | ||
function ready_from(source) { | ||
@@ -115,2 +116,7 @@ const fn = source[0] || source; | ||
} | ||
function ready_resolved(value) { | ||
const r = ready(value); | ||
r(value); | ||
return r; | ||
} | ||
function stop_signal() { | ||
@@ -117,0 +123,0 @@ is_stop_signal = 1; |
{ | ||
"name": "realar", | ||
"version": "0.5.32", | ||
"version": "0.5.33", | ||
"description": "React state manager", | ||
@@ -88,3 +88,3 @@ "repository": { | ||
}, | ||
"gitHead": "39f691a82c172cdc450fb02f4450398718e85db5" | ||
"gitHead": "4659c14ddebc94135dbf9cb5c3c85ad0f837274e" | ||
} |
@@ -300,2 +300,3 @@ import React, { Context, FC } from 'react'; | ||
ready.from = ready_from; | ||
ready.resolved = ready_resolved; | ||
@@ -310,2 +311,8 @@ function ready_from<T>(source: Reactionable<T>): ReadySignal<T> { | ||
function ready_resolved<T>(value: T): ReadySignal<T> { | ||
const r = ready(value); | ||
r(value); | ||
return r; | ||
} | ||
function stop_signal(): StopSignal { | ||
@@ -312,0 +319,0 @@ is_stop_signal = 1; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77070
1429