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.1 to 0.1.2

4

lib/es/useGraphqlQuery.d.ts
import { DependencyList } from 'react';
import { IGraphqlQueryOptions, IGraphqlQueryStoreParams } from '@proscom/prostore-apollo';
import { ApolloClient } from 'apollo-client';
import { PartialKey } from '@proscom/prostore';
export declare type IUseGraphqlQueryOptions<Vars, Data> = PartialKey<IGraphqlQueryStoreParams<Vars, Data>, 'client'>;
export interface IUseGraphqlQueryParams<Vars, Data> {

@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */

/** Query specification */
queryOptions?: IGraphqlQueryStoreParams<Vars, Data>;
queryOptions?: IUseGraphqlQueryOptions<Vars, Data>;
/** Query variables */

@@ -11,0 +13,0 @@ variables?: Vars;

@@ -24,3 +24,3 @@ var __assign = (this && this.__assign) || function () {

import { useContext, useMemo } from 'react';
import { GraphqlQueryStore, } from '@proscom/prostore-apollo';
import { GraphqlQueryStore } from '@proscom/prostore-apollo';
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react';

@@ -27,0 +27,0 @@ import { useContextApolloClient } from './ApolloClientsContext';

import { DependencyList } from 'react';
import { PartialKey } from '@proscom/prostore';
import { IGraphqlWatchQueryOptions, IGraphqlWatchQueryStoreParams } from '@proscom/prostore-apollo';
import { ApolloClient } from 'apollo-client';
export declare type IUseGraphqlWatchQueryOptions<Vars, Data> = PartialKey<IGraphqlWatchQueryStoreParams<Vars, Data>, 'client'>;
export interface IUseGraphqlWatchQueryParams<Vars, Data> {

@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */

/** Query specification */
queryOptions?: IGraphqlWatchQueryStoreParams<Vars, Data>;
queryOptions?: IUseGraphqlWatchQueryOptions<Vars, Data>;
/** Query variables */

@@ -11,0 +13,0 @@ variables?: Vars;

@@ -24,3 +24,3 @@ var __assign = (this && this.__assign) || function () {

import { useContext, useMemo } from 'react';
import { GraphqlWatchQueryStore, } from '@proscom/prostore-apollo';
import { GraphqlWatchQueryStore } from '@proscom/prostore-apollo';
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react';

@@ -27,0 +27,0 @@ import { useContextApolloClient } from './ApolloClientsContext';

import { DependencyList } from 'react';
import { IGraphqlQueryOptions, IGraphqlQueryStoreParams } from '@proscom/prostore-apollo';
import { ApolloClient } from 'apollo-client';
import { PartialKey } from '@proscom/prostore';
export declare type IUseGraphqlQueryOptions<Vars, Data> = PartialKey<IGraphqlQueryStoreParams<Vars, Data>, 'client'>;
export interface IUseGraphqlQueryParams<Vars, Data> {

@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */

/** Query specification */
queryOptions?: IGraphqlQueryStoreParams<Vars, Data>;
queryOptions?: IUseGraphqlQueryOptions<Vars, Data>;
/** Query variables */

@@ -11,0 +13,0 @@ variables?: Vars;

import { DependencyList } from 'react';
import { PartialKey } from '@proscom/prostore';
import { IGraphqlWatchQueryOptions, IGraphqlWatchQueryStoreParams } from '@proscom/prostore-apollo';
import { ApolloClient } from 'apollo-client';
export declare type IUseGraphqlWatchQueryOptions<Vars, Data> = PartialKey<IGraphqlWatchQueryStoreParams<Vars, Data>, 'client'>;
export interface IUseGraphqlWatchQueryParams<Vars, Data> {

@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */

/** Query specification */
queryOptions?: IGraphqlWatchQueryStoreParams<Vars, Data>;
queryOptions?: IUseGraphqlWatchQueryOptions<Vars, Data>;
/** Query variables */

@@ -11,0 +13,0 @@ variables?: Vars;

{
"name": "@proscom/prostore-apollo-react",
"version": "0.1.1",
"version": "0.1.2",
"description": "> TODO: description",

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

"dependencies": {
"@proscom/prostore": "^0.1.0",
"@proscom/prostore-apollo": "^0.1.1",
"@proscom/prostore-react": "^0.1.0"
"@proscom/prostore": "^0.1.2",
"@proscom/prostore-apollo": "^0.1.2",
"@proscom/prostore-react": "^0.1.2"
},

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

"sideEffects": false,
"gitHead": "f4d1d57ee7c06979b8bf4a2dad362a6d4b1dd82b"
"gitHead": "843db22013e3501b4a92cbae0b12367680a2f386"
}

@@ -1,10 +0,17 @@

import {DependencyList, useContext, useMemo} from 'react';
import { DependencyList, useContext, useMemo } from 'react';
import {
GraphqlQueryStore, IGraphqlQueryOptions,
IGraphqlQueryStoreParams,
GraphqlQueryStore,
IGraphqlQueryOptions,
IGraphqlQueryStoreParams
} from '@proscom/prostore-apollo';
import {ProstoreSsrContext, useRequestStore} from '@proscom/prostore-react';
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react';
import { useContextApolloClient } from './ApolloClientsContext';
import { ApolloClient } from 'apollo-client';
import { PartialKey } from '@proscom/prostore';
export type IUseGraphqlQueryOptions<Vars, Data> = PartialKey<
IGraphqlQueryStoreParams<Vars, Data>,
'client'
>;
export interface IUseGraphqlQueryParams<Vars, Data> {

@@ -14,3 +21,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */

/** Query specification */
queryOptions?: IGraphqlQueryStoreParams<Vars, Data>;
queryOptions?: IUseGraphqlQueryOptions<Vars, Data>;
/** Query variables */

@@ -17,0 +24,0 @@ variables?: Vars;

@@ -1,10 +0,17 @@

import {DependencyList, useContext, useMemo} from 'react';
import { DependencyList, useContext, useMemo } from 'react';
import { PartialKey } from '@proscom/prostore';
import {
GraphqlWatchQueryStore, IGraphqlWatchQueryOptions,
IGraphqlWatchQueryStoreParams,
GraphqlWatchQueryStore,
IGraphqlWatchQueryOptions,
IGraphqlWatchQueryStoreParams
} from '@proscom/prostore-apollo';
import {ProstoreSsrContext, useRequestStore} from '@proscom/prostore-react';
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react';
import { useContextApolloClient } from './ApolloClientsContext';
import { ApolloClient } from 'apollo-client';
export type IUseGraphqlWatchQueryOptions<Vars, Data> = PartialKey<
IGraphqlWatchQueryStoreParams<Vars, Data>,
'client'
>;
export interface IUseGraphqlWatchQueryParams<Vars, Data> {

@@ -14,7 +21,7 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */

/** Query specification */
queryOptions?: IGraphqlWatchQueryStoreParams<Vars, Data>;
queryOptions?: IUseGraphqlWatchQueryOptions<Vars, Data>;
/** Query variables */
variables?: Vars;
/** Additional query options */
options?: IGraphqlWatchQueryOptions<Vars, Data>
options?: IGraphqlWatchQueryOptions<Vars, Data>;
}

@@ -21,0 +28,0 @@

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