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

@proscom/prostore-apollo-react

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@proscom/prostore-apollo-react - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

4

lib/es/useGraphqlQuery.d.ts

@@ -25,3 +25,3 @@ import { DependencyList } from 'react';

*/
export declare function useGraphqlQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, Partial<IGraphqlQueryOptions<Vars, Data>>>;
export interface IUseGraphQueryVarsParams<Vars, Data> extends IUseGraphqlQueryParams<Vars, Data> {

@@ -37,2 +37,2 @@ variableCreator: [() => Vars, DependencyList];

*/
export declare function useGraphqlQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, Partial<IGraphqlQueryOptions<Vars, Data>>>;

@@ -1,23 +0,2 @@

var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import { __assign, __rest } from "tslib";
import { useContext, useMemo } from 'react';

@@ -24,0 +3,0 @@ import { GraphqlQueryStore } from '@proscom/prostore-apollo';

@@ -25,3 +25,3 @@ import { DependencyList } from 'react';

*/
export declare function useGraphqlWatchQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlWatchQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlWatchQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlWatchQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, IGraphqlWatchQueryOptions<Vars, Data>>;
export interface IUseGraphWatchQueryVarsParams<Vars, Data> extends IUseGraphqlWatchQueryParams<Vars, Data> {

@@ -37,2 +37,2 @@ variableCreator: [() => Vars, DependencyList];

*/
export declare function useGraphqlWatchQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphWatchQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlWatchQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphWatchQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, IGraphqlWatchQueryOptions<Vars, Data>>;

@@ -1,23 +0,2 @@

var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
import { __assign, __rest } from "tslib";
import { useContext, useMemo } from 'react';

@@ -24,0 +3,0 @@ import { GraphqlWatchQueryStore } from '@proscom/prostore-apollo';

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./ApolloClientsContext"), exports);
__exportStar(require("./useGraphqlQuery"), exports);
__exportStar(require("./useGraphqlWatchQuery"), exports);
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./ApolloClientsContext"), exports);
tslib_1.__exportStar(require("./useGraphqlQuery"), exports);
tslib_1.__exportStar(require("./useGraphqlWatchQuery"), exports);
//# sourceMappingURL=prostore-apollo-react.js.map

@@ -25,3 +25,3 @@ import { DependencyList } from 'react';

*/
export declare function useGraphqlQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, Partial<IGraphqlQueryOptions<Vars, Data>>>;
export interface IUseGraphQueryVarsParams<Vars, Data> extends IUseGraphqlQueryParams<Vars, Data> {

@@ -37,2 +37,2 @@ variableCreator: [() => Vars, DependencyList];

*/
export declare function useGraphqlQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, Partial<IGraphqlQueryOptions<Vars, Data>>>;
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGraphqlQueryVars = exports.useGraphqlQuery = void 0;
var tslib_1 = require("tslib");
var react_1 = require("react");

@@ -41,3 +20,3 @@ var prostore_apollo_1 = require("@proscom/prostore-apollo");

var store = react_1.useMemo(function () {
return new prostore_apollo_1.GraphqlQueryStore(__assign({ ssrContext: ssrContext, client: actualClient }, queryOptions));
return new prostore_apollo_1.GraphqlQueryStore(tslib_1.__assign({ ssrContext: ssrContext, client: actualClient }, queryOptions));
}, [ssrContext, actualClient, queryOptions]);

@@ -55,7 +34,7 @@ return prostore_react_1.useRequestStore(store, variables, options, hookOptions);

function useGraphqlQueryVars(_a) {
var variableCreator = _a.variableCreator, queryProps = __rest(_a, ["variableCreator"]);
var variableCreator = _a.variableCreator, queryProps = tslib_1.__rest(_a, ["variableCreator"]);
var variables = react_1.useMemo.apply(void 0, variableCreator);
return useGraphqlQuery(__assign(__assign({}, queryProps), { variables: variables }));
return useGraphqlQuery(tslib_1.__assign(tslib_1.__assign({}, queryProps), { variables: variables }));
}
exports.useGraphqlQueryVars = useGraphqlQueryVars;
//# sourceMappingURL=useGraphqlQuery.js.map

@@ -25,3 +25,3 @@ import { DependencyList } from 'react';

*/
export declare function useGraphqlWatchQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlWatchQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlWatchQuery<Vars, Data>({ client, queryOptions, variables, options, hookOptions }: IUseGraphqlWatchQueryParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, IGraphqlWatchQueryOptions<Vars, Data>>;
export interface IUseGraphWatchQueryVarsParams<Vars, Data> extends IUseGraphqlWatchQueryParams<Vars, Data> {

@@ -37,2 +37,2 @@ variableCreator: [() => Vars, DependencyList];

*/
export declare function useGraphqlWatchQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphWatchQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<import("@proscom/prostore").IRequestState<Vars, Data>>;
export declare function useGraphqlWatchQueryVars<Vars, Data>({ variableCreator, ...queryProps }: IUseGraphWatchQueryVarsParams<Vars, Data>): import("@proscom/prostore-react").UseRequestStoreResult<Vars, Data, IGraphqlWatchQueryOptions<Vars, Data>>;
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGraphqlWatchQueryVars = exports.useGraphqlWatchQuery = void 0;
var tslib_1 = require("tslib");
var react_1 = require("react");

@@ -41,3 +20,3 @@ var prostore_apollo_1 = require("@proscom/prostore-apollo");

var store = react_1.useMemo(function () {
return new prostore_apollo_1.GraphqlWatchQueryStore(__assign({ ssrContext: ssrContext, client: actualClient }, queryOptions));
return new prostore_apollo_1.GraphqlWatchQueryStore(tslib_1.__assign({ ssrContext: ssrContext, client: actualClient }, queryOptions));
}, [ssrContext, actualClient, queryOptions]);

@@ -55,7 +34,7 @@ return prostore_react_1.useRequestStore(store, variables, options, hookOptions);

function useGraphqlWatchQueryVars(_a) {
var variableCreator = _a.variableCreator, queryProps = __rest(_a, ["variableCreator"]);
var variableCreator = _a.variableCreator, queryProps = tslib_1.__rest(_a, ["variableCreator"]);
var variables = react_1.useMemo.apply(void 0, variableCreator);
return useGraphqlWatchQuery(__assign(__assign({}, queryProps), { variables: variables }));
return useGraphqlWatchQuery(tslib_1.__assign(tslib_1.__assign({}, queryProps), { variables: variables }));
}
exports.useGraphqlWatchQueryVars = useGraphqlWatchQueryVars;
//# sourceMappingURL=useGraphqlWatchQuery.js.map
{
"name": "@proscom/prostore-apollo-react",
"version": "0.1.9",
"version": "0.1.10",
"description": "> TODO: description",

@@ -29,5 +29,6 @@ "author": "Andrew Starostin <a.starostin@proscom.ru>",

"dependencies": {
"@proscom/prostore": "^0.1.9",
"@proscom/prostore-apollo": "^0.1.9",
"@proscom/prostore-react": "^0.1.9"
"@proscom/prostore": "^0.1.10",
"@proscom/prostore-apollo": "^0.1.10",
"@proscom/prostore-react": "^0.1.10",
"tslib": "^2.0.3"
},

@@ -45,3 +46,3 @@ "peerDependencies": {

"sideEffects": false,
"gitHead": "970724c76417fe60b3a18d6882d6d5658cdca6fb"
"gitHead": "45f65ff436c975005796850d0453a1634b4043aa"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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