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

gqty

Package Overview
Dependencies
Maintainers
1
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gqty - npm Package Compare versions

Comparing version 3.0.0-canary-20240501154404.c05f19d9fa02ace3ea3ed24777455e94fa8db3e9 to 3.0.0-canary-20240501161705.dbe4e276c8f03ad7850cc18cc0fa9c9199e8522c

18

Client/index.d.ts

@@ -69,8 +69,22 @@ import { type Client as SseClient } from 'graphql-sse';

aliasLength?: number;
/**
* Milliseconds to wait before pending queries are batched up for fetching.
*/
batchWindow?: number;
/**
* The cache to be used by the accessors and fetches.
*/
cache: Cache;
/**
* Options related to fetching.
*/
fetchOptions: FetchOptions;
scalars: ScalarsEnumsHash;
/**
* The generated schema object.
*/
schema: Readonly<Schema>;
/**
* Maximum accessor depth, prevents infinite recursions.
* Maximum accessor depth before an error is thrown, prevents infinite
* recursions.
*

@@ -89,2 +103,2 @@ * @default 15

};
export declare const createClient: <TSchema extends BaseGeneratedSchema, _ObjectTypesNames extends string = never, _ObjectTypes extends SchemaObjects<TSchema> = never>({ aliasLength, cache, fetchOptions: { fetcher, cachePolicy: fetchPolicy, retryPolicy: defaultRetryPolicy, subscriber, ...fetchOptions }, scalars, schema, __depthLimit, ...legacyOptions }: ClientOptions & LegacyClientOptions) => Client<TSchema>;
export declare const createClient: <TSchema extends BaseGeneratedSchema, _ObjectTypesNames extends string = never, _ObjectTypes extends SchemaObjects<TSchema> = never>({ aliasLength, batchWindow, cache, fetchOptions: { fetcher, cachePolicy: fetchPolicy, retryPolicy: defaultRetryPolicy, subscriber, ...fetchOptions }, scalars, schema, __depthLimit, ...legacyOptions }: ClientOptions & LegacyClientOptions) => Client<TSchema>;

@@ -26,2 +26,3 @@ 'use strict';

aliasLength = 6,
batchWindow,
// This default cache on a required option is for legacy clients, which does

@@ -72,2 +73,3 @@ // not provide a `cache` option.

aliasLength,
batchWindow,
scalars,

@@ -74,0 +76,0 @@ schema,

9

Client/resolvers.d.ts

@@ -11,2 +11,3 @@ import { type BaseGeneratedSchema, type FetchOptions } from '.';

aliasLength?: number;
batchWindow?: number;
cache: Cache;

@@ -70,3 +71,3 @@ debugger?: Debugger;

export type DataFn<TSchema, TResult = unknown> = (schema: TSchema) => TResult;
export type CreateResolverOptions = {
export type ResolverOptions = {
/**

@@ -99,3 +100,3 @@ * Defines how a query should fetch from the cache and network.

};
export type ResolveOptions = CreateResolverOptions & {
export type ResolveOptions = ResolverOptions & {
/**

@@ -111,3 +112,3 @@ * Awaits resolution it the query results in a fetch. Specify `false` to

};
export type SubscribeOptions = CreateResolverOptions & {
export type SubscribeOptions = ResolverOptions & {
/**

@@ -129,2 +130,2 @@ * Intercept errors thrown from the underlying subscription client or query

};
export declare const createResolvers: <TSchema extends BaseGeneratedSchema>({ aliasLength, cache: clientCache, debugger: debug, depthLimit, fetchOptions, fetchOptions: { cachePolicy: defaultCachePolicy, retryPolicy: defaultRetryPoliy, }, scalars, schema, parentContext, }: CreateResolversOptions) => Resolvers<TSchema>;
export declare const createResolvers: <TSchema extends BaseGeneratedSchema>({ aliasLength, batchWindow, cache: clientCache, debugger: debug, depthLimit, fetchOptions, fetchOptions: { cachePolicy: defaultCachePolicy, retryPolicy: defaultRetryPoliy, }, scalars, schema, parentContext, }: CreateResolversOptions) => Resolvers<TSchema>;

@@ -24,2 +24,3 @@ 'use strict';

aliasLength,
batchWindow,
cache: clientCache,

@@ -90,2 +91,5 @@ debugger: debug,

var _a;
if (batchWindow) {
await new Promise((resolve2) => setTimeout(resolve2, batchWindow));
}
const uniqueSelections = /* @__PURE__ */ new Set();

@@ -92,0 +96,0 @@ (_a = batching.getSelectionsSet(clientCache, selectionsCacheKey)) == null ? void 0 : _a.forEach(

{
"name": "gqty",
"version": "3.0.0-canary-20240501154404.c05f19d9fa02ace3ea3ed24777455e94fa8db3e9",
"version": "3.0.0-canary-20240501161705.dbe4e276c8f03ad7850cc18cc0fa9c9199e8522c",
"description": "gqty client without queries",

@@ -5,0 +5,0 @@ "sideEffects": false,

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