From e547eaa180e0987f0446096d4f80f3429c4f1cf0 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sun, 7 Aug 2022 21:25:36 +0800 Subject: [PATCH] Docs: fix broken link to Got stream documentation (#3323) --- docs/api-constructor.md | 2 +- lib/constructor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-constructor.md b/docs/api-constructor.md index 31bce0fd..57459d56 100644 --- a/docs/api-constructor.md +++ b/docs/api-constructor.md @@ -215,7 +215,7 @@ promises.push( .toFile("optimized-500.webp") ); -// https://github.com/sindresorhus/got#gotstreamurl-options +// https://github.com/sindresorhus/got/blob/main/documentation/3-streams.md got.stream("https://www.example.com/some-file.jpg").pipe(sharpStream); Promise.all(promises) diff --git a/lib/constructor.js b/lib/constructor.js index 33e6ffe1..c4c2f2d7 100644 --- a/lib/constructor.js +++ b/lib/constructor.js @@ -382,7 +382,7 @@ Object.setPrototypeOf(Sharp, stream.Duplex); * .toFile("optimized-500.webp") * ); * - * // https://github.com/sindresorhus/got#gotstreamurl-options + * // https://github.com/sindresorhus/got/blob/main/documentation/3-streams.md * got.stream("https://www.example.com/some-file.jpg").pipe(sharpStream); * * Promise.all(promises)