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'
39
39
* import * as contentstack from '@contentstack/management'
40
40
* const client = contentstack.client({ timeout: 50000 })
41
41
*
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
44
44
* import * as contentstack from '@contentstack/management'
45
45
* const client = contentstack.client({ maxRequests: 5 })
46
- *
46
+ *
47
47
* @prop {boolean= } params.retryOnError - Optional boolean for retry on failuer. Default is true
48
48
* @example //Set the `retryOnError` to false
49
49
* 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 }) {
87
87
*
88
88
*/
89
89
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 } )
92
92
}
93
93
94
94
/**
You can’t perform that action at this time.
0 commit comments