mobx-utils
Advanced tools
Comparing version 6.0.5 to 6.0.6
@@ -0,0 +0,0 @@ import { IObservableArray } from "mobx"; |
@@ -0,0 +0,0 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { |
@@ -0,0 +0,0 @@ import { IDisposer } from "./utils"; |
@@ -0,0 +0,0 @@ import { isAction, autorun, action, isObservableArray, runInAction } from "mobx"; |
@@ -0,0 +0,0 @@ import { IComputedValueOptions } from "mobx"; |
@@ -0,0 +0,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -0,0 +0,0 @@ import { IComputedValueOptions } from "mobx"; |
@@ -0,0 +0,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -0,0 +0,0 @@ import { ObservableMap, IComputedValue } from "mobx"; |
@@ -0,0 +0,0 @@ var __assign = (this && this.__assign) || function () { |
@@ -0,0 +0,0 @@ declare type BabelDescriptor = PropertyDescriptor & { |
@@ -0,0 +0,0 @@ import { addHiddenProp } from "./utils"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { IObjectDidChange, IArrayDidChange, IMapDidChange } from "mobx"; |
@@ -0,0 +0,0 @@ import { observe, isObservableMap, isObservableObject, isObservableArray, values, entries, } from "mobx"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { computed, _isComputingDerivation } from "mobx"; |
@@ -128,4 +128,4 @@ export declare type PromiseState = "pending" | "fulfilled" | "rejected"; | ||
export const reject: <T>(reason: any) => IRejectedPromise & IBasePromiseBasedObservable<T>; | ||
function resolveBase<T>(value: T): IFulfilledPromise<T> & IBasePromiseBasedObservable<T>; | ||
function resolveBase<T>(value?: T): IFulfilledPromise<T | undefined> & IBasePromiseBasedObservable<T>; | ||
function resolveBase<T>(value: T): IFulfilledPromise<T> & IBasePromiseBasedObservable<T>; | ||
export const resolve: typeof resolveBase; | ||
@@ -132,0 +132,0 @@ export {}; |
@@ -136,5 +136,4 @@ import { action, extendObservable } from "mobx"; | ||
promise.case = caseImpl; | ||
var oldData = oldPromise && oldPromise.state === FULFILLED | ||
? oldPromise.value | ||
: undefined; | ||
var oldState = oldPromise ? oldPromise.state : undefined; | ||
var oldData = oldState === FULFILLED || oldState === PENDING ? oldPromise.value : undefined; | ||
extendObservable(promise, { | ||
@@ -141,0 +140,0 @@ value: oldData, |
@@ -0,0 +0,0 @@ import { IDisposer } from "./utils"; |
@@ -0,0 +0,0 @@ import { createAtom, _allowStateChanges } from "mobx"; |
@@ -0,0 +0,0 @@ import { IComputedValue } from "mobx"; |
@@ -0,0 +0,0 @@ import { getAtom, observe } from "mobx"; |
@@ -0,0 +0,0 @@ export interface ILazyObservable<T> { |
@@ -0,0 +0,0 @@ import { observable, action, _allowStateChanges } from "mobx"; |
@@ -0,0 +0,0 @@ export * from "./from-promise"; |
@@ -0,0 +0,0 @@ export * from "./from-promise"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { _isComputingDerivation } from "mobx"; |
@@ -0,0 +0,0 @@ export interface IStreamObserver<T> { |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import { IObservableArray, ObservableMap } from "mobx"; |
@@ -0,0 +0,0 @@ var __extends = (this && this.__extends) || (function () { |
@@ -0,0 +0,0 @@ import { IDisposer } from "./utils"; |
@@ -0,0 +0,0 @@ import { isAction, autorun, action, isObservableArray, runInAction } from "mobx"; |
@@ -0,0 +0,0 @@ export declare type IDisposer = () => void; |
@@ -0,0 +0,0 @@ export var NOOP = function () { }; |
{ | ||
"name": "mobx-utils", | ||
"version": "6.0.5", | ||
"version": "6.0.6", | ||
"description": "Utility functions and common patterns for MobX", | ||
@@ -67,5 +67,3 @@ "main": "mobx-utils.umd.js", | ||
"jest": { | ||
"transform": { | ||
"^.+\\.ts?$": "ts-jest" | ||
}, | ||
"preset": "ts-jest", | ||
"testRegex": "test/.*\\.(t|j)sx?$", | ||
@@ -72,0 +70,0 @@ "moduleFileExtensions": [ |
@@ -0,0 +0,0 @@ # MobX-utils |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
312518
53
6501