netlify-onegraph-internal
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -64,3 +64,3 @@ "use strict"; | ||
], | ||
content: "import { json, Form, useActionData, useTransition } from \"remix\";\nimport type { ActionFunction } from \"remix\";\nimport NetlifyGraph from \"" + netlifyGraphConfig.netlifyGraphRequirePath + "\";" + ts(netlifyGraphConfig, "\nimport invariant from \"tiny-invariant\";") + "\n\n" + exp(netlifyGraphConfig, "action") + ts(netlifyGraphConfig, ": ActionFunction") + " = async ({ context, request }) => {\n const formData = await request.formData();\n\n // By default, all API calls use no authentication\n let accessToken;\n\n //// If you want to use the API with your own access token:\n // accessToken = context.netlifyGraphToken;\n\n " + fetcherInvocation + "\n\n return json({ data, errors });\n};\n\nexport default function handler() {\n const results = useActionData();\n const transition = useTransition();\n\n const errors = results?.errors;\n const data" + ts(netlifyGraphConfig, ": NetlifyGraph." + capitalizeFirstLetter(opts.operationData.name) + "[\"data\"]") + " = results?.data;\n\n\n return (\n <Form method=\"post\">\n " + form.formEl + "\n {errors ? (<pre className=\"error\">{JSON.stringify(errors, null, 2)}</pre>) : null}\n {data ? (<pre>{JSON.stringify(data, null, 2)}</pre>) : null}\n </Form>\n );\n}\n", | ||
content: "import { " + ts(netlifyGraphConfig, "ActionFunction, ") + "json, Form, useActionData, useTransition } from \"remix\";\nimport NetlifyGraph from \"" + netlifyGraphConfig.netlifyGraphRequirePath + "\";" + ts(netlifyGraphConfig, "\nimport invariant from \"tiny-invariant\";") + "\n\n" + exp(netlifyGraphConfig, "action") + ts(netlifyGraphConfig, ": ActionFunction") + " = async ({ context, request }) => {\n const formData = await request.formData();\n\n // By default, all API calls use no authentication\n let accessToken;\n\n //// If you want to use the API with your own access token:\n // accessToken = context.netlifyGraphToken;\n\n " + fetcherInvocation + "\n\n return json({ data, errors });\n};\n\nexport default function handler() {\n const results = useActionData();\n const transition = useTransition();\n\n const errors = results?.errors;\n const data" + ts(netlifyGraphConfig, ": NetlifyGraph." + capitalizeFirstLetter(opts.operationData.name) + "[\"data\"]") + " = results?.data;\n\n\n return (\n <Form method=\"post\">\n " + form.formEl + "\n {errors ? (<pre className=\"error\">{JSON.stringify(errors, null, 2)}</pre>) : null}\n {data ? (<pre>{JSON.stringify(data, null, 2)}</pre>) : null}\n </Form>\n );\n}\n", | ||
}; | ||
@@ -67,0 +67,0 @@ }; |
{ | ||
"name": "netlify-onegraph-internal", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"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
336651