@proscom/prostore
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -82,3 +82,3 @@ import { Observable, Subject } from 'rxjs'; | ||
performRequest(variables: Vars, options: Options): IObservableData<Data>; | ||
loadData(variables: Vars, options?: any): Promise<IRequestState<Vars, Data>>; | ||
loadData(variables: Vars, options?: Options): Promise<IRequestState<Vars, Data>>; | ||
mapRequestResult: (variables: Vars, options: Options) => (data: Data) => IRequestState<Vars, Data>; | ||
@@ -85,0 +85,0 @@ handleError: (error: any) => Partial<IRequestState<Vars, Data>>; |
@@ -121,3 +121,2 @@ var __assign = (this && this.__assign) || function () { | ||
RequestStore.prototype.loadData = function (variables, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -135,3 +134,3 @@ var promise; | ||
.toPromise(); | ||
this.variables$.next({ variables: variables, options: options }); | ||
this.variables$.next({ variables: variables, options: options || {} }); | ||
this.registerSsrPromise(promise); | ||
@@ -138,0 +137,0 @@ return [4 /*yield*/, promise]; |
@@ -82,3 +82,3 @@ import { Observable, Subject } from 'rxjs'; | ||
performRequest(variables: Vars, options: Options): IObservableData<Data>; | ||
loadData(variables: Vars, options?: any): Promise<IRequestState<Vars, Data>>; | ||
loadData(variables: Vars, options?: Options): Promise<IRequestState<Vars, Data>>; | ||
mapRequestResult: (variables: Vars, options: Options) => (data: Data) => IRequestState<Vars, Data>; | ||
@@ -85,0 +85,0 @@ handleError: (error: any) => Partial<IRequestState<Vars, Data>>; |
@@ -124,3 +124,2 @@ "use strict"; | ||
RequestStore.prototype.loadData = function (variables, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -138,3 +137,3 @@ var promise; | ||
.toPromise(); | ||
this.variables$.next({ variables: variables, options: options }); | ||
this.variables$.next({ variables: variables, options: options || {} }); | ||
this.registerSsrPromise(promise); | ||
@@ -141,0 +140,0 @@ return [4 /*yield*/, promise]; |
{ | ||
"name": "@proscom/prostore", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "> TODO: description", | ||
@@ -35,3 +35,3 @@ "author": "Andrew Starostin <a.starostin@proscom.ru>", | ||
}, | ||
"gitHead": "843db22013e3501b4a92cbae0b12367680a2f386" | ||
"gitHead": "eb04c659c22618c082700bfe8ae74d432ebe7b2c" | ||
} |
@@ -188,3 +188,3 @@ import { from, merge, Observable, of, Subject } from 'rxjs'; | ||
variables: Vars, | ||
options: any = {} | ||
options?: Options | ||
): Promise<IRequestState<Vars, Data>> { | ||
@@ -201,3 +201,3 @@ const promise = this.state$ | ||
.toPromise(); | ||
this.variables$.next({ variables, options }); | ||
this.variables$.next({ variables, options: options || {} as Options }); | ||
this.registerSsrPromise(promise); | ||
@@ -204,0 +204,0 @@ return await promise; |
Sorry, the diff of this file is not supported yet
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
97669
1631