Skip to content

Commit 5a2e734

Browse files
committed
Merge branch 'staging' into next-feature-update
2 parents eae602d + 8edb033 commit 5a2e734

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-config/1.7.1 darwin-arm64 node-v22.2.0
21+
@contentstack/cli-config/1.7.2 darwin-arm64 node-v22.2.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-config",
33
"description": "Contentstack CLI plugin for configuration",
4-
"version": "1.7.1",
4+
"version": "1.7.2",
55
"author": "Contentstack",
66
"scripts": {
77
"build": "npm run clean && npm run compile",

packages/contentstack-variants/src/import/experiences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class Experiences extends PersonalizationAdapter<ImportConfig> {
162162
* function import experience versions from a JSON file and creates them in the project.
163163
*/
164164
async importExperienceVersions(experience: ExperienceStruct, oldExperienceUid: string) {
165-
const versionsPath = resolve(sanitizePath(this.experiencesDirPath), 'versions', `${oldExperienceUid}.json`);
165+
const versionsPath = resolve(sanitizePath(this.experiencesDirPath), 'versions', `${sanitizePath(oldExperienceUid)}.json`);
166166

167167
if (!existsSync(versionsPath)) {
168168
return;

packages/contentstack-variants/src/utils/error-helper.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ export function formatErrors(errors: any): string {
99
for (const errorKey in errors) {
1010
const errorValue = errors[errorKey];
1111
if (Array.isArray(errorValue)) {
12-
errorMessages.push(...errorValue.map((error: any) => formatError(errorKey, error)));
12+
errorMessages.push(...errorValue.map((error: any) => formatError(error)));
1313
} else {
14-
errorMessages.push(formatError(errorKey, errorValue));
14+
errorMessages.push(formatError(errorValue));
1515
}
1616
}
1717

1818
return errorMessages.join(' ');
1919
}
2020

21-
function formatError(errorKey: string, error: any): string {
21+
function formatError(error: any): string {
2222
if (typeof error === 'object') {
23-
return `${errorKey}: ${Object.values(error).join(' ')}`;
23+
return Object.values(error).join(' ');
2424
}
25-
return `${errorKey}: ${error}`;
25+
return error;
2626
}

0 commit comments

Comments
 (0)