create-svc 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/gcp.ts +2 -2
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "create-svc",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Bun-authored CLI to scaffold Go Cloud Run services with Chi, ConnectRPC, Vault, and Cloudflare examples.",
5
5
  "module": "index.ts",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "bin": {
9
- "create-svc": "./bin/create-svc.mjs",
10
- "create-service": "./bin/create-svc.mjs"
9
+ "create-svc": "bin/create-svc.mjs",
10
+ "create-service": "bin/create-svc.mjs"
11
11
  },
12
12
  "files": [
13
13
  "bin",
package/src/gcp.ts CHANGED
@@ -27,7 +27,7 @@ export function createGcpApi(
27
27
  return {
28
28
  async listProjects() {
29
29
  const projects: GcpProject[] = [];
30
- for await (const project of projectsClient.searchProjectsAsync({})) {
30
+ for await (const project of projectsClient.searchProjectsAsync({}, { autoPaginate: false })) {
31
31
  projects.push({
32
32
  projectId: project.projectId ?? "",
33
33
  name: project.displayName ?? project.projectId ?? "",
@@ -42,7 +42,7 @@ export function createGcpApi(
42
42
 
43
43
  async listBillingAccounts() {
44
44
  const accounts: BillingAccount[] = [];
45
- for await (const account of billingClient.listBillingAccountsAsync({})) {
45
+ for await (const account of billingClient.listBillingAccountsAsync({}, { autoPaginate: false })) {
46
46
  accounts.push({
47
47
  name: account.name ?? "",
48
48
  displayName: account.displayName ?? account.name ?? "",