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

@gql.tada/internal

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gql.tada/internal - npm Package Compare versions

Comparing version 0.3.0-canary-3c09253dc57ece41320907f966ceceb5265b2b49 to 0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c

7

CHANGELOG.md
# @gql.tada/internal
## 0.3.0-canary-3c09253dc57ece41320907f966ceceb5265b2b49
## 0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c

@@ -10,2 +10,7 @@ ### Minor Changes

### Patch Changes
- Update `loadRef` to reflect `tada*` options to result types
Submitted by [@kitten](https://github.com/kitten) (See [#259](https://github.com/0no-co/gql.tada/pull/259))
## 0.2.4

@@ -12,0 +17,0 @@

26

dist/gql-tada-internal.d.ts

@@ -11,2 +11,5 @@ import { IntrospectionQuery, GraphQLSchema } from 'graphql';

schema: GraphQLSchema;
tadaOutputLocation?: string;
tadaTurboLocation?: string;
tadaPersistedLocation?: string;
}

@@ -23,5 +26,15 @@ type OnSchemaUpdate = (result: SchemaLoaderResult) => void;

}
type SingleSchemaInput = {
name?: string;
schema: SchemaOrigin;
tadaOutputLocation?: string;
tadaTurboLocation?: string;
tadaPersistedLocation?: string;
};
type MultiSchemaInput = {
schemas?: SingleSchemaInput[];
};
interface SchemaRef<Result = SchemaLoaderResult | null> {
/** Starts automatically updating the ref */
autoupdate(): () => void;
autoupdate(onUpdate: (ref: SchemaRef<Result>, input: SingleSchemaInput) => void): () => void;
/** Loads the initial result for the schema */

@@ -70,11 +83,4 @@ load(): Promise<SchemaRef<SchemaLoaderResult>>;

declare function load(config: LoadConfig): SchemaLoader;
type SingleSchema = {
name?: string;
schema: SchemaOrigin;
};
type MultiSchema = {
schemas?: SingleSchema[];
};
declare function loadRef(
input: SingleSchema | MultiSchema | (SingleSchema & MultiSchema),
input: SingleSchemaInput | MultiSchemaInput | (SingleSchemaInput & MultiSchemaInput),
config?: BaseLoadConfig

@@ -173,2 +179,3 @@ ): SchemaRef;

type LoadConfigResult,
type MultiSchemaInput,
type OnSchemaUpdate,

@@ -180,2 +187,3 @@ type SchemaConfig,

type SchemaRef,
type SingleSchemaInput,
TSError,

@@ -182,0 +190,0 @@ TadaError,

{
"name": "@gql.tada/internal",
"version": "0.3.0-canary-3c09253dc57ece41320907f966ceceb5265b2b49",
"version": "0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c",
"public": true,

@@ -5,0 +5,0 @@ "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.",

Sorry, the diff of this file is too big to display

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