cloud-function-cli 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/dist/cli/list.js +12 -4
  2. package/package.json +1 -1
package/dist/cli/list.js CHANGED
@@ -23,8 +23,12 @@ const list = async (group, options) => {
23
23
  }
24
24
  if (!group) {
25
25
  try {
26
- const res = await apiClient_1.apiClient.get('/api/management/groups', { environment });
27
- const groups = Array.isArray(res.data) ? res.data : [];
26
+ const res = await apiClient_1.apiClient.get('/api/management/groups', { environment, page: 1, limit: 2000 });
27
+ const groups = Array.isArray(res.data)
28
+ ? res.data
29
+ : Array.isArray(res.data?.items)
30
+ ? res.data.items
31
+ : [];
28
32
  if (groups.length === 0) {
29
33
  logger_1.logger.warn(`No groups found (${environment})`);
30
34
  return;
@@ -46,8 +50,12 @@ const list = async (group, options) => {
46
50
  return;
47
51
  }
48
52
  try {
49
- const res = await apiClient_1.apiClient.get(`/api/management/list/${encodeURIComponent(normalizedGroup)}`, { environment });
50
- const apis = Array.isArray(res.data) ? res.data : [];
53
+ const res = await apiClient_1.apiClient.get(`/api/management/list/${encodeURIComponent(normalizedGroup)}`, { environment, page: 1, limit: 2000 });
54
+ const apis = Array.isArray(res.data)
55
+ ? res.data
56
+ : Array.isArray(res.data?.items)
57
+ ? res.data.items
58
+ : [];
51
59
  const apiNames = apis.map((x) => x?.api).filter(Boolean);
52
60
  if (apiNames.length === 0) {
53
61
  logger_1.logger.warn(`No APIs found in group ${normalizedGroup} (${environment})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-function-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI for Cloud Function System - Create, deploy, and manage serverless functions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {