@gql.tada/internal
Advanced tools
Comparing version 0.2.2 to 0.2.3-canary-e42804ea2a1e64b58239cd45b152b047b9afcd17
# @gql.tada/internal | ||
## 0.2.3-canary-e42804ea2a1e64b58239cd45b152b047b9afcd17 | ||
### Patch Changes | ||
- ⚠️ Fix ESM build output file to be properly loadable | ||
Submitted by [@kitten](https://github.com/kitten) (See [#247](https://github.com/0no-co/gql.tada/pull/247)) | ||
## 0.2.2 | ||
@@ -4,0 +11,0 @@ |
@@ -1,45 +0,5 @@ | ||
import * as typescript from 'typescript'; | ||
import { | ||
CompilerHost, | ||
ScriptTarget, | ||
CreateSourceFileOptions, | ||
ResolvedModule, | ||
Diagnostic, | ||
} from 'typescript'; | ||
import { IntrospectionQuery, GraphQLSchema } from 'graphql'; | ||
import ts from 'typescript'; | ||
import { TsConfigJson } from 'type-fest'; | ||
declare function normalize(filename: string): string; | ||
/** @internal */ | ||
declare function importModule(host: CompilerHost, id: string): Promise<void>; | ||
/** @internal */ | ||
declare function importLib(host: CompilerHost): Promise<void>; | ||
/** @internal */ | ||
declare function resolveModuleFile(from: string): Promise<string>; | ||
/** @internal */ | ||
type VirtualCompilerHost = ReturnType<typeof createVirtualHost> & CompilerHost; | ||
/** @internal */ | ||
declare const createProgram: (rootNames: string[], host: CompilerHost) => typescript.Program; | ||
/** @internal */ | ||
declare function createVirtualHost(): { | ||
getCanonicalFileName: typeof normalize; | ||
getDefaultLibFileName(): string; | ||
getCurrentDirectory(): '/' | '\\'; | ||
getNewLine(): string; | ||
getModuleResolutionCache(): typescript.ModuleResolutionCache; | ||
useCaseSensitiveFileNames(): true; | ||
fileExists(filename: string): boolean; | ||
directoryExists(directoryName: string): boolean; | ||
writeFile(filename: string, content: Uint8Array | string): void; | ||
getDirectories(directoryName: string): string[]; | ||
readFile(filename: string): string | undefined; | ||
getSourceFile( | ||
filename: string, | ||
languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions | ||
): typescript.SourceFile | undefined; | ||
resolveModuleNames(moduleNames: string[], containingFile: string): (ResolvedModule | undefined)[]; | ||
}; | ||
interface SchemaLoaderResult { | ||
@@ -92,4 +52,4 @@ introspection: IntrospectionQuery; | ||
readonly name: 'TSError'; | ||
readonly diagnostic: Diagnostic; | ||
constructor(diagnostic: Diagnostic); | ||
readonly diagnostic: ts.Diagnostic; | ||
constructor(diagnostic: ts.Diagnostic); | ||
} | ||
@@ -172,9 +132,4 @@ declare class TadaError extends Error { | ||
TadaError, | ||
type VirtualCompilerHost, | ||
createProgram, | ||
createVirtualHost, | ||
findTSConfigFile, | ||
getURLConfig, | ||
importLib, | ||
importModule, | ||
load, | ||
@@ -189,4 +144,3 @@ loadConfig, | ||
readTSConfigFile, | ||
resolveModuleFile, | ||
resolveTypeScriptRootDir, | ||
}; |
{ | ||
"name": "@gql.tada/internal", | ||
"version": "0.2.2", | ||
"version": "0.2.3-canary-e42804ea2a1e64b58239cd45b152b047b9afcd17", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345357
5826