From 0139bad522bf10da361b0c66032a1c26d77061f1 Mon Sep 17 00:00:00 2001 From: Ehsan Nasiri Date: Wed, 20 Oct 2021 16:42:39 -0500 Subject: [PATCH 1/3] Fix formatting in Storage. Ran `yarn prettier`. This will unblock other PRs. --- packages/storage/src/api.browser.ts | 6 +++--- packages/storage/src/api.node.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/storage/src/api.browser.ts b/packages/storage/src/api.browser.ts index 1583df1e182..acb501f62d5 100644 --- a/packages/storage/src/api.browser.ts +++ b/packages/storage/src/api.browser.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import {StorageReference} from "./public-types"; +import { StorageReference } from './public-types'; /** * Downloads the data at the object's location. Returns an error if the object @@ -38,7 +38,7 @@ function getBlob( ref: StorageReference, maxDownloadSizeBytes?: number ): Promise { - throw new Error("Not implemented"); + throw new Error('Not implemented'); } /** @@ -58,7 +58,7 @@ function getStream( ref: StorageReference, maxDownloadSizeBytes?: number ): NodeJS.ReadableStream { - throw new Error("getStream() is only supported by NodeJS builds"); + throw new Error('getStream() is only supported by NodeJS builds'); } // TODO(getbytes): Export getBlob/getStream diff --git a/packages/storage/src/api.node.ts b/packages/storage/src/api.node.ts index 296a7ca24a7..4ab8ef2e412 100644 --- a/packages/storage/src/api.node.ts +++ b/packages/storage/src/api.node.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import {StorageReference} from "./public-types"; +import { StorageReference } from './public-types'; /** * Downloads the data at the object's location. Returns an error if the object @@ -38,7 +38,7 @@ function getBlob( ref: StorageReference, maxDownloadSizeBytes?: number ): Promise { - throw new Error("getBlob() is only available in Browser-like environments"); + throw new Error('getBlob() is only available in Browser-like environments'); } /** @@ -58,7 +58,7 @@ function getStream( ref: StorageReference, maxDownloadSizeBytes?: number ): NodeJS.ReadableStream { - throw new Error("Not implemented"); + throw new Error('Not implemented'); } // TODO(getbytes): Export getBlob/getStream From 06f6d3766e31d527d010857786ad9e704aa179a6 Mon Sep 17 00:00:00 2001 From: Ehsan Date: Wed, 20 Oct 2021 16:44:05 -0500 Subject: [PATCH 2/3] Create unlucky-steaks-ring.md --- .changeset/unlucky-steaks-ring.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/unlucky-steaks-ring.md diff --git a/.changeset/unlucky-steaks-ring.md b/.changeset/unlucky-steaks-ring.md new file mode 100644 index 00000000000..26cf13bd44b --- /dev/null +++ b/.changeset/unlucky-steaks-ring.md @@ -0,0 +1,5 @@ +--- +"@firebase/storage": patch +--- + +Fix formatting in Storage. From fee05a70bd9b43491508d0424ac18a217a3331cd Mon Sep 17 00:00:00 2001 From: Ehsan Nasiri Date: Wed, 20 Oct 2021 16:51:20 -0500 Subject: [PATCH 3/3] remove changeset. --- .changeset/unlucky-steaks-ring.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/unlucky-steaks-ring.md diff --git a/.changeset/unlucky-steaks-ring.md b/.changeset/unlucky-steaks-ring.md deleted file mode 100644 index 26cf13bd44b..00000000000 --- a/.changeset/unlucky-steaks-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@firebase/storage": patch ---- - -Fix formatting in Storage.