From e061ff636a980adec9636afdfd3f825f723b4865 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Wed, 27 Sep 2023 19:01:43 +0100 Subject: [PATCH 1/6] ci: fix chalk building error --- .docs/nuxt.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.docs/nuxt.config.ts b/.docs/nuxt.config.ts index ed10bf6..9fa8296 100755 --- a/.docs/nuxt.config.ts +++ b/.docs/nuxt.config.ts @@ -6,6 +6,12 @@ export default defineNuxtConfig({ '@/assets/css/main.css', ], + build: { + transpile: [ + "chalk" + ] + }, + modules: [ // https://github.com/nuxt-modules/plausible '@nuxtjs/plausible', From 2abdb0263825c4c9f979af0414e565eaf139900a Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 27 Sep 2023 20:49:28 +0200 Subject: [PATCH 2/6] Update .docs/package.json Co-authored-by: William Oldham --- .docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docs/package.json b/.docs/package.json index 8d9f594..bf7aa42 100755 --- a/.docs/package.json +++ b/.docs/package.json @@ -1,5 +1,5 @@ { - "name": "docus-starter", + "name": "providers-docs", "version": "0.1.0", "private": true, "scripts": { From c4666ffaad85ed7ceb10130b71f01410ba7674c0 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 27 Sep 2023 20:49:40 +0200 Subject: [PATCH 3/6] Update .docs/content/1.Guide/2.fetchers.md Co-authored-by: William Oldham --- .docs/content/1.Guide/2.fetchers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docs/content/1.Guide/2.fetchers.md b/.docs/content/1.Guide/2.fetchers.md index 7a772af..d021447 100644 --- a/.docs/content/1.Guide/2.fetchers.md +++ b/.docs/content/1.Guide/2.fetchers.md @@ -21,7 +21,7 @@ const fetcher = makeDefaultFetcher(fetch); ## Using fetchers on the browser when using this library on a browser, you will need a proxy. Browser come with a ton of restrictions on when a webrequest can be made, and to bypass those restrictions you will need a cors proxy. -The movie-web team has a proxy pre-made and pre-configured for you to use. for more information you can check out [movie-web/simple-proxy](https://github.com/movie-web/simple-proxy). After installing you can use this proxy like so: +The movie-web team has a proxy pre-made and pre-configured for you to use. For more information, check out [movie-web/simple-proxy](https://github.com/movie-web/simple-proxy). After installing, you can use this proxy like so: ```ts const fetcher = makeSimpleProxyFetcher("https://your.proxy.workers.dev/", fetch); From fda0c5b79cfcf1cb2e5188c8c00ab2495160bb96 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 27 Sep 2023 20:49:48 +0200 Subject: [PATCH 4/6] Update .docs/content/1.Guide/2.fetchers.md Co-authored-by: William Oldham --- .docs/content/1.Guide/2.fetchers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docs/content/1.Guide/2.fetchers.md b/.docs/content/1.Guide/2.fetchers.md index d021447..81e6b4e 100644 --- a/.docs/content/1.Guide/2.fetchers.md +++ b/.docs/content/1.Guide/2.fetchers.md @@ -19,7 +19,7 @@ const fetcher = makeDefaultFetcher(fetch); ``` ## Using fetchers on the browser -when using this library on a browser, you will need a proxy. Browser come with a ton of restrictions on when a webrequest can be made, and to bypass those restrictions you will need a cors proxy. +When using this library on a browser, you will need a proxy. Browsers come with many restrictions on when a web request can be made, and to bypass those restrictions, you will need a cors proxy. The movie-web team has a proxy pre-made and pre-configured for you to use. For more information, check out [movie-web/simple-proxy](https://github.com/movie-web/simple-proxy). After installing, you can use this proxy like so: From f6fb539eacc8d8090e67df5612c3ac43909b805c Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 27 Sep 2023 20:49:53 +0200 Subject: [PATCH 5/6] Update .docs/content/1.Guide/2.fetchers.md Co-authored-by: William Oldham --- .docs/content/1.Guide/2.fetchers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docs/content/1.Guide/2.fetchers.md b/.docs/content/1.Guide/2.fetchers.md index 81e6b4e..c8b77aa 100644 --- a/.docs/content/1.Guide/2.fetchers.md +++ b/.docs/content/1.Guide/2.fetchers.md @@ -4,7 +4,7 @@ When making an instance of the library using `makeProviders()`. It will immediat This comes with some considerations depending on the environment youre running. ## Using `fetch()` -In most cases, you can use the `fetch()` API. This will work in newer versions of node (18 and above) and on the browser. +In most cases, you can use the `fetch()` API. This will work in newer versions of Node.js (18 and above) and on the browser. ```ts const fetcher = makeDefaultFetcher(fetch); From 1c3ee6ece197eabb3c1f4dbaa1a6600c314a0bf8 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 27 Sep 2023 20:49:59 +0200 Subject: [PATCH 6/6] Update .docs/content/1.Guide/2.fetchers.md Co-authored-by: William Oldham --- .docs/content/1.Guide/2.fetchers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docs/content/1.Guide/2.fetchers.md b/.docs/content/1.Guide/2.fetchers.md index c8b77aa..7b3c0cf 100644 --- a/.docs/content/1.Guide/2.fetchers.md +++ b/.docs/content/1.Guide/2.fetchers.md @@ -10,7 +10,7 @@ In most cases, you can use the `fetch()` API. This will work in newer versions o const fetcher = makeDefaultFetcher(fetch); ``` -If you using older version of nodejs. You can use the npm package `node-fetch` to polyfill fetch: +If you using older version of Node.js. You can use the npm package `node-fetch` to polyfill fetch: ```ts import fetch from "node-fetch";