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

@proscom/prostore

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@proscom/prostore - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

lib/es/RequestStore.d.ts

@@ -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

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