Skip to content

Commit

Permalink
Merge branch 'main' into sameeran/ff-3649-offline-init-method-for-pre…
Browse files Browse the repository at this point in the history
…computed-client
  • Loading branch information
sameerank committed Dec 16, 2024
2 parents 8b3f8c4 + 3db2205 commit 409019a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-promise": "^7.2.1",
"husky": "^8.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
Expand Down
10 changes: 5 additions & 5 deletions src/i-client-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ export interface IClientConfig extends IBaseRequestConfig {

/** Configuration settings for the event dispatcher */
eventIngestionConfig?: {
// number of milliseconds to wait between each batch delivery. Default is 10 seconds.
/** number of milliseconds to wait between each batch delivery. Defaults to 10 seconds. */
deliveryIntervalMs?: number;
// minimum amount of milliseconds to wait before retrying a failed delivery. Default is 5 seconds
/** minimum amount of milliseconds to wait before retrying a failed delivery. Defaults to 5 seconds */
retryIntervalMs?: number;
// maximum amount of milliseconds to wait before retrying a failed delivery. Default is 30 seconds.
/** maximum amount of milliseconds to wait before retrying a failed delivery. Defaults to 30 seconds. */
maxRetryDelayMs?: number;
// maximum number of retry attempts before giving up on a batch delivery. Default is 3.
/** maximum number of retry attempts before giving up on a batch delivery. Defaults to 3 retries. */
maxRetries?: number;
// maximum number of events to send per delivery request. Default is 100.
/** maximum number of events to send per delivery request. Defaults to 1000 events. */
batchSize?: number;
};
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ function newEventDispatcher(
typeof window !== 'undefined' ? new BrowserNetworkStatusListener() : emptyNetworkStatusListener;
// initialize config with default values
const {
batchSize = 100,
batchSize = 1_000,
deliveryIntervalMs = 10_000,
retryIntervalMs = 5_000,
maxRetryDelayMs = 30_000,
Expand Down
12 changes: 7 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@
spark-md5 "^3.0.2"
uuid "^8.3.2"

"@eslint-community/eslint-utils@^4.2.0":
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
version "4.4.1"
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz#d1145bf2c20132d6400495d6df4bf59362fd9d56"
integrity sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==
Expand Down Expand Up @@ -2233,10 +2233,12 @@ eslint-plugin-prettier@^4.0.0:
dependencies:
prettier-linter-helpers "^1.0.0"

eslint-plugin-promise@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.0.0.tgz#017652c07c9816413a41e11c30adc42c3d55ff18"
integrity sha512-7GPezalm5Bfi/E22PnQxDWH2iW9GTvAlUNTztemeHb6c1BniSyoeTrM87JkC0wYdi6aQrZX9p2qEiAno8aTcbw==
eslint-plugin-promise@^7.2.1:
version "7.2.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-7.2.1.tgz#a0652195700aea40b926dc3c74b38e373377bfb0"
integrity sha512-SWKjd+EuvWkYaS+uN2csvj0KoP43YTu7+phKQ5v+xw6+A0gutVX2yqCeCkC3uLCJFiPfR2dD8Es5L7yUsmvEaA==
dependencies:
"@eslint-community/eslint-utils" "^4.4.0"

eslint-scope@5.1.1, eslint-scope@^5.1.1:
version "5.1.1"
Expand Down

0 comments on commit 409019a

Please sign in to comment.