@salesforce/core-bundle 8.9.1 → 8.10.0

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/lib/index.d.ts CHANGED
@@ -5266,6 +5266,11 @@ declare module '@salesforce/core-bundle/status/pollingClient' {
5266
5266
  * ```
5267
5267
  */
5268
5268
  timeoutErrorName?: string;
5269
+ /**
5270
+ * Maximum number of retries. Use 'INFINITELY' for unlimited retries until timeout is reached.
5271
+ * If not specified, defaults to 'INFINITELY'.
5272
+ */
5273
+ retryLimit?: number | 'INFINITELY';
5269
5274
  };
5270
5275
  /**
5271
5276
  * Default options set for polling. The default options specify a timeout of 3 minutes and polling frequency of 15
package/lib/index.js CHANGED
@@ -12310,7 +12310,7 @@ var require_package2 = __commonJS({
12310
12310
  "package.json"(exports2, module2) {
12311
12311
  module2.exports = {
12312
12312
  name: "@salesforce/core-bundle",
12313
- version: "8.9.1",
12313
+ version: "8.10.0",
12314
12314
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
12315
12315
  main: "lib/index",
12316
12316
  types: "lib/index.d.ts",
@@ -83720,13 +83720,12 @@ var require_pollingClient = __commonJS({
83720
83720
  }
83721
83721
  throw new Error("Operation did not complete. Retrying...");
83722
83722
  };
83723
- const finalResult = (0, ts_retry_promise_1.retryDecorator)(doPoll, {
83724
- timeout: this.options.timeout.milliseconds,
83725
- delay: this.options.frequency.milliseconds,
83726
- retries: "INFINITELY"
83727
- });
83728
83723
  try {
83729
- return await finalResult();
83724
+ return await (0, ts_retry_promise_1.retryDecorator)(doPoll, {
83725
+ timeout: this.options.timeout.milliseconds,
83726
+ delay: this.options.frequency.milliseconds,
83727
+ retries: this.options.retryLimit ?? "INFINITELY"
83728
+ })();
83730
83729
  } catch (error) {
83731
83730
  if (errorInPollingFunction) {
83732
83731
  throw errorInPollingFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core-bundle",
3
- "version": "8.9.1",
3
+ "version": "8.10.0",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",