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.2.0-canary-df302c70cde109350943817d88b9fdd36509842e to 0.2.0-canary-e5f09db3f1351154b0551d315abda3233b39edb8

4

CHANGELOG.md
# @gql.tada/internal
## 0.2.0-canary-df302c70cde109350943817d88b9fdd36509842e
## 0.2.0-canary-e5f09db3f1351154b0551d315abda3233b39edb8

@@ -9,2 +9,4 @@ ### Minor Changes

Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#170](https://github.com/0no-co/gql.tada/pull/170))
- Implement new config resolution helpers
Submitted by [@kitten](https://github.com/kitten) (See [#200](https://github.com/0no-co/gql.tada/pull/200))

@@ -11,0 +13,0 @@ ### Patch Changes

import * as typescript from 'typescript';
import { CompilerHost, ScriptTarget, CreateSourceFileOptions, ResolvedModule } from 'typescript';
import {
CompilerHost,
ScriptTarget,
CreateSourceFileOptions,
ResolvedModule,
Diagnostic,
} from 'typescript';
import { IntrospectionQuery, GraphQLSchema } from 'graphql';
import { TsConfigJson } from 'type-fest';

@@ -79,2 +86,32 @@ declare function normalize(filename: string): string;

declare class TSError extends Error {
readonly name: 'TSError';
readonly diagnostic: Diagnostic;
constructor(diagnostic: Diagnostic);
}
declare class TadaError extends Error {
readonly name: 'TadaError';
constructor(message: string);
}
interface GraphQLSPConfig {
schema: SchemaOrigin;
tadaOutputLocation?: string;
tadaTurboLocation?: string;
tadaPersistedLocation?: string;
template?: string;
}
declare const parseConfig: (input: Record<string, unknown>) => GraphQLSPConfig;
declare const readTSConfigFile: (filePath: string) => Promise<TsConfigJson>;
declare const findTSConfigFile: (targetPath?: string) => Promise<string | null>;
interface LoadConfigResult {
pluginConfig: Record<string, unknown>;
configPath: string;
rootPath: string;
}
declare const loadConfig: (targetPath?: string) => Promise<LoadConfigResult>;
/** @deprecated Use {@link loadConfig} instead */
declare const resolveTypeScriptRootDir: (tsconfigPath: string) => Promise<string | undefined>;
/** Minifies an {@link IntrospectionQuery} for use with Graphcache or the `populateExchange`.

@@ -112,6 +149,6 @@ *

declare const resolveTypeScriptRootDir: (tsconfigPath: string) => Promise<string | undefined>;
export {
type GraphQLSPConfig,
type LoadConfig,
type LoadConfigResult,
type OnSchemaUpdate,

@@ -121,8 +158,12 @@ type SchemaLoader,

type SchemaOrigin,
TSError,
TadaError,
type VirtualCompilerHost,
createProgram,
createVirtualHost,
findTSConfigFile,
importLib,
importModule,
load,
loadConfig,
loadFromSDL,

@@ -132,5 +173,7 @@ loadFromURL,

outputIntrospectionFile,
parseConfig,
preprocessIntrospection,
readTSConfigFile,
resolveModuleFile,
resolveTypeScriptRootDir,
};

@@ -23,28 +23,2 @@ MIT License

## json5
MIT License
Copyright (c) 2012-2018 Aseem Kishore, and [others].
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
[others]: https://github.com/json5/json5/contributors
## @urql/core

@@ -51,0 +25,0 @@

{
"name": "@gql.tada/internal",
"version": "0.2.0-canary-df302c70cde109350943817d88b9fdd36509842e",
"version": "0.2.0-canary-e5f09db3f1351154b0551d315abda3233b39edb8",
"public": true,

@@ -41,3 +41,2 @@ "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.",

"@urql/exchange-retry": "^1.2.1",
"json5": "^2.2.3",
"graphql": "^16.8.1",

@@ -53,4 +52,4 @@ "rollup": "^4.9.4",

"peerDependencies": {
"typescript": "^5.0.0",
"graphql": "^16.8.1"
"graphql": "^16.8.1",
"typescript": "^5.0.0"
},

@@ -57,0 +56,0 @@ "publishConfig": {

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