From f5f89d3dceacbfa78f220ceb9f40d161b3707949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Buben=C3=ADk?= Date: Fri, 15 Mar 2024 18:17:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20docs:=20Update=20sandbox=20examp?= =?UTF-8?q?le,=20remove=20wrong=20options=20from=20reference?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/code-examples/sandbox/index.js | 2 +- docs/reference/client-api.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/code-examples/sandbox/index.js b/docs/code-examples/sandbox/index.js index 5c0ae86..f0f3c52 100644 --- a/docs/code-examples/sandbox/index.js +++ b/docs/code-examples/sandbox/index.js @@ -5,7 +5,7 @@ const cdn = await CdnClient.create({ }); const result = await cdn.fetch({ - files: cdn.metafile.files, + files: cdn.metafile.files[0], locales: ['en', 'de'], }); diff --git a/docs/reference/client-api.md b/docs/reference/client-api.md index 8869768..3c1f2b6 100644 --- a/docs/reference/client-api.md +++ b/docs/reference/client-api.md @@ -182,7 +182,7 @@ Refresh the [metafile](../get-started/metafile.md). --- -### metafile.switch(options, config?) +### metafile.switch(options) Switch to a different [metafile](../get-started/metafile.md). @@ -193,7 +193,6 @@ Switch to a different [metafile](../get-started/metafile.md). | Name | Type | Description | |----------------------------------------------|-----------------------------------------------------------------|:----------------------| | options | [`CdnClientOptions`](types.md#cdnclientoptions) | CDN client options. | -| config | [`CreateAxiosDefaults`](https://axios-http.com/docs/req_config) | Axios request config. | | Type | |:----------------|