Socket
Socket
Sign inDemoInstall

@apollo/react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/react-hooks - npm Package Compare versions

Comparing version 0.1.0-beta.6 to 0.1.0-beta.7

2

lib/react-hooks.cjs.js

@@ -670,3 +670,3 @@ 'use strict';

var client = React__default.useContext(reactCommon.getApolloContext()).client;
process.env.NODE_ENV === "production" ? tsInvariant.invariant(!client) : tsInvariant.invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' +
process.env.NODE_ENV === "production" ? tsInvariant.invariant(client) : tsInvariant.invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' +
'have called `ApolloProvider` higher up in your tree.');

@@ -673,0 +673,0 @@ return client;

@@ -664,3 +664,3 @@ import { parser, operationName, DocumentType, getApolloContext } from '@apollo/react-common';

var client = React.useContext(getApolloContext()).client;
process.env.NODE_ENV === "production" ? invariant(!client) : invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' +
process.env.NODE_ENV === "production" ? invariant(client) : invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' +
'have called `ApolloProvider` higher up in your tree.');

@@ -667,0 +667,0 @@ return client;

@@ -664,3 +664,3 @@ (function (global, factory) {

var client = React__default.useContext(reactCommon.getApolloContext()).client;
process.env.NODE_ENV === "production" ? tsInvariant.invariant(!client) : tsInvariant.invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' +
process.env.NODE_ENV === "production" ? tsInvariant.invariant(client) : tsInvariant.invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' +
'have called `ApolloProvider` higher up in your tree.');

@@ -667,0 +667,0 @@ return client;

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

export declare function useApolloClient(): import("apollo-client").default<object> | undefined;
import ApolloClient from 'apollo-client';
export declare function useApolloClient(): ApolloClient<object>;

@@ -6,3 +6,3 @@ import React from 'react';

var client = React.useContext(getApolloContext()).client;
invariant(!client, 'No Apollo Client instance can be found. Please ensure that you ' +
invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' +
'have called `ApolloProvider` higher up in your tree.');

@@ -9,0 +9,0 @@ return client;

{
"name": "@apollo/react-hooks",
"description": "React Apollo Hooks.",
"version": "0.1.0-beta.6",
"version": "0.1.0-beta.7",
"author": "opensource@apollographql.com",

@@ -47,3 +47,3 @@ "keywords": [

},
"gitHead": "15dea607a6caf71c0902c788fba43b323aabe12f"
"gitHead": "dbdffdd7edc415f4813df0e6034ac68fe1d8cfa4"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc