Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Change log

### Version: 4.0.5
#### Date: July-23-2024
Dependecy updates

### Version: 4.0.4
#### Date: July-10-2024
Fixed semgrep issues
Expand Down
69 changes: 36 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/delivery-sdk",
"version": "4.0.4",
"version": "4.0.5",
"type": "commonjs",
"main": "./dist/cjs/src/index.js",
"types": "./dist/types/src/index.d.ts",
Expand All @@ -20,10 +20,10 @@
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json"
},
"dependencies": {
"@contentstack/core": "^1.0.1",
"@contentstack/utils": "^1.3.3",
"@contentstack/core": "^1.0.3",
"@contentstack/utils": "^1.3.8",
"@types/humps": "^2.0.6",
"axios": "^1.6.8",
"axios": "^1.7.2",
"dotenv": "^16.3.1",
"humps": "^2.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/contentstack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function stack(config: StackConfig): StackClass {
}
// Retry policy handlers
const errorHandler = (error: any) => {
retryResponseErrorHandler(error, config);
return retryResponseErrorHandler(error, config, client);
};
client.interceptors.request.use(retryRequestHandler);
client.interceptors.response.use(retryResponseHandler, errorHandler);
Expand Down