File tree Expand file tree Collapse file tree 3 files changed +190
-192
lines changed
Expand file tree Collapse file tree 3 files changed +190
-192
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments