From 088594dd0f6986630bedf2fe7bca3c19c2e1c2af Mon Sep 17 00:00:00 2001 From: Crystal Gomes Date: Fri, 15 Mar 2024 18:08:22 -0400 Subject: [PATCH] Functions docs small fixes (#1819) * Functions docs small fixes * capitalize --- src/config/sidebar.ts | 8 ++++---- .../api-reference/javascript-source.mdx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index da074f66e19..45c9b8eff5b 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -493,6 +493,10 @@ export const SIDEBAR: Partial> = { title: "Supported Networks", url: "chainlink-functions/supported-networks", }, + { + title: "Service Limits", + url: "chainlink-functions/resources/service-limits", + }, { title: "Service Responsibility", url: "chainlink-functions/service-responsibility", @@ -579,10 +583,6 @@ export const SIDEBAR: Partial> = { title: "Managing Subscriptions", url: "chainlink-functions/resources/subscriptions", }, - { - title: "Service Limits", - url: "chainlink-functions/resources/service-limits", - }, ], }, { diff --git a/src/content/chainlink-functions/api-reference/javascript-source.mdx b/src/content/chainlink-functions/api-reference/javascript-source.mdx index f3e6a358026..d8313fe1617 100644 --- a/src/content/chainlink-functions/api-reference/javascript-source.mdx +++ b/src/content/chainlink-functions/api-reference/javascript-source.mdx @@ -6,7 +6,7 @@ title: "JavaScript code API Reference" JavaScript source code for a Functions request should comply with certain restrictions: -- **Allowed Modules**: Only vanilla [Deno](https://deno.land/) is supported, without module imports. +- **Allowed Modules**: Vanilla [Deno](https://deno.land/) and module [imports](/chainlink-functions/tutorials/importing-packages). - **Return Type**: Must return a JavaScript `Buffer` object representing the response bytes sent back to the invoking contract. - **Time Limit**: Scripts must execute within a 10-second timeframe; otherwise, they will be terminated, and an error will be returned to the requesting contract.