@upstash/qstash
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -15,2 +15,3 @@ import { HttpClient } from "./http.js"; | ||
this.http = new HttpClient({ | ||
retry: config.retry, | ||
baseUrl: config.baseUrl | ||
@@ -17,0 +18,0 @@ ? config.baseUrl.replace(/\/$/, "") |
@@ -38,4 +38,4 @@ import { QstashError } from "./error.js"; | ||
this.retry = { | ||
attempts: config?.retry?.retries ?? 5, | ||
backoff: config?.retry?.backoff ?? | ||
attempts: config.retry?.retries ? config.retry.retries + 1 : 5, | ||
backoff: config.retry?.backoff ?? | ||
((retryCount) => Math.exp(retryCount) * 50), | ||
@@ -42,0 +42,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"name": "@upstash/qstash", | ||
"version": "v0.3.5", | ||
"version": "v0.3.6", | ||
"description": "Official Deno/Typescript client for QStash", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -18,2 +18,3 @@ "use strict"; | ||
this.http = new http_js_1.HttpClient({ | ||
retry: config.retry, | ||
baseUrl: config.baseUrl | ||
@@ -20,0 +21,0 @@ ? config.baseUrl.replace(/\/$/, "") |
@@ -41,4 +41,4 @@ "use strict"; | ||
this.retry = { | ||
attempts: config?.retry?.retries ?? 5, | ||
backoff: config?.retry?.backoff ?? | ||
attempts: config.retry?.retries ? config.retry.retries + 1 : 5, | ||
backoff: config.retry?.backoff ?? | ||
((retryCount) => Math.exp(retryCount) * 50), | ||
@@ -45,0 +45,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { Requester } from "./http.js"; | ||
import { Requester, RetryConfig } from "./http.js"; | ||
import { Topics } from "./topics.js"; | ||
@@ -21,2 +21,6 @@ import { Messages } from "./messages.js"; | ||
token: string; | ||
/** | ||
* Configure how the client should retry requests. | ||
*/ | ||
retry?: RetryConfig | false; | ||
}; | ||
@@ -23,0 +27,0 @@ declare type Destination = { |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
665847
11661
3