netlify-onegraph-internal
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -286,6 +286,9 @@ "use strict"; | ||
var shouldExportInputSignature = fn.variableSignature !== "{}"; | ||
var emptyVariablesGuideDocString = fn.variableSignature === "{}" | ||
? "/**\n * Pass `{}` as no variables are defined for this function.\n */\n " | ||
: ""; | ||
var inputSignatureExport = shouldExportInputSignature | ||
? "export type " + inputSignatureName + " = " + fn.variableSignature + ";\n" | ||
: ""; | ||
return inputSignatureExport + "\nexport type " + returnSignatureName + " = " + fn.returnSignature + ";\n\n/**\n * " + jsDoc + "\n */\nexport function " + fn.fnName + "(\n variables: " + (shouldExportInputSignature ? inputSignatureName : "Record<string, never>") + ",\n options?: NetlifyGraphFunctionOptions\n): Promise<" + returnSignatureName + ">;"; | ||
return inputSignatureExport + "\nexport type " + returnSignatureName + " = " + fn.returnSignature + ";\n\n/**\n * " + jsDoc + "\n */\nexport function " + fn.fnName + "(\n " + emptyVariablesGuideDocString + "variables: " + (shouldExportInputSignature ? inputSignatureName : "Record<string, never>") + ",\n options?: NetlifyGraphFunctionOptions\n): Promise<" + returnSignatureName + ">;"; | ||
}); | ||
@@ -292,0 +295,0 @@ var source = "// GENERATED VIA NETLIFY AUTOMATED DEV TOOLS, EDIT WITH CAUTION!\n\nexport type NetlifyGraphFunctionOptions = {\n /**\n * The accessToken to use for the request\n */\n accessToken?: string;\n /**\n * The siteId to use for the request\n * @default process.env.SITE_ID\n */\n siteId?: string;\n}\n\nexport type WebhookEvent = {\n body: string;\n headers: Record<string, string | null | undefined>;\n};\n\nexport type GraphQLError = {\n \"path\": Array<string | number>,\n \"message\": string,\n \"extensions\": Record<string, unknown>\n};\n\n" + fragmentDecls.join("\n\n") + "\n\n" + functionDecls.join("\n\n") + "\n"; |
{ | ||
"name": "netlify-onegraph-internal", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "Internal tools for use by Netlify", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
354134
4597