Skip to content

Commit 279252b

Browse files
committed
perf: 🎨 Lint format
Updated base on linting warnings
1 parent 3a09fea commit 279252b

File tree

3 files changed

+190
-192
lines changed

3 files changed

+190
-192
lines changed

lib/contentstack.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ import httpClient from './core/contentstackHTTPClient.js'
3939
* import * as contentstack from '@contentstack/management'
4040
* const client = contentstack.client({ timeout: 50000 })
4141
*
42-
* @prop {number=} params.maxRequests - Optional maximum number of requests SDK should send concurrently. Default is 10 request.
43-
* @example //Set the `maxRequests` to 50000ms
42+
* @prop {number=} params.maxRequests - Optional maximum number of requests SDK should send concurrently. Default is 5 concurrent request.
43+
* @example //Set the `maxRequests` to 5
4444
* import * as contentstack from '@contentstack/management'
4545
* const client = contentstack.client({ maxRequests: 5 })
46-
*
46+
*
4747
* @prop {boolean=} params.retryOnError - Optional boolean for retry on failuer. Default is true
4848
* @example //Set the `retryOnError` to false
4949
* import * as contentstack from '@contentstack/management'

lib/contentstackClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export default function contentstackClient ({ http }) {
8787
*
8888
*/
8989
function stack (params = {}) {
90-
var stack = { ...cloneDeep(params) }
91-
return new Stack(http, { stack })
90+
const stackParam = { ...cloneDeep(params) }
91+
return new Stack(http, { stackParam })
9292
}
9393

9494
/**

0 commit comments

Comments
 (0)