nitro-graphql 0.0.18 → 0.0.21
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/ecosystem/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema3 from "@nuxt/schema";
|
|
2
2
|
|
|
3
3
|
//#region src/ecosystem/nuxt.d.ts
|
|
4
4
|
interface ModuleOptions {}
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: _nuxt_schema3.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ModuleOptions, _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from "./types/standard-schema.js";
|
|
2
2
|
import { CodegenClientConfig, CodegenServerConfig, GenImport, NitroGraphQLOptions } from "./types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as nitropack2 from "nitropack";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
type GraphQLFramework = 'graphql-yoga';
|
|
7
|
-
declare const _default:
|
|
7
|
+
declare const _default: nitropack2.NitroModule;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { CodegenClientConfig, CodegenServerConfig, GenImport, GraphQLFramework, NitroGraphQLOptions, StandardSchemaV1, _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h34 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h34.EventHandler<h34.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -5,7 +5,6 @@ import { printSchemaWithDirectives } from "@graphql-tools/utils";
|
|
|
5
5
|
import { codegen } from "@graphql-codegen/core";
|
|
6
6
|
import * as typescriptPlugin from "@graphql-codegen/typescript";
|
|
7
7
|
import * as typescriptResolversPlugin from "@graphql-codegen/typescript-resolvers";
|
|
8
|
-
import { CurrencyResolver, DateTimeResolver, JSONResolver, NonEmptyStringResolver, UUIDResolver } from "graphql-scalars";
|
|
9
8
|
|
|
10
9
|
//#region src/utils/server-codegen.ts
|
|
11
10
|
function pluginContent(_schema, _documents, _config, _info) {
|
|
@@ -23,17 +22,6 @@ function pluginContent(_schema, _documents, _config, _info) {
|
|
|
23
22
|
async function generateTypes(schema, config = {}, outputPath) {
|
|
24
23
|
const defaultConfig = {
|
|
25
24
|
scalars: {
|
|
26
|
-
Boolean: {
|
|
27
|
-
input: "boolean",
|
|
28
|
-
output: "boolean"
|
|
29
|
-
},
|
|
30
|
-
DateTime: DateTimeResolver.extensions.codegenScalarType,
|
|
31
|
-
DateTimeISO: DateTimeResolver.extensions.codegenScalarType,
|
|
32
|
-
UUID: UUIDResolver.extensions.codegenScalarType,
|
|
33
|
-
JSON: JSONResolver.extensions.codegenScalarType,
|
|
34
|
-
JSONObject: JSONResolver.extensions.codegenScalarType,
|
|
35
|
-
NonEmptyString: NonEmptyStringResolver.extensions.codegenScalarType,
|
|
36
|
-
Currency: CurrencyResolver.extensions.codegenScalarType,
|
|
37
25
|
File: {
|
|
38
26
|
input: "File",
|
|
39
27
|
output: "File"
|