@distilled.cloud/gcp 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,11 +12,16 @@ npm install @distilled.cloud/gcp effect
12
12
 
13
13
  ```typescript
14
14
  import { Effect, Layer } from "effect";
15
+ import * as Stream from "effect/Stream";
15
16
  import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
16
17
  import * as Storage from "@distilled.cloud/gcp/storage-v1";
17
18
  import { CredentialsFromEnv } from "@distilled.cloud/gcp";
18
19
 
19
- const program = Storage.listBuckets({ project: "my-project" });
20
+ const program = Effect.gen(function* () {
21
+ const buckets = yield* Storage.listBuckets
22
+ .items({ project: "my-project" })
23
+ .pipe(Stream.take(10), Stream.runCollect);
24
+ });
20
25
 
21
26
  const GCPLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
22
27