New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

relay-nextjs

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relay-nextjs - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

package.json
{
"name": "relay-nextjs",
"version": "0.6.0",
"version": "0.7.0",
"description": "Use Relay in your Next.js apps!",

@@ -5,0 +5,0 @@ "main": "index.js",

import type { NextPageContext, Redirect } from 'next';
import { NextRouter } from 'next/router';
import { ComponentType, ReactNode } from 'react';
import { PreloadedQuery } from 'react-relay/hooks';
import { PreloadedQuery, PreloadFetchPolicy } from 'react-relay/hooks';
import { Environment, GraphQLTaggedNode, OperationType } from 'relay-runtime';

@@ -27,2 +27,3 @@ import { WiredErrorBoundaryProps } from './error_boundry';

ErrorComponent?: WiredErrorBoundaryProps['ErrorComponent'];
fetchPolicy?: PreloadFetchPolicy;
}

@@ -29,0 +30,0 @@ export declare function Wire<Props extends WiredProps, ServerSideProps>(Component: ComponentType<Props>, query: GraphQLTaggedNode, opts: WiredOptions<Props, ServerSideProps>): {

@@ -145,3 +145,3 @@ "use strict";

const preloadedQuery = hooks_1.loadQuery(env, query, variables, {
fetchPolicy: 'store-and-network',
fetchPolicy: opts.fetchPolicy || 'store-and-network',
});

@@ -148,0 +148,0 @@ const context = context_1.createWiredClientContext({

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