@webiny/handler-graphql 6.5.2-beta.1 → 6.5.2-beta.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtInTypes/LongScalar.js","sources":["../../src/builtInTypes/LongScalar.ts"],"sourcesContent":["import { GraphQLScalarType } from \"graphql\";\nimport { Kind } from \"graphql/language/index.js\";\nimport WebinyError from \"@webiny/error\";\n\nconst parseValue = (value: any) => {\n if (String(value).includes(\".\")) {\n throw new WebinyError(\"Value sent must be an integer.\", \"INVALID_VALUE\", {\n value\n });\n }\n if (typeof value === \"number\") {\n return value;\n }\n\n if (value === null || value === undefined) {\n return null;\n }\n\n if (isNaN(value) === true) {\n throw new WebinyError(\"Value sent must be an integer.\", \"INVALID_VALUE\", {\n value\n });\n }\n\n return parseInt(value);\n};\n\nexport const LongScalar = new GraphQLScalarType({\n name: \"Long\",\n description: \"A custom input type to be used for large integers (Long).\",\n serialize: (value: any) => {\n try {\n return parseValue(value);\n } catch {\n console.log({\n message: \"Value sent must be an integer.\",\n code: \"INVALID_VALUE\",\n data: {\n value\n }\n });\n return null;\n }\n },\n parseValue,\n parseLiteral: ast => {\n if (ast.kind === Kind.INT) {\n return parseInt(ast.value);\n }\n\n throw new Error(`Expected type Long, found {${ast.kind}}`);\n }\n});\n"],"names":["parseValue","value","String","WebinyError","isNaN","parseInt","LongScalar","GraphQLScalarType","console","ast","Kind","Error"],"mappings":";;;AAIA,MAAMA,aAAa,CAACC;IAChB,IAAIC,OAAOD,OAAO,QAAQ,CAAC,MACvB,MAAM,IAAIE,MAAY,kCAAkC,iBAAiB;QACrEF;IACJ;IAEJ,IAAI,AAAiB,YAAjB,OAAOA,OACP,OAAOA;IAGX,IAAIA,QAAAA,OACA,OAAO;IAGX,IAAIG,AAAiB,SAAjBA,MAAMH,QACN,MAAM,IAAIE,MAAY,kCAAkC,iBAAiB;QACrEF;IACJ;IAGJ,OAAOI,SAASJ;AACpB;AAEO,MAAMK,aAAa,IAAIC,kBAAkB;IAC5C,MAAM;IACN,aAAa;IACb,WAAW,CAACN;QACR,IAAI;YACA,OAAOD,WAAWC;QACtB,EAAE,OAAM;YACJO,QAAQ,GAAG,CAAC;gBACR,SAAS;gBACT,MAAM;gBACN,MAAM;oBACFP;gBACJ;YACJ;YACA,OAAO;QACX;IACJ;IACAD
|
|
1
|
+
{"version":3,"file":"builtInTypes/LongScalar.js","sources":["../../src/builtInTypes/LongScalar.ts"],"sourcesContent":["import { GraphQLScalarType } from \"graphql\";\nimport { Kind } from \"graphql/language/index.js\";\nimport WebinyError from \"@webiny/error\";\n\nconst parseValue = (value: any) => {\n if (String(value).includes(\".\")) {\n throw new WebinyError(\"Value sent must be an integer.\", \"INVALID_VALUE\", {\n value\n });\n }\n if (typeof value === \"number\") {\n return value;\n }\n\n if (value === null || value === undefined) {\n return null;\n }\n\n if (isNaN(value) === true) {\n throw new WebinyError(\"Value sent must be an integer.\", \"INVALID_VALUE\", {\n value\n });\n }\n\n return parseInt(value);\n};\n\nexport const LongScalar = new GraphQLScalarType({\n name: \"Long\",\n description: \"A custom input type to be used for large integers (Long).\",\n serialize: (value: any) => {\n try {\n return parseValue(value);\n } catch {\n console.log({\n message: \"Value sent must be an integer.\",\n code: \"INVALID_VALUE\",\n data: {\n value\n }\n });\n return null;\n }\n },\n parseValue,\n parseLiteral: ast => {\n if (ast.kind === Kind.INT) {\n return parseInt(ast.value);\n }\n\n throw new Error(`Expected type Long, found {${ast.kind}}`);\n }\n});\n"],"names":["parseValue","value","String","WebinyError","isNaN","parseInt","LongScalar","GraphQLScalarType","console","ast","Kind","Error"],"mappings":";;;AAIA,MAAMA,aAAa,CAACC;IAChB,IAAIC,OAAOD,OAAO,QAAQ,CAAC,MACvB,MAAM,IAAIE,MAAY,kCAAkC,iBAAiB;QACrEF;IACJ;IAEJ,IAAI,AAAiB,YAAjB,OAAOA,OACP,OAAOA;IAGX,IAAIA,QAAAA,OACA,OAAO;IAGX,IAAIG,AAAiB,SAAjBA,MAAMH,QACN,MAAM,IAAIE,MAAY,kCAAkC,iBAAiB;QACrEF;IACJ;IAGJ,OAAOI,SAASJ;AACpB;AAEO,MAAMK,aAAa,IAAIC,kBAAkB;IAC5C,MAAM;IACN,aAAa;IACb,WAAW,CAACN;QACR,IAAI;YACA,OAAOD,WAAWC;QACtB,EAAE,OAAM;YACJO,QAAQ,GAAG,CAAC;gBACR,SAAS;gBACT,MAAM;gBACN,MAAM;oBACFP;gBACJ;YACJ;YACA,OAAO;QACX;IACJ;IACAD;IACA,cAAcS,CAAAA;QACV,IAAIA,IAAI,IAAI,KAAKC,KAAK,GAAG,EACrB,OAAOL,SAASI,IAAI,KAAK;QAG7B,MAAM,IAAIE,MAAM,CAAC,2BAA2B,EAAEF,IAAI,IAAI,CAAC,CAAC,CAAC;IAC7D;AACJ"}
|
|
@@ -29,7 +29,7 @@ const NumberScalar = new GraphQLScalarType({
|
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
parseValue
|
|
32
|
+
parseValue,
|
|
33
33
|
parseLiteral: (ast)=>{
|
|
34
34
|
if (ast.kind === Kind.INT) return Number(ast.value);
|
|
35
35
|
else if (ast.kind === Kind.FLOAT) return parseFloat(ast.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtInTypes/NumberScalar.js","sources":["../../src/builtInTypes/NumberScalar.ts"],"sourcesContent":["import { GraphQLScalarType } from \"graphql\";\nimport { Kind } from \"graphql/language/index.js\";\nimport WebinyError from \"@webiny/error\";\n\nconst parseValue = (value: any) => {\n if (String(value).match(/^0x/) !== null) {\n throw new WebinyError(\"Value sent must be a non-hex number.\", \"INVALID_VALUE\", {\n value\n });\n } else if (typeof value === \"number\") {\n return value;\n } else if (value === null || value === undefined) {\n return null;\n } else if (isNaN(value) === true) {\n throw new WebinyError(\"Value sent must be a number.\", \"INVALID_VALUE\", {\n value\n });\n }\n return parseFloat(value);\n};\n\nexport const NumberScalar = new GraphQLScalarType({\n name: \"Number\",\n description: \"A custom input type to be used with numbers. Supports Int and Float.\",\n serialize: (value: any) => {\n try {\n return parseValue(value);\n } catch {\n console.log({\n message: \"Value sent must be a number.\",\n code: \"INVALID_VALUE\",\n data: {\n value\n }\n });\n return null;\n }\n },\n parseValue,\n parseLiteral: ast => {\n if (ast.kind === Kind.INT) {\n return Number(ast.value);\n } else if (ast.kind === Kind.FLOAT) {\n return parseFloat(ast.value);\n }\n throw new Error(`Expected type Number, found {${ast.kind}}`);\n }\n});\n"],"names":["parseValue","value","String","WebinyError","isNaN","parseFloat","NumberScalar","GraphQLScalarType","console","ast","Kind","Number","Error"],"mappings":";;;AAIA,MAAMA,aAAa,CAACC;IAChB,IAAIC,AAA+B,SAA/BA,OAAOD,OAAO,KAAK,CAAC,QACpB,MAAM,IAAIE,MAAY,wCAAwC,iBAAiB;QAC3EF;IACJ;SACG,IAAI,AAAiB,YAAjB,OAAOA,OACd,OAAOA;SACJ,IAAIA,QAAAA,OACP,OAAO;SACJ,IAAIG,AAAiB,SAAjBA,MAAMH,QACb,MAAM,IAAIE,MAAY,gCAAgC,iBAAiB;QACnEF;IACJ;IAEJ,OAAOI,WAAWJ;AACtB;AAEO,MAAMK,eAAe,IAAIC,kBAAkB;IAC9C,MAAM;IACN,aAAa;IACb,WAAW,CAACN;QACR,IAAI;YACA,OAAOD,WAAWC;QACtB,EAAE,OAAM;YACJO,QAAQ,GAAG,CAAC;gBACR,SAAS;gBACT,MAAM;gBACN,MAAM;oBACFP;gBACJ;YACJ;YACA,OAAO;QACX;IACJ;IACAD
|
|
1
|
+
{"version":3,"file":"builtInTypes/NumberScalar.js","sources":["../../src/builtInTypes/NumberScalar.ts"],"sourcesContent":["import { GraphQLScalarType } from \"graphql\";\nimport { Kind } from \"graphql/language/index.js\";\nimport WebinyError from \"@webiny/error\";\n\nconst parseValue = (value: any) => {\n if (String(value).match(/^0x/) !== null) {\n throw new WebinyError(\"Value sent must be a non-hex number.\", \"INVALID_VALUE\", {\n value\n });\n } else if (typeof value === \"number\") {\n return value;\n } else if (value === null || value === undefined) {\n return null;\n } else if (isNaN(value) === true) {\n throw new WebinyError(\"Value sent must be a number.\", \"INVALID_VALUE\", {\n value\n });\n }\n return parseFloat(value);\n};\n\nexport const NumberScalar = new GraphQLScalarType({\n name: \"Number\",\n description: \"A custom input type to be used with numbers. Supports Int and Float.\",\n serialize: (value: any) => {\n try {\n return parseValue(value);\n } catch {\n console.log({\n message: \"Value sent must be a number.\",\n code: \"INVALID_VALUE\",\n data: {\n value\n }\n });\n return null;\n }\n },\n parseValue,\n parseLiteral: ast => {\n if (ast.kind === Kind.INT) {\n return Number(ast.value);\n } else if (ast.kind === Kind.FLOAT) {\n return parseFloat(ast.value);\n }\n throw new Error(`Expected type Number, found {${ast.kind}}`);\n }\n});\n"],"names":["parseValue","value","String","WebinyError","isNaN","parseFloat","NumberScalar","GraphQLScalarType","console","ast","Kind","Number","Error"],"mappings":";;;AAIA,MAAMA,aAAa,CAACC;IAChB,IAAIC,AAA+B,SAA/BA,OAAOD,OAAO,KAAK,CAAC,QACpB,MAAM,IAAIE,MAAY,wCAAwC,iBAAiB;QAC3EF;IACJ;SACG,IAAI,AAAiB,YAAjB,OAAOA,OACd,OAAOA;SACJ,IAAIA,QAAAA,OACP,OAAO;SACJ,IAAIG,AAAiB,SAAjBA,MAAMH,QACb,MAAM,IAAIE,MAAY,gCAAgC,iBAAiB;QACnEF;IACJ;IAEJ,OAAOI,WAAWJ;AACtB;AAEO,MAAMK,eAAe,IAAIC,kBAAkB;IAC9C,MAAM;IACN,aAAa;IACb,WAAW,CAACN;QACR,IAAI;YACA,OAAOD,WAAWC;QACtB,EAAE,OAAM;YACJO,QAAQ,GAAG,CAAC;gBACR,SAAS;gBACT,MAAM;gBACN,MAAM;oBACFP;gBACJ;YACJ;YACA,OAAO;QACX;IACJ;IACAD;IACA,cAAcS,CAAAA;QACV,IAAIA,IAAI,IAAI,KAAKC,KAAK,GAAG,EACrB,OAAOC,OAAOF,IAAI,KAAK;aACpB,IAAIA,IAAI,IAAI,KAAKC,KAAK,KAAK,EAC9B,OAAOL,WAAWI,IAAI,KAAK;QAE/B,MAAM,IAAIG,MAAM,CAAC,6BAA6B,EAAEH,IAAI,IAAI,CAAC,CAAC,CAAC;IAC/D;AACJ"}
|
package/createGraphQLHandler.js
CHANGED
|
@@ -15,19 +15,19 @@ const createCacheKey = (context)=>{
|
|
|
15
15
|
plugins.length.toString()
|
|
16
16
|
].filter(Boolean).join("#");
|
|
17
17
|
};
|
|
18
|
-
const formatErrorPayload = (error)=>{
|
|
18
|
+
const formatErrorPayload = (error, includeDetails = true)=>{
|
|
19
19
|
if (error instanceof _webiny_error) return JSON.stringify({
|
|
20
20
|
type: "CoreGraphQLWebinyError",
|
|
21
21
|
message: error.message,
|
|
22
22
|
code: error.code,
|
|
23
|
-
data: error.data,
|
|
24
|
-
stack: error.stack
|
|
23
|
+
data: includeDetails ? error.data : null,
|
|
24
|
+
stack: includeDetails ? error.stack : null
|
|
25
25
|
});
|
|
26
26
|
return JSON.stringify({
|
|
27
27
|
type: "Error",
|
|
28
28
|
name: error.name,
|
|
29
29
|
message: error.message,
|
|
30
|
-
stack: error.stack
|
|
30
|
+
stack: includeDetails ? error.stack : null
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
const createGraphQLHandler = (options = {})=>{
|
|
@@ -46,7 +46,9 @@ const createGraphQLHandler = (options = {})=>{
|
|
|
46
46
|
schema = await createGraphQLSchema(context);
|
|
47
47
|
cacheKey = contextCacheKey;
|
|
48
48
|
} catch (ex) {
|
|
49
|
-
|
|
49
|
+
console.error("Error while building the GraphQL schema.");
|
|
50
|
+
console.error(formatErrorPayload(ex));
|
|
51
|
+
return reply.code(500).send(formatErrorPayload(ex, "true" === process.env.DEBUG));
|
|
50
52
|
}
|
|
51
53
|
let body;
|
|
52
54
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createGraphQLHandler.js","sources":["../src/createGraphQLHandler.ts"],"sourcesContent":["import { toBoolean } from \"@webiny/stdlib\";\nimport type { GraphQLSchema } from \"graphql\";\nimport type { Context } from \"@webiny/handler\";\nimport { RoutePlugin } from \"@webiny/handler\";\nimport WebinyError from \"@webiny/error\";\nimport type { Plugin } from \"@webiny/plugins/types.js\";\nimport type { GraphQLRequestBody, HandlerGraphQLOptions } from \"./types.js\";\nimport { createGraphQLSchema, getSchemaPlugins } from \"./createGraphQLSchema.js\";\nimport debugPlugins from \"./debugPlugins.js\";\nimport { processRequestBody } from \"./processRequestBody.js\";\nimport { createRequestBody } from \"~/createRequestBody.js\";\nimport {\n isJsonContentType,\n replyInvalidRequestBody,\n replyUnsupportedMediaType\n} from \"~/jsonContentType.js\";\n\nconst DEFAULT_CACHE_MAX_AGE = 30758400; // 1 year\n\nconst createCacheKey = (context: Context) => {\n const plugins = getSchemaPlugins(context);\n // TODO: in the near future, we have to assign a fixed name to every\n // TODO: GraphQLSchema plugin, to be able to create a reliable cache key.\n\n // TODO: `getCurrentTenant` should be injected as a parameter.\n // @ts-expect-error TODO: We should not be accessing `context` like this here.\n const tenant = context.tenancy?.getCurrentTenant();\n\n return [tenant ? `tenant:${tenant.id}` : null, plugins.length.toString()]\n .filter(Boolean)\n .join(\"#\");\n};\n\nconst formatErrorPayload = (error: Error): string => {\n if (error instanceof WebinyError) {\n return JSON.stringify({\n type: \"CoreGraphQLWebinyError\",\n message: error.message,\n code: error.code,\n data: error.data,\n stack: error.stack\n });\n }\n\n return JSON.stringify({\n type: \"Error\",\n name: error.name,\n message: error.message,\n stack: error.stack\n });\n};\n\nexport default (options: HandlerGraphQLOptions = {}): Plugin[] => {\n let schema: GraphQLSchema | undefined = undefined;\n let cacheKey: string | undefined = undefined;\n\n const debug = toBoolean(options.debug);\n\n const path = options?.path || \"/graphql\";\n\n const route = new RoutePlugin(async ({ onPost, onOptions, context }) => {\n onOptions(path, async (_, reply) => {\n return reply\n .status(204)\n .headers({\n \"Cache-Control\": `public, max-age=${DEFAULT_CACHE_MAX_AGE}`\n })\n .send({})\n .hijack();\n });\n onPost(path, async (request, reply) => {\n if (!isJsonContentType(request)) {\n return replyUnsupportedMediaType(reply);\n }\n const contextCacheKey = createCacheKey(context as Context);\n if (!schema || cacheKey !== contextCacheKey) {\n try {\n schema = await createGraphQLSchema(context);\n cacheKey = contextCacheKey;\n } catch (ex) {\n return reply.code(500).send(formatErrorPayload(ex));\n }\n }\n let body: GraphQLRequestBody | GraphQLRequestBody[];\n try {\n body = createRequestBody(request.body);\n } catch (ex) {\n console.error(`Error while creating the body request.`);\n console.error(formatErrorPayload(ex));\n const invalidRequestReply = replyInvalidRequestBody(reply, ex);\n if (invalidRequestReply) {\n return invalidRequestReply;\n }\n throw ex;\n }\n try {\n const result = await processRequestBody(body, schema, context);\n /**\n * IMPORTANT! Do not send anything if reply was already sent.\n */\n if (reply.sent) {\n console.warn(\"Reply already sent, cannot send the result (handler-graphql).\");\n return reply;\n }\n return reply.status(200).send(result);\n } catch (ex) {\n console.error(`Error while processing the body request.`);\n console.error(formatErrorPayload(ex));\n throw ex;\n }\n });\n });\n\n route.name = \"handler.graphql.route.default\";\n\n return [\n ...(debug ? debugPlugins() : []),\n {\n type: \"wcp-telemetry-tracker\"\n },\n route\n ];\n};\n"],"names":["DEFAULT_CACHE_MAX_AGE","createCacheKey","context","plugins","getSchemaPlugins","tenant","Boolean","formatErrorPayload","error","WebinyError","JSON","options","schema","cacheKey","debug","toBoolean","path","route","RoutePlugin","onPost","onOptions","_","reply","request","isJsonContentType","replyUnsupportedMediaType","contextCacheKey","createGraphQLSchema","ex","
|
|
1
|
+
{"version":3,"file":"createGraphQLHandler.js","sources":["../src/createGraphQLHandler.ts"],"sourcesContent":["import { toBoolean } from \"@webiny/stdlib\";\nimport type { GraphQLSchema } from \"graphql\";\nimport type { Context } from \"@webiny/handler\";\nimport { RoutePlugin } from \"@webiny/handler\";\nimport WebinyError from \"@webiny/error\";\nimport type { Plugin } from \"@webiny/plugins/types.js\";\nimport type { GraphQLRequestBody, HandlerGraphQLOptions } from \"./types.js\";\nimport { createGraphQLSchema, getSchemaPlugins } from \"./createGraphQLSchema.js\";\nimport debugPlugins from \"./debugPlugins.js\";\nimport { processRequestBody } from \"./processRequestBody.js\";\nimport { createRequestBody } from \"~/createRequestBody.js\";\nimport {\n isJsonContentType,\n replyInvalidRequestBody,\n replyUnsupportedMediaType\n} from \"~/jsonContentType.js\";\n\nconst DEFAULT_CACHE_MAX_AGE = 30758400; // 1 year\n\nconst createCacheKey = (context: Context) => {\n const plugins = getSchemaPlugins(context);\n // TODO: in the near future, we have to assign a fixed name to every\n // TODO: GraphQLSchema plugin, to be able to create a reliable cache key.\n\n // TODO: `getCurrentTenant` should be injected as a parameter.\n // @ts-expect-error TODO: We should not be accessing `context` like this here.\n const tenant = context.tenancy?.getCurrentTenant();\n\n return [tenant ? `tenant:${tenant.id}` : null, plugins.length.toString()]\n .filter(Boolean)\n .join(\"#\");\n};\n\n/**\n * `includeDetails` controls `stack` and `data`. Logs always get them; a response only gets them\n * when DEBUG is on, so internals (file paths, schema details) are not exposed to callers.\n */\nconst formatErrorPayload = (error: Error, includeDetails = true): string => {\n if (error instanceof WebinyError) {\n return JSON.stringify({\n type: \"CoreGraphQLWebinyError\",\n message: error.message,\n code: error.code,\n data: includeDetails ? error.data : null,\n stack: includeDetails ? error.stack : null\n });\n }\n\n return JSON.stringify({\n type: \"Error\",\n name: error.name,\n message: error.message,\n stack: includeDetails ? error.stack : null\n });\n};\n\nexport default (options: HandlerGraphQLOptions = {}): Plugin[] => {\n let schema: GraphQLSchema | undefined = undefined;\n let cacheKey: string | undefined = undefined;\n\n const debug = toBoolean(options.debug);\n\n const path = options?.path || \"/graphql\";\n\n const route = new RoutePlugin(async ({ onPost, onOptions, context }) => {\n onOptions(path, async (_, reply) => {\n return reply\n .status(204)\n .headers({\n \"Cache-Control\": `public, max-age=${DEFAULT_CACHE_MAX_AGE}`\n })\n .send({})\n .hijack();\n });\n onPost(path, async (request, reply) => {\n if (!isJsonContentType(request)) {\n return replyUnsupportedMediaType(reply);\n }\n const contextCacheKey = createCacheKey(context as Context);\n if (!schema || cacheKey !== contextCacheKey) {\n try {\n schema = await createGraphQLSchema(context);\n cacheKey = contextCacheKey;\n } catch (ex) {\n console.error(`Error while building the GraphQL schema.`);\n console.error(formatErrorPayload(ex));\n return reply\n .code(500)\n .send(formatErrorPayload(ex, process.env.DEBUG === \"true\"));\n }\n }\n let body: GraphQLRequestBody | GraphQLRequestBody[];\n try {\n body = createRequestBody(request.body);\n } catch (ex) {\n console.error(`Error while creating the body request.`);\n console.error(formatErrorPayload(ex));\n const invalidRequestReply = replyInvalidRequestBody(reply, ex);\n if (invalidRequestReply) {\n return invalidRequestReply;\n }\n throw ex;\n }\n try {\n const result = await processRequestBody(body, schema, context);\n /**\n * IMPORTANT! Do not send anything if reply was already sent.\n */\n if (reply.sent) {\n console.warn(\"Reply already sent, cannot send the result (handler-graphql).\");\n return reply;\n }\n return reply.status(200).send(result);\n } catch (ex) {\n console.error(`Error while processing the body request.`);\n console.error(formatErrorPayload(ex));\n throw ex;\n }\n });\n });\n\n route.name = \"handler.graphql.route.default\";\n\n return [\n ...(debug ? debugPlugins() : []),\n {\n type: \"wcp-telemetry-tracker\"\n },\n route\n ];\n};\n"],"names":["DEFAULT_CACHE_MAX_AGE","createCacheKey","context","plugins","getSchemaPlugins","tenant","Boolean","formatErrorPayload","error","includeDetails","WebinyError","JSON","options","schema","cacheKey","debug","toBoolean","path","route","RoutePlugin","onPost","onOptions","_","reply","request","isJsonContentType","replyUnsupportedMediaType","contextCacheKey","createGraphQLSchema","ex","console","process","body","createRequestBody","invalidRequestReply","replyInvalidRequestBody","result","processRequestBody","debugPlugins"],"mappings":";;;;;;;;AAiBA,MAAMA,wBAAwB;AAE9B,MAAMC,iBAAiB,CAACC;IACpB,MAAMC,UAAUC,iBAAiBF;IAMjC,MAAMG,SAASH,QAAQ,OAAO,EAAE;IAEhC,OAAO;QAACG,SAAS,CAAC,OAAO,EAAEA,OAAO,EAAE,EAAE,GAAG;QAAMF,QAAQ,MAAM,CAAC,QAAQ;KAAG,CACpE,MAAM,CAACG,SACP,IAAI,CAAC;AACd;AAMA,MAAMC,qBAAqB,CAACC,OAAcC,iBAAiB,IAAI;IAC3D,IAAID,iBAAiBE,eACjB,OAAOC,KAAK,SAAS,CAAC;QAClB,MAAM;QACN,SAASH,MAAM,OAAO;QACtB,MAAMA,MAAM,IAAI;QAChB,MAAMC,iBAAiBD,MAAM,IAAI,GAAG;QACpC,OAAOC,iBAAiBD,MAAM,KAAK,GAAG;IAC1C;IAGJ,OAAOG,KAAK,SAAS,CAAC;QAClB,MAAM;QACN,MAAMH,MAAM,IAAI;QAChB,SAASA,MAAM,OAAO;QACtB,OAAOC,iBAAiBD,MAAM,KAAK,GAAG;IAC1C;AACJ;AAEA,6BAAgB,CAAAI,UAAiC,CAAC,CAAC;IAC/C,IAAIC;IACJ,IAAIC;IAEJ,MAAMC,QAAQC,UAAUJ,QAAQ,KAAK;IAErC,MAAMK,OAAOL,SAAS,QAAQ;IAE9B,MAAMM,QAAQ,IAAIC,YAAY,OAAO,EAAEC,MAAM,EAAEC,SAAS,EAAEnB,OAAO,EAAE;QAC/DmB,UAAUJ,MAAM,OAAOK,GAAGC,QACfA,MACF,MAAM,CAAC,KACP,OAAO,CAAC;gBACL,iBAAiB,CAAC,gBAAgB,EAAEvB,uBAAuB;YAC/D,GACC,IAAI,CAAC,CAAC,GACN,MAAM;QAEfoB,OAAOH,MAAM,OAAOO,SAASD;YACzB,IAAI,CAACE,kBAAkBD,UACnB,OAAOE,0BAA0BH;YAErC,MAAMI,kBAAkB1B,eAAeC;YACvC,IAAI,CAACW,UAAUC,aAAaa,iBACxB,IAAI;gBACAd,SAAS,MAAMe,oBAAoB1B;gBACnCY,WAAWa;YACf,EAAE,OAAOE,IAAI;gBACTC,QAAQ,KAAK,CAAC;gBACdA,QAAQ,KAAK,CAACvB,mBAAmBsB;gBACjC,OAAON,MACF,IAAI,CAAC,KACL,IAAI,CAAChB,mBAAmBsB,IAAIE,AAAsB,WAAtBA,QAAQ,GAAG,CAAC,KAAK;YACtD;YAEJ,IAAIC;YACJ,IAAI;gBACAA,OAAOC,kBAAkBT,QAAQ,IAAI;YACzC,EAAE,OAAOK,IAAI;gBACTC,QAAQ,KAAK,CAAC;gBACdA,QAAQ,KAAK,CAACvB,mBAAmBsB;gBACjC,MAAMK,sBAAsBC,wBAAwBZ,OAAOM;gBAC3D,IAAIK,qBACA,OAAOA;gBAEX,MAAML;YACV;YACA,IAAI;gBACA,MAAMO,SAAS,MAAMC,mBAAmBL,MAAMnB,QAAQX;gBAItD,IAAIqB,MAAM,IAAI,EAAE;oBACZO,QAAQ,IAAI,CAAC;oBACb,OAAOP;gBACX;gBACA,OAAOA,MAAM,MAAM,CAAC,KAAK,IAAI,CAACa;YAClC,EAAE,OAAOP,IAAI;gBACTC,QAAQ,KAAK,CAAC;gBACdA,QAAQ,KAAK,CAACvB,mBAAmBsB;gBACjC,MAAMA;YACV;QACJ;IACJ;IAEAX,MAAM,IAAI,GAAG;IAEb,OAAO;WACCH,QAAQuB,iBAAiB,EAAE;QAC/B;YACI,MAAM;QACV;QACApB;KACH;AACL"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/handler-graphql",
|
|
3
|
-
"version": "6.5.2-beta.
|
|
3
|
+
"version": "6.5.2-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -22,25 +22,25 @@
|
|
|
22
22
|
"@graphql-tools/resolvers-composition": "8.0.8",
|
|
23
23
|
"@graphql-tools/schema": "11.0.8",
|
|
24
24
|
"@graphql-tools/utils": "13.2.1",
|
|
25
|
-
"@webiny/api": "6.5.2-beta.
|
|
25
|
+
"@webiny/api": "6.5.2-beta.2",
|
|
26
26
|
"@webiny/di": "1.1.0",
|
|
27
|
-
"@webiny/error": "6.5.2-beta.
|
|
28
|
-
"@webiny/feature": "6.5.2-beta.
|
|
29
|
-
"@webiny/handler": "6.5.2-beta.
|
|
30
|
-
"@webiny/plugins": "6.5.2-beta.
|
|
27
|
+
"@webiny/error": "6.5.2-beta.2",
|
|
28
|
+
"@webiny/feature": "6.5.2-beta.2",
|
|
29
|
+
"@webiny/handler": "6.5.2-beta.2",
|
|
30
|
+
"@webiny/plugins": "6.5.2-beta.2",
|
|
31
31
|
"@webiny/stdlib": "0.0.20",
|
|
32
|
-
"@webiny/utils": "6.5.2-beta.
|
|
33
|
-
"graphql": "16.
|
|
32
|
+
"@webiny/utils": "6.5.2-beta.2",
|
|
33
|
+
"graphql": "16.15.0",
|
|
34
34
|
"graphql-scalars": "2.0.1",
|
|
35
35
|
"graphql-tag": "2.12.7",
|
|
36
36
|
"zod": "4.6.7"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@webiny/build-tools": "6.5.2-beta.
|
|
40
|
-
"@webiny/handler-aws": "6.5.2-beta.
|
|
41
|
-
"rimraf": "6.1.
|
|
39
|
+
"@webiny/build-tools": "6.5.2-beta.2",
|
|
40
|
+
"@webiny/handler-aws": "6.5.2-beta.2",
|
|
41
|
+
"rimraf": "6.1.4",
|
|
42
42
|
"typescript": "7.0.2",
|
|
43
|
-
"vitest": "5.0
|
|
43
|
+
"vitest": "5.1.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|