opticedge-cloud-utils 1.1.25 → 1.1.26

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/dist/task.js CHANGED
@@ -81,9 +81,7 @@ async function createTask(projectId, region, queueId, data, serviceAccount, audi
81
81
  return response.name;
82
82
  };
83
83
  try {
84
- const name = await (0, retry_1.retry)(() => doCreate(), retryOpts);
85
- console.log(`✅ Created Cloud Task: ${name}`);
86
- return name;
84
+ return await (0, retry_1.retry)(() => doCreate(), retryOpts);
87
85
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88
86
  }
89
87
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-cloud-utils",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Common utilities for cloud functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/task.ts CHANGED
@@ -106,9 +106,7 @@ export async function createTask(
106
106
  }
107
107
 
108
108
  try {
109
- const name = await retry(() => doCreate(), retryOpts)
110
- console.log(`✅ Created Cloud Task: ${name}`)
111
- return name
109
+ return await retry(() => doCreate(), retryOpts)
112
110
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
113
111
  } catch (err: any) {
114
112
  // If ALREADY_EXISTS happened (and was not considered retryable), you may prefer to