nitro-graphql 2.0.0-beta.62 → 2.0.0-beta.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/config.d.mts +3 -59
- package/dist/cli/index.d.mts +6 -2
- package/dist/core/index.d.mts +6 -6
- package/dist/core/types/config.d.mts +1 -18
- package/dist/core/types/index.d.mts +2 -2
- package/dist/define.d.mts +1 -1
- package/dist/nitro/index.d.mts +2 -2
- package/dist/nitro/paths.mjs +3 -3
- package/dist/nitro/routes/debug.d.mts +2 -2
- package/dist/nitro/routes/graphql-yoga-ws.d.mts +2 -2
- package/dist/nitro/routes/graphql-yoga.d.mts +2 -2
- package/dist/nitro/routes/health.d.mts +2 -2
- package/dist/nitro/setup/file-watcher.mjs +1 -0
- package/dist/nitro/types.d.mts +85 -1
- package/native/index.js +52 -52
- package/package.json +1 -1
package/dist/cli/config.d.mts
CHANGED
|
@@ -1,68 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CoreClientUtilsConfig, CoreCodegenConfig, CoreExternalService, CoreFederationConfig, CorePathsConfig, CoreScaffoldConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig } from "../core/types/config.mjs";
|
|
3
|
-
import "../core/types/index.mjs";
|
|
1
|
+
import { NitroGraphQLOptions } from "../nitro/types.mjs";
|
|
4
2
|
|
|
5
3
|
//#region src/cli/config.d.ts
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* CLI configuration options
|
|
9
|
-
*
|
|
7
|
+
* Now unified with NitroGraphQLOptions - all options available in both CLI and module context
|
|
10
8
|
*/
|
|
11
|
-
|
|
12
|
-
/** Root directory (defaults to current working directory) */
|
|
13
|
-
rootDir?: string;
|
|
14
|
-
/** Build output directory */
|
|
15
|
-
buildDir?: string;
|
|
16
|
-
/** Server GraphQL directory (defaults to 'server/graphql') */
|
|
17
|
-
serverDir?: string;
|
|
18
|
-
/** Client GraphQL directory (defaults to 'graphql') */
|
|
19
|
-
clientDir?: string;
|
|
20
|
-
/** Types output directory */
|
|
21
|
-
typesDir?: string;
|
|
22
|
-
/** GraphQL framework (defaults to 'graphql-yoga') */
|
|
23
|
-
framework?: GraphQLFramework;
|
|
24
|
-
/** Codegen configuration */
|
|
25
|
-
codegen?: CoreCodegenConfig;
|
|
26
|
-
/** Security configuration */
|
|
27
|
-
security?: CoreSecurityConfig;
|
|
28
|
-
/** External GraphQL services */
|
|
29
|
-
externalServices?: CoreExternalService[];
|
|
30
|
-
/** Apollo Federation configuration */
|
|
31
|
-
federation?: CoreFederationConfig;
|
|
32
|
-
/** Path configuration */
|
|
33
|
-
paths?: CorePathsConfig;
|
|
34
|
-
/** Scaffold file configuration */
|
|
35
|
-
scaffold?: false | CoreScaffoldConfig;
|
|
36
|
-
/** Type generation configuration */
|
|
37
|
-
types?: false | CoreTypesConfig;
|
|
38
|
-
/** SDK generation configuration */
|
|
39
|
-
sdk?: false | CoreSdkConfig;
|
|
40
|
-
/** Client utilities configuration */
|
|
41
|
-
clientUtils?: false | CoreClientUtilsConfig;
|
|
42
|
-
/** Patterns to ignore during scanning */
|
|
43
|
-
ignore?: string[];
|
|
44
|
-
/** Watch mode configuration */
|
|
45
|
-
watch?: {
|
|
46
|
-
/** Enable watch mode */
|
|
47
|
-
enabled?: boolean;
|
|
48
|
-
/** Debounce time in ms */
|
|
49
|
-
debounce?: number;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Runtime file generation
|
|
53
|
-
* Generates resolvers.ts, schema.ts for standalone server usage
|
|
54
|
-
*/
|
|
55
|
-
runtime?: boolean | {
|
|
56
|
-
/** Output directory for runtime files (defaults to '{buildDir}/runtime') */
|
|
57
|
-
outDir?: string;
|
|
58
|
-
/** What to include in generation */
|
|
59
|
-
include?: {
|
|
60
|
-
resolvers?: boolean;
|
|
61
|
-
schema?: boolean;
|
|
62
|
-
index?: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}
|
|
9
|
+
type CLIConfig = NitroGraphQLOptions;
|
|
66
10
|
/**
|
|
67
11
|
* Define CLI configuration with type safety
|
|
68
12
|
*/
|
package/dist/cli/index.d.mts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { NitroGraphQLOptions } from "../nitro/types.mjs";
|
|
2
3
|
import { CLIConfig, defineConfig } from "./config.mjs";
|
|
3
4
|
|
|
4
5
|
//#region src/cli/index.d.ts
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* CLI context with resolved configuration
|
|
9
|
+
* Uses NitroGraphQLOptions directly as CLI and module options are now unified
|
|
8
10
|
*/
|
|
9
11
|
interface CLIContext {
|
|
10
|
-
config: Required<Pick<
|
|
12
|
+
config: Required<Pick<NitroGraphQLOptions, 'rootDir' | 'buildDir' | 'serverDir' | 'clientDir' | 'typesDir' | 'framework'>> & {
|
|
13
|
+
ignore: string[];
|
|
14
|
+
} & NitroGraphQLOptions;
|
|
11
15
|
cwd: string;
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* Load CLI configuration from file or defaults
|
|
15
19
|
*/
|
|
16
|
-
declare function loadConfig(cwd?: string): Promise<
|
|
20
|
+
declare function loadConfig(cwd?: string): Promise<NitroGraphQLOptions>;
|
|
17
21
|
/**
|
|
18
22
|
* Create CLI context from configuration
|
|
19
23
|
*/
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BUILTIN_SCALARS, CHUNK_NAME_RESOLVERS, CHUNK_NAME_SCHEMAS, CHUNK_PATH_GRAPHQL, CHUNK_PATH_UNKNOWN, CODEGEN_EXTERNALS, DEFAULT_CLIENT_TYPES_PATH, DEFAULT_GRAPHQL_SCALARS, DEFAULT_SERVER_TYPES_PATH, DEFINE_DIRECTIVE, DEFINE_FIELD, DEFINE_FUNCTIONS, DEFINE_GRAPHQL_CONFIG, DEFINE_MUTATION, DEFINE_QUERY, DEFINE_RESOLVER, DEFINE_SCHEMA, DEFINE_SUBSCRIPTION, DIRECTIVE_EXTENSIONS, DIRECTIVE_GLOB_PATTERN, DIR_APP_GRAPHQL, DIR_BUILD_NITRO, DIR_BUILD_NUXT, DIR_CLIENT_GRAPHQL, DIR_EXTERNAL, DIR_ROUTES_GRAPHQL, DIR_SERVER_GRAPHQL, DIR_SERVER_GRAPHQL_WIN, DefineFunction, ENDPOINT_DEBUG, ENDPOINT_GRAPHQL, ENDPOINT_HEALTH, FEDERATION_EXTERNALS, FILE_CLIENT_TYPES, FILE_CONFIG_TS, FILE_CONTEXT_DTS, FILE_CONTEXT_TS, FILE_DIRECTIVES_GRAPHQL, FILE_GRAPHQL_CONFIG, FILE_GRAPHQL_DTS, FILE_INDEX_TS, FILE_OFETCH_TS, FILE_SCHEMA_GRAPHQL, FILE_SCHEMA_TS, FILE_SDK_TS, FILE_SERVER_TYPES, FRAMEWORK_NITRO, FRAMEWORK_NUXT, FRAMEWORK_STANDALONE, Framework, GLOB_SCAN_PATTERN, GRAPHQL_EXTENSIONS, GRAPHQL_FRAMEWORK_APOLLO, GRAPHQL_FRAMEWORK_YOGA, GRAPHQL_GLOB_PATTERN, GRAPHQL_HTTP_METHODS, GraphQLFramework, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_INTERNAL_ERROR, LOG_TAG, PATTERN_CLIENT_EXTERNAL_TYPES, PLACEHOLDER_BUILD_DIR, PLACEHOLDER_CLIENT_DIR, PLACEHOLDER_FRAMEWORK, PLACEHOLDER_ROOT_DIR, PLACEHOLDER_SERVER_DIR, PLACEHOLDER_SERVICE_NAME, PLACEHOLDER_TYPES_DIR, RESOLVER_EXTENSIONS, RESOLVER_GLOB_PATTERN, RESOLVER_TYPE_DIRECTIVE, RESOLVER_TYPE_MUTATION, RESOLVER_TYPE_QUERY, RESOLVER_TYPE_RESOLVER, RESOLVER_TYPE_SUBSCRIPTION, RESOLVER_TYPE_TYPE, ResolverType, SERVICE_DEFAULT } from "./constants.mjs";
|
|
2
1
|
import { ClientCodegenConfig, ClientCodegenInput, ClientCodegenResult, ExternalServiceCodegenConfig, ScalarType, SchemaLoadOptions, SdkCodegenConfig, ServerCodegenConfig, ServerCodegenInput, ServerCodegenResult } from "./types/codegen.mjs";
|
|
3
|
-
import { CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig, CoreScaffoldConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig } from "./types/config.mjs";
|
|
4
|
-
import { DefineDirectiveConfig, DirectiveArgument, DirectiveDefinition, Flatten, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType } from "./types/define.mjs";
|
|
5
|
-
import { ResolverImport, ScanContext, ScanResult, ScannedFile, ScannedResolver } from "./types/scanning.mjs";
|
|
6
|
-
import "./types/index.mjs";
|
|
7
2
|
import { loadGraphQLDocuments } from "./codegen/document-loader.mjs";
|
|
8
3
|
import { GraphQLLoadSchemaOptions, GraphQLTypeDefPointer, downloadAndSaveSchema, graphQLLoadSchemaSync, loadExternalSchema } from "./codegen/schema-loader.mjs";
|
|
9
4
|
import { DEFAULT_CLIENT_CODEGEN_CONFIG, SubscriptionInfo, extractSubscriptions, generateClientTypesCore, generateExternalClientTypesCore, generateSubscriptionBuilder } from "./codegen/client.mjs";
|
|
10
5
|
import { GENERATED_FILE_HEADER, pluginContent } from "./codegen/plugin.mjs";
|
|
6
|
+
import { BUILTIN_SCALARS, CHUNK_NAME_RESOLVERS, CHUNK_NAME_SCHEMAS, CHUNK_PATH_GRAPHQL, CHUNK_PATH_UNKNOWN, CODEGEN_EXTERNALS, DEFAULT_CLIENT_TYPES_PATH, DEFAULT_GRAPHQL_SCALARS, DEFAULT_SERVER_TYPES_PATH, DEFINE_DIRECTIVE, DEFINE_FIELD, DEFINE_FUNCTIONS, DEFINE_GRAPHQL_CONFIG, DEFINE_MUTATION, DEFINE_QUERY, DEFINE_RESOLVER, DEFINE_SCHEMA, DEFINE_SUBSCRIPTION, DIRECTIVE_EXTENSIONS, DIRECTIVE_GLOB_PATTERN, DIR_APP_GRAPHQL, DIR_BUILD_NITRO, DIR_BUILD_NUXT, DIR_CLIENT_GRAPHQL, DIR_EXTERNAL, DIR_ROUTES_GRAPHQL, DIR_SERVER_GRAPHQL, DIR_SERVER_GRAPHQL_WIN, DefineFunction, ENDPOINT_DEBUG, ENDPOINT_GRAPHQL, ENDPOINT_HEALTH, FEDERATION_EXTERNALS, FILE_CLIENT_TYPES, FILE_CONFIG_TS, FILE_CONTEXT_DTS, FILE_CONTEXT_TS, FILE_DIRECTIVES_GRAPHQL, FILE_GRAPHQL_CONFIG, FILE_GRAPHQL_DTS, FILE_INDEX_TS, FILE_OFETCH_TS, FILE_SCHEMA_GRAPHQL, FILE_SCHEMA_TS, FILE_SDK_TS, FILE_SERVER_TYPES, FRAMEWORK_NITRO, FRAMEWORK_NUXT, FRAMEWORK_STANDALONE, Framework, GLOB_SCAN_PATTERN, GRAPHQL_EXTENSIONS, GRAPHQL_FRAMEWORK_APOLLO, GRAPHQL_FRAMEWORK_YOGA, GRAPHQL_GLOB_PATTERN, GRAPHQL_HTTP_METHODS, GraphQLFramework, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_INTERNAL_ERROR, LOG_TAG, PATTERN_CLIENT_EXTERNAL_TYPES, PLACEHOLDER_BUILD_DIR, PLACEHOLDER_CLIENT_DIR, PLACEHOLDER_FRAMEWORK, PLACEHOLDER_ROOT_DIR, PLACEHOLDER_SERVER_DIR, PLACEHOLDER_SERVICE_NAME, PLACEHOLDER_TYPES_DIR, RESOLVER_EXTENSIONS, RESOLVER_GLOB_PATTERN, RESOLVER_TYPE_DIRECTIVE, RESOLVER_TYPE_MUTATION, RESOLVER_TYPE_QUERY, RESOLVER_TYPE_RESOLVER, RESOLVER_TYPE_SUBSCRIPTION, RESOLVER_TYPE_TYPE, ResolverType, SERVICE_DEFAULT } from "./constants.mjs";
|
|
7
|
+
import { CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig } from "./types/config.mjs";
|
|
8
|
+
import { DefineDirectiveConfig, DirectiveArgument, DirectiveDefinition, Flatten, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType } from "./types/define.mjs";
|
|
9
|
+
import { ResolverImport, ScanContext, ScanResult, ScannedFile, ScannedResolver } from "./types/scanning.mjs";
|
|
10
|
+
import "./types/index.mjs";
|
|
11
11
|
import { generateResolverModule, generateRuntimeIndex, generateSchemaModule } from "./codegen/runtime.mjs";
|
|
12
12
|
import { DEFAULT_SERVER_CODEGEN_CONFIG, generateServerTypesCore, generateTypes } from "./codegen/server.mjs";
|
|
13
13
|
import { validateNoDuplicateTypes, validateSchemaFiles } from "./codegen/validation.mjs";
|
|
@@ -30,4 +30,4 @@ import { getImportId, relativeWithDot } from "./utils/imports.mjs";
|
|
|
30
30
|
import { createLogger, createSilentLogger, defaultLogger } from "./utils/logger.mjs";
|
|
31
31
|
import { OfetchTemplateOptions, generateOfetchTemplate } from "./utils/ofetch-templates.mjs";
|
|
32
32
|
import { validateExternalServices } from "./validation/external-services.mjs";
|
|
33
|
-
export { ASTScanConfig, BUILTIN_SCALARS, CHUNK_NAME_RESOLVERS, CHUNK_NAME_SCHEMAS, CHUNK_PATH_GRAPHQL, CHUNK_PATH_UNKNOWN, CODEGEN_EXTERNALS, ClientCodegenConfig, ClientCodegenInput, ClientCodegenResult, CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig,
|
|
33
|
+
export { ASTScanConfig, BUILTIN_SCALARS, CHUNK_NAME_RESOLVERS, CHUNK_NAME_SCHEMAS, CHUNK_PATH_GRAPHQL, CHUNK_PATH_UNKNOWN, CODEGEN_EXTERNALS, ClientCodegenConfig, ClientCodegenInput, ClientCodegenResult, CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig, CreateCoreConfigOptions, CreateMergedSchemaOptions, DEFAULT_CLIENT_CODEGEN_CONFIG, DEFAULT_CLIENT_TYPES_PATH, DEFAULT_GRAPHQL_SCALARS, DEFAULT_SERVER_CODEGEN_CONFIG, DEFAULT_SERVER_TYPES_PATH, DEFINE_DIRECTIVE, DEFINE_FIELD, DEFINE_FUNCTIONS, DEFINE_GRAPHQL_CONFIG, DEFINE_MUTATION, DEFINE_QUERY, DEFINE_RESOLVER, DEFINE_SCHEMA, DEFINE_SUBSCRIPTION, DIRECTIVE_EXTENSIONS, DIRECTIVE_GLOB_PATTERN, DIR_APP_GRAPHQL, DIR_BUILD_NITRO, DIR_BUILD_NUXT, DIR_CLIENT_GRAPHQL, DIR_EXTERNAL, DIR_ROUTES_GRAPHQL, DIR_SERVER_GRAPHQL, DIR_SERVER_GRAPHQL_WIN, DefineDirectiveConfig, DefineFunction, DirectiveArgument, DirectiveDefinition, DirectiveFileRef, DirectiveParser, DirectiveWrapper, ENDPOINT_DEBUG, ENDPOINT_GRAPHQL, ENDPOINT_HEALTH, ExternalServiceCodegenConfig, FEDERATION_EXTERNALS, FILE_CLIENT_TYPES, FILE_CONFIG_TS, FILE_CONTEXT_DTS, FILE_CONTEXT_TS, FILE_DIRECTIVES_GRAPHQL, FILE_GRAPHQL_CONFIG, FILE_GRAPHQL_DTS, FILE_INDEX_TS, FILE_OFETCH_TS, FILE_SCHEMA_GRAPHQL, FILE_SCHEMA_TS, FILE_SDK_TS, FILE_SERVER_TYPES, FRAMEWORK_NITRO, FRAMEWORK_NUXT, FRAMEWORK_STANDALONE, Flatten, Framework, GENERATED_FILE_HEADER, GLOB_SCAN_PATTERN, GRAPHQL_EXTENSIONS, GRAPHQL_FRAMEWORK_APOLLO, GRAPHQL_FRAMEWORK_YOGA, GRAPHQL_GLOB_PATTERN, GRAPHQL_HTTP_METHODS, GraphQLArgumentType, GraphQLBaseType, GraphQLFramework, GraphQLLoadSchemaOptions, GraphQLScalarType, GraphQLTypeDefPointer, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_INTERNAL_ERROR, LOG_TAG, MaskErrorOptions, ModuleConfig, OfetchTemplateOptions, PATTERN_CLIENT_EXTERNAL_TYPES, PLACEHOLDER_BUILD_DIR, PLACEHOLDER_CLIENT_DIR, PLACEHOLDER_FRAMEWORK, PLACEHOLDER_ROOT_DIR, PLACEHOLDER_SERVER_DIR, PLACEHOLDER_SERVICE_NAME, PLACEHOLDER_TYPES_DIR, PackageConfig, ParsedDirective, RESOLVER_EXTENSIONS, RESOLVER_GLOB_PATTERN, RESOLVER_TYPE_DIRECTIVE, RESOLVER_TYPE_MUTATION, RESOLVER_TYPE_QUERY, RESOLVER_TYPE_RESOLVER, RESOLVER_TYPE_SUBSCRIPTION, RESOLVER_TYPE_TYPE, ResolvedExtend, ResolvedPackage, ResolverDefinition, ResolverImport, ResolverType, SERVICE_DEFAULT, ScalarType, ScanContext, ScanDocumentsOptions, ScanResult, ScannedFile, ScannedResolver, SchemaDefinition, SchemaLoadOptions, SdkCodegenConfig, ServerCodegenConfig, ServerCodegenInput, ServerCodegenResult, SubscriptionInfo, buildGraphQLSchema, createCoreConfig, createCoreContext, createDefaultMaskError, createLogger, createMergedSchema, createScanContext, createSilentLogger, deduplicateFiles, defaultLogger, directiveParser, downloadAndSaveSchema, ensureDir, extractPaths, extractSubscriptions, filterByExtension, generateClientTypesCore, generateDirectiveSchema, generateDirectiveSchemas, generateExternalClientTypesCore, generateOfetchTemplate, generateResolverModule, generateRuntimeIndex, generateSchemaModule, generateServerTypesCore, generateSubscriptionBuilder, generateTypes, getImportId, graphQLLoadSchemaSync, isLocalPath, loadExternalSchema, loadFederationSupport, loadGraphQLDocuments, loadPackageConfig, mergeGraphQLOptions, parse, parseDirectiveCall, parseResolverCall, parseSingleFile, pluginContent, readFileSafe, relativeWithDot, resetFederationCache, resolvePackageFiles, scanDirectivesCore, scanDirectory, scanDocumentsCore, scanGraphqlCore, scanResolversCore, scanSchemasCore, scanWithAST, subscribe, validate, validateExternalServices, validateNoDuplicateTypes, validateSchemaFiles, warnFederationUnavailable, writeFile, writeFileIfChanged };
|
|
@@ -78,21 +78,6 @@ interface CorePathsConfig {
|
|
|
78
78
|
/** Types output directory (default: '{buildDir}/types') */
|
|
79
79
|
typesDir?: string;
|
|
80
80
|
}
|
|
81
|
-
/**
|
|
82
|
-
* Scaffold file generation configuration
|
|
83
|
-
*/
|
|
84
|
-
interface CoreScaffoldConfig {
|
|
85
|
-
/** Master switch for all scaffold files */
|
|
86
|
-
enabled?: boolean;
|
|
87
|
-
/** Generate graphql.config.ts */
|
|
88
|
-
graphqlConfig?: boolean | string;
|
|
89
|
-
/** Generate server schema.ts */
|
|
90
|
-
serverSchema?: boolean | string;
|
|
91
|
-
/** Generate server config.ts */
|
|
92
|
-
serverConfig?: boolean | string;
|
|
93
|
-
/** Generate server context.d.ts */
|
|
94
|
-
serverContext?: boolean | string;
|
|
95
|
-
}
|
|
96
81
|
/**
|
|
97
82
|
* Type generation configuration
|
|
98
83
|
*/
|
|
@@ -147,8 +132,6 @@ interface CoreGraphQLOptions {
|
|
|
147
132
|
federation?: CoreFederationConfig;
|
|
148
133
|
/** Path configuration */
|
|
149
134
|
paths?: CorePathsConfig;
|
|
150
|
-
/** Scaffold file configuration */
|
|
151
|
-
scaffold?: false | CoreScaffoldConfig;
|
|
152
135
|
/** Type generation configuration */
|
|
153
136
|
types?: false | CoreTypesConfig;
|
|
154
137
|
/** SDK generation configuration */
|
|
@@ -207,4 +190,4 @@ interface CoreContext {
|
|
|
207
190
|
};
|
|
208
191
|
}
|
|
209
192
|
//#endregion
|
|
210
|
-
export { CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig,
|
|
193
|
+
export { CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientCodegenConfig, ClientCodegenInput, ClientCodegenResult, ExternalServiceCodegenConfig, ScalarType, SchemaLoadOptions, SdkCodegenConfig, ServerCodegenConfig, ServerCodegenInput, ServerCodegenResult } from "./codegen.mjs";
|
|
2
|
-
import { CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig,
|
|
2
|
+
import { CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig } from "./config.mjs";
|
|
3
3
|
import { DefineDirectiveConfig, DirectiveArgument, DirectiveDefinition, Flatten, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType } from "./define.mjs";
|
|
4
4
|
import { ResolverImport, ScanContext, ScanResult, ScannedFile, ScannedResolver } from "./scanning.mjs";
|
|
5
|
-
export { ClientCodegenConfig, ClientCodegenInput, ClientCodegenResult, CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig,
|
|
5
|
+
export { ClientCodegenConfig, ClientCodegenInput, ClientCodegenResult, CoreClientUtilsConfig, CoreCodegenConfig, CoreConfig, CoreContext, CoreExternalService, CoreFederationConfig, CoreGraphQLOptions, CoreLogger, CorePathsConfig, CoreSdkConfig, CoreSecurityConfig, CoreTypesConfig, DefineDirectiveConfig, DirectiveArgument, DirectiveDefinition, ExternalServiceCodegenConfig, Flatten, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, ResolverImport, ScalarType, ScanContext, ScanResult, ScannedFile, ScannedResolver, SchemaLoadOptions, SdkCodegenConfig, ServerCodegenConfig, ServerCodegenInput, ServerCodegenResult };
|
package/dist/define.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PubSubEngine, TypedPubSub, createPubSub, mapAsyncIterator, withFilter } from "./core/pubsub/index.mjs";
|
|
2
1
|
import { DefineDirectiveConfig, DefineServerConfig, DirectiveDefinition, Flatten, StandardSchemaV1 } from "./nitro/types.mjs";
|
|
2
|
+
import { PubSubEngine, TypedPubSub, createPubSub, mapAsyncIterator, withFilter } from "./core/pubsub/index.mjs";
|
|
3
3
|
import { NPMConfig, Resolvers, ResolversTypes } from "#graphql/server";
|
|
4
4
|
|
|
5
5
|
//#region src/define.d.ts
|
package/dist/nitro/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CodegenClientConfig, CodegenServerConfig, DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, ExtendSource, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, Flatten, GenImport, GenericSdkConfig, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, NitroGraphQLOptions, PubSubConfig, SSETransportConfig, SdkConfig, SecurityConfig, StandardSchemaV1, SubscriptionsConfig, TypesConfig, WebSocketTransportConfig } from "./types.mjs";
|
|
1
|
+
import { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, ExtendSource, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, Flatten, GenImport, GenericSdkConfig, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, NitroGraphQLOptions, PathsConfig, PubSubConfig, RuntimeConfig, SSETransportConfig, SdkConfig, SecurityConfig, StandardSchemaV1, SubscriptionsConfig, TypesConfig, WatchConfig, WebSocketTransportConfig } from "./types.mjs";
|
|
2
2
|
import { NitroAdapter } from "./adapter.mjs";
|
|
3
3
|
import { resolveSecurityConfig } from "./setup/logging.mjs";
|
|
4
4
|
import { setupNitroGraphQL } from "./setup.mjs";
|
|
@@ -43,4 +43,4 @@ declare function graphqlModule(options?: NitroGraphQLOptions): Plugin & {
|
|
|
43
43
|
nitro?: NitroModule;
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
|
-
export { CodegenClientConfig, CodegenServerConfig, DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, ExtendSource, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, Flatten, GenImport, GenericSdkConfig, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, NitroAdapter, NitroGraphQLOptions, PubSubConfig, SSETransportConfig, SdkConfig, SecurityConfig, StandardSchemaV1, SubscriptionsConfig, TypesConfig, WebSocketTransportConfig, graphqlModule as default, resolveSecurityConfig, setupNitroGraphQL };
|
|
46
|
+
export { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, ExtendSource, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, Flatten, GenImport, GenericSdkConfig, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, NitroAdapter, NitroGraphQLOptions, PathsConfig, PubSubConfig, RuntimeConfig, SSETransportConfig, SdkConfig, SecurityConfig, StandardSchemaV1, SubscriptionsConfig, TypesConfig, WatchConfig, WebSocketTransportConfig, graphqlModule as default, resolveSecurityConfig, setupNitroGraphQL };
|
package/dist/nitro/paths.mjs
CHANGED
|
@@ -16,9 +16,9 @@ function getDefaultPaths(nitro) {
|
|
|
16
16
|
const rootDir = nitro.options.rootDir;
|
|
17
17
|
const buildDir = nitro.options.buildDir;
|
|
18
18
|
const graphqlConfig = nitro.options.graphql || {};
|
|
19
|
-
const defaultServerDir = graphqlConfig.serverDir
|
|
20
|
-
const defaultClientDir = graphqlConfig.clientDir
|
|
21
|
-
const defaultTypesDir = graphqlConfig.typesDir
|
|
19
|
+
const defaultServerDir = graphqlConfig.serverDir ? resolve(rootDir, graphqlConfig.serverDir) : resolve(rootDir, "server", "graphql");
|
|
20
|
+
const defaultClientDir = graphqlConfig.clientDir ? resolve(rootDir, graphqlConfig.clientDir) : resolve(rootDir, isNuxt ? "app/graphql" : "graphql");
|
|
21
|
+
const defaultTypesDir = graphqlConfig.typesDir ? resolve(rootDir, graphqlConfig.typesDir) : resolve(buildDir, "types");
|
|
22
22
|
return {
|
|
23
23
|
serviceName: "default",
|
|
24
24
|
buildDir,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nitro_h35 from "nitro/h3";
|
|
2
2
|
|
|
3
3
|
//#region src/nitro/routes/debug.d.ts
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ import * as nitro_h39 from "nitro/h3";
|
|
|
10
10
|
* - /_nitro/graphql/debug - HTML dashboard
|
|
11
11
|
* - /_nitro/graphql/debug?format=json - JSON API
|
|
12
12
|
*/
|
|
13
|
-
declare const _default:
|
|
13
|
+
declare const _default: nitro_h35.EventHandlerWithFetch<nitro_h35.EventHandlerRequest, Promise<string | {
|
|
14
14
|
timestamp: string;
|
|
15
15
|
environment: {
|
|
16
16
|
dev: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nitro_h37 from "nitro/h3";
|
|
2
2
|
|
|
3
3
|
//#region src/nitro/routes/graphql-yoga-ws.d.ts
|
|
4
4
|
|
|
@@ -8,6 +8,6 @@ import * as nitro_h311 from "nitro/h3";
|
|
|
8
8
|
*
|
|
9
9
|
* @see https://github.com/enisdenjo/graphql-ws
|
|
10
10
|
*/
|
|
11
|
-
declare const _default:
|
|
11
|
+
declare const _default: nitro_h37.EventHandler<nitro_h37.EventHandlerRequest, unknown>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nitro_h39 from "nitro/h3";
|
|
2
2
|
|
|
3
3
|
//#region src/nitro/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: nitro_h39.EventHandlerWithFetch<nitro_h39.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nitro_h311 from "nitro/h3";
|
|
2
2
|
|
|
3
3
|
//#region src/nitro/routes/health.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: nitro_h311.EventHandlerWithFetch<nitro_h311.EventHandlerRequest, Promise<{
|
|
5
5
|
status: string;
|
|
6
6
|
message: string;
|
|
7
7
|
timestamp: string;
|
|
@@ -71,6 +71,7 @@ function getWatchDirectories(nitro, extendDirs = []) {
|
|
|
71
71
|
switch (framework) {
|
|
72
72
|
case "nuxt": {
|
|
73
73
|
watchDirs.push(nitro.graphql.clientDir);
|
|
74
|
+
if (scanLocal) watchDirs.push(nitro.graphql.serverDir);
|
|
74
75
|
const layerServerDirs = nitro.options.graphql?.layerServerDirs || [];
|
|
75
76
|
const layerAppDirs = nitro.options.graphql?.layerAppDirs || [];
|
|
76
77
|
if (scanLocal) for (const layerServerDir of layerServerDirs) watchDirs.push(join(layerServerDir, "graphql"));
|
package/dist/nitro/types.d.mts
CHANGED
|
@@ -369,6 +369,53 @@ interface SubscriptionsConfig {
|
|
|
369
369
|
*/
|
|
370
370
|
pubsub?: PubSubConfig;
|
|
371
371
|
}
|
|
372
|
+
/**
|
|
373
|
+
* Client utilities configuration
|
|
374
|
+
* Controls auto-generation of client utility files
|
|
375
|
+
*/
|
|
376
|
+
interface ClientUtilsConfig {
|
|
377
|
+
/** Master switch for client utilities */
|
|
378
|
+
enabled?: boolean;
|
|
379
|
+
/** Index file output path */
|
|
380
|
+
index?: FileGenerationConfig;
|
|
381
|
+
/** Ofetch client output path */
|
|
382
|
+
ofetch?: FileGenerationConfig;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Path configuration with placeholders
|
|
386
|
+
* Supports: {buildDir}, {rootDir}, {typesDir}, {serverDir}, {clientDir}, {serviceName}
|
|
387
|
+
*/
|
|
388
|
+
interface PathsConfig {
|
|
389
|
+
/** Server GraphQL directory (default: 'server/graphql') */
|
|
390
|
+
serverDir?: string;
|
|
391
|
+
/** Client GraphQL directory (default: 'app/graphql' or 'graphql') */
|
|
392
|
+
clientDir?: string;
|
|
393
|
+
/** Types output directory (default: '{buildDir}/types') */
|
|
394
|
+
typesDir?: string;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Watch mode configuration
|
|
398
|
+
*/
|
|
399
|
+
interface WatchConfig {
|
|
400
|
+
/** Enable watch mode */
|
|
401
|
+
enabled?: boolean;
|
|
402
|
+
/** Debounce time in ms */
|
|
403
|
+
debounce?: number;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Runtime file generation configuration
|
|
407
|
+
* Generates resolvers.ts, schema.ts for standalone server usage
|
|
408
|
+
*/
|
|
409
|
+
interface RuntimeConfig {
|
|
410
|
+
/** Output directory for runtime files (defaults to '{buildDir}/runtime') */
|
|
411
|
+
outDir?: string;
|
|
412
|
+
/** What to include in generation */
|
|
413
|
+
include?: {
|
|
414
|
+
resolvers?: boolean;
|
|
415
|
+
schema?: boolean;
|
|
416
|
+
index?: boolean;
|
|
417
|
+
};
|
|
418
|
+
}
|
|
372
419
|
interface NitroGraphQLOptions {
|
|
373
420
|
framework?: 'graphql-yoga' | 'apollo-server';
|
|
374
421
|
/**
|
|
@@ -441,6 +488,43 @@ interface NitroGraphQLOptions {
|
|
|
441
488
|
* Enables real-time subscriptions via WebSocket and/or SSE transports
|
|
442
489
|
*/
|
|
443
490
|
subscriptions?: SubscriptionsConfig;
|
|
491
|
+
/**
|
|
492
|
+
* Root directory of the project
|
|
493
|
+
* Used by CLI for path resolution. In Nitro module context, this is implicit.
|
|
494
|
+
*/
|
|
495
|
+
rootDir?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Build output directory
|
|
498
|
+
* Used by CLI for generated files. In Nitro module context, this is implicit.
|
|
499
|
+
*/
|
|
500
|
+
buildDir?: string;
|
|
501
|
+
/**
|
|
502
|
+
* Client utilities configuration
|
|
503
|
+
* Controls auto-generation of client utility files (index.ts, ofetch.ts)
|
|
504
|
+
* Set to false to disable all client utilities generation
|
|
505
|
+
*/
|
|
506
|
+
clientUtils?: false | ClientUtilsConfig;
|
|
507
|
+
/**
|
|
508
|
+
* Path configuration with placeholders
|
|
509
|
+
* Allows overriding default paths for generated files
|
|
510
|
+
*/
|
|
511
|
+
paths?: PathsConfig;
|
|
512
|
+
/**
|
|
513
|
+
* Patterns to ignore during file scanning
|
|
514
|
+
* Defaults to node_modules and dist directories
|
|
515
|
+
*/
|
|
516
|
+
ignore?: string[];
|
|
517
|
+
/**
|
|
518
|
+
* Watch mode configuration
|
|
519
|
+
* Enables automatic type regeneration on file changes
|
|
520
|
+
*/
|
|
521
|
+
watch?: WatchConfig;
|
|
522
|
+
/**
|
|
523
|
+
* Runtime file generation configuration
|
|
524
|
+
* Generates resolvers.ts, schema.ts for standalone server usage
|
|
525
|
+
* Set to true for default behavior or provide config object
|
|
526
|
+
*/
|
|
527
|
+
runtime?: boolean | RuntimeConfig;
|
|
444
528
|
}
|
|
445
529
|
/**
|
|
446
530
|
* Extend source - package path or detailed config
|
|
@@ -457,4 +541,4 @@ type ExtendSource = string | {
|
|
|
457
541
|
schemas?: string | string[];
|
|
458
542
|
};
|
|
459
543
|
//#endregion
|
|
460
|
-
export { CodegenClientConfig, CodegenServerConfig, DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, ExtendSource, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, Flatten, GenImport, GenericSdkConfig, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, NitroGraphQLOptions, PubSubConfig, SSETransportConfig, SdkConfig, SecurityConfig, StandardSchemaV1, SubscriptionsConfig, TypesConfig, WebSocketTransportConfig };
|
|
544
|
+
export { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, ExtendSource, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, Flatten, GenImport, GenericSdkConfig, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, NitroGraphQLOptions, PathsConfig, PubSubConfig, RuntimeConfig, SSETransportConfig, SdkConfig, SecurityConfig, StandardSchemaV1, SubscriptionsConfig, TypesConfig, WatchConfig, WebSocketTransportConfig };
|
package/native/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('nitro-graphql-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('nitro-graphql-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
80
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('nitro-graphql-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('nitro-graphql-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
96
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('nitro-graphql-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('nitro-graphql-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
117
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('nitro-graphql-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('nitro-graphql-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
133
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('nitro-graphql-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('nitro-graphql-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
150
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('nitro-graphql-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('nitro-graphql-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
166
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('nitro-graphql-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('nitro-graphql-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
185
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('nitro-graphql-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('nitro-graphql-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
201
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('nitro-graphql-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('nitro-graphql-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
217
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('nitro-graphql-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('nitro-graphql-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
237
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('nitro-graphql-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('nitro-graphql-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
253
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('nitro-graphql-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('nitro-graphql-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
274
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('nitro-graphql-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('nitro-graphql-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
290
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('nitro-graphql-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('nitro-graphql-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
308
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('nitro-graphql-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('nitro-graphql-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
324
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('nitro-graphql-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('nitro-graphql-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
342
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('nitro-graphql-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('nitro-graphql-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
358
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('nitro-graphql-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('nitro-graphql-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
376
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('nitro-graphql-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('nitro-graphql-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
392
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('nitro-graphql-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('nitro-graphql-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
410
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('nitro-graphql-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('nitro-graphql-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
426
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('nitro-graphql-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('nitro-graphql-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
443
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('nitro-graphql-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('nitro-graphql-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
459
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('nitro-graphql-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('nitro-graphql-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
479
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('nitro-graphql-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('nitro-graphql-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
495
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('nitro-graphql-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('nitro-graphql-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '2.0.0-beta.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.
|
|
511
|
+
if (bindingPackageVersion !== '2.0.0-beta.63' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.63 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|