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
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fileignoreconfig:
- filename: packages/contentstack-import/test/integration/environments.test.js
checksum: e71f033dad8944ffeafdf22d0514bda1d20c43e8fea0d62c96e774f3414beb31
- filename: package-lock.json
checksum: e72c7f98e233e37f4c6b1afa4fd7cd42225e8eb3bb29c130a4e4f8a91be18cc7
checksum: 132bc404a7a90c907ac439d94289a1b83a0a0df56d617b3f697fc219a5b555a5
- filename: packages/contentstack-auth/test/unit/tokens-validation.test.ts
checksum: 676052e30d31a771ce68302d89b050d176bbef50f3abc7e9cdd4384f0e274e10
- filename: packages/contentstack-import/test/integration/auth-token.test.js
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

Please refer to the Contentstack Command-line Interface release notes [here](https://www.contentstack.com/docs/developers/cli/cli-changelog).

## @contentstack/cli-config
### Version: 1.13.1
#### Date: July-21-2025
##### Fix:
- Improve error handling in rate limit command

## @contentstack/cli-cm-bulk-publish
### Version: 1.8.2
#### Date: June-30-2025
Expand Down
262 changes: 124 additions & 138 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/contentstack-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-config",
"description": "Contentstack CLI plugin for configuration",
"version": "1.13.0",
"version": "1.13.1",
"author": "Contentstack",
"scripts": {
"build": "npm run clean && npm run compile",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ export default class SetRateLimitCommand extends BaseCommand<typeof SetRateLimit
try {
await limitHandler.setRateLimit(config);
} catch (error) {
cliux.error(`Error: Something went wrong while setting rate limit for org: ${org}`);
cliux.error(error);
if (error?.message) {
cliux.error(error.message);
} else {
cliux.error(`Error: Something went wrong while setting rate limit for org: ${org}`);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { cliux, configHandler, formatError } from '@contentstack/cli-utilities';
import { cliux, configHandler } from '@contentstack/cli-utilities';
import { limitNamesConfig, defaultRalteLimitConfig } from '../utils/common-utilities';
import { Limit } from '../interfaces';

let client: any;

Check warning on line 5 in packages/contentstack-config/src/utils/rate-limit-handler.ts

View workflow job for this annotation

GitHub Actions / run-tests

Unexpected any. Specify a different type

export class RateLimitHandler {
setClient(managementSDKClient) {
Expand Down Expand Up @@ -66,7 +66,6 @@
}
});
} catch (error) {
console.log('Something went wrong while setting rate limit for org:', formatError(error));
throw new Error(error);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli",
"description": "Command-line tool (CLI) to interact with Contentstack",
"version": "1.43.0",
"version": "1.43.1",
"author": "Contentstack",
"bin": {
"csdx": "./bin/run.js"
Expand Down Expand Up @@ -35,7 +35,7 @@
"@contentstack/cli-cm-migrate-rte": "~1.5.2",
"@contentstack/cli-cm-seed": "~1.11.3",
"@contentstack/cli-command": "~1.5.1",
"@contentstack/cli-config": "~1.13.0",
"@contentstack/cli-config": "~1.13.1",
"@contentstack/cli-launch": "^1.9.2",
"@contentstack/cli-migration": "~1.7.3",
"@contentstack/cli-utilities": "~1.12.1",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

Loading