@contentstack/cli-cm-branches 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Contentstack
3
+ Copyright (c) 2026 Contentstack
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
37
37
  $ csdx COMMAND
38
38
  running command...
39
39
  $ csdx (--version)
40
- @contentstack/cli-cm-branches/1.6.1 linux-x64 node-v22.20.0
40
+ @contentstack/cli-cm-branches/1.6.3 linux-x64 node-v22.22.0
41
41
  $ csdx --help [COMMAND]
42
42
  USAGE
43
43
  $ csdx COMMAND
@@ -247,7 +247,7 @@ class MergeHandler {
247
247
  mergeContent[module].deleted = moduleBranchCompareData.deleted;
248
248
  break;
249
249
  default:
250
- cli_utilities_1.cliux.error(`error: Invalid strategy ${strategy}`);
250
+ cli_utilities_1.cliux.error(`Error: Invalid strategy '${strategy}'`);
251
251
  process.exit(1);
252
252
  }
253
253
  }
@@ -21,7 +21,7 @@ class BranchDeleteCommand extends cli_command_1.Command {
21
21
  if (!branchDeleteFlags.yes) {
22
22
  const confirmBranch = await utils_1.interactive.askBranchNameConfirmation();
23
23
  if (confirmBranch !== branchDeleteFlags.uid) {
24
- cli_utilities_1.cliux.error(`error: To delete the branch, enter a valid branch name '${branchDeleteFlags.uid}'`);
24
+ cli_utilities_1.cliux.error(`Error: To delete the branch, enter a valid branch name '${branchDeleteFlags.uid}'`);
25
25
  process.exit(1);
26
26
  }
27
27
  }
@@ -146,13 +146,13 @@ function assetFolderCreateScript(contentType) {
146
146
  migration.addTask(createAssetTask());
147
147
  } else {
148
148
  if (apiKey.length === 0) {
149
- console.error('Please provide api key using --stack-api-key flag');
149
+ console.error('Provide the API key using the --stack-api-key flag.');
150
150
  }
151
151
  if (!compareBranch) {
152
- console.error('Please provide compare branch through --config compare-branch:<value> flag');
152
+ console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
153
153
  }
154
154
  if (branch.length === 0) {
155
- console.error('Please provide branch name through --branch flag');
155
+ console.error('Specify the branch name using the --branch flag.');
156
156
  }
157
157
  }
158
158
  }
@@ -602,13 +602,13 @@ function entryCreateScript(contentType) {
602
602
  migration.addTask(createEntryTask());
603
603
  } else {
604
604
  if (apiKey.length === 0) {
605
- console.error('Please provide api key using --stack-api-key flag');
605
+ console.error('Provide the API key using the --stack-api-key flag.');
606
606
  }
607
607
  if (!compareBranch) {
608
- console.error('Please provide compare branch through --config compare-branch:<value> flag');
608
+ console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
609
609
  }
610
610
  if (branch.length === 0) {
611
- console.error('Please provide branch name through --branch flag');
611
+ console.error('Specify the branch name using the --branch flag.');
612
612
  }
613
613
  }
614
614
  };
@@ -672,13 +672,13 @@ function entryCreateUpdateScript(contentType) {
672
672
  migration.addTask(updateEntryTask());
673
673
  } else {
674
674
  if (apiKey.length === 0) {
675
- console.error('Please provide api key using --stack-api-key flag');
675
+ console.error('Provide the API key using the --stack-api-key flag.');
676
676
  }
677
677
  if (!compareBranch) {
678
- console.error('Please provide compare branch through --config compare-branch:<value> flag');
678
+ console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
679
679
  }
680
680
  if (branch.length === 0) {
681
- console.error('Please provide branch name through --branch flag');
681
+ console.error('Specify the branch name using the --branch flag.');
682
682
  }
683
683
  }
684
684
  };`;
@@ -669,13 +669,13 @@ function entryUpdateScript(contentType) {
669
669
  migration.addTask(updateEntryTask());
670
670
  } else {
671
671
  if (apiKey.length === 0) {
672
- console.error('Please provide api key using --stack-api-key flag');
672
+ console.error('Provide the API key using the --stack-api-key flag.');
673
673
  }
674
674
  if (!compareBranch) {
675
- console.error('Please provide compare branch through --config compare-branch:<value> flag');
675
+ console.error('Specify the compare branch using the --config compare-branch:<value> flag.');
676
676
  }
677
677
  if (branch.length === 0) {
678
- console.error('Please provide branch name through --branch flag');
678
+ console.error('Specify the branch name using the --branch flag.');
679
679
  }
680
680
  }
681
681
  };`;
@@ -97,7 +97,7 @@ async function selectMergeStrategy() {
97
97
  })
98
98
  .then((name) => name)
99
99
  .catch((err) => {
100
- cli_utilities_1.cliux.error('Failed to collect the merge strategy');
100
+ cli_utilities_1.cliux.error('Failed to retrieve the merge strategy.');
101
101
  process.exit(1);
102
102
  });
103
103
  return strategy;
@@ -119,7 +119,7 @@ async function selectMergeStrategySubOptions() {
119
119
  })
120
120
  .then((name) => name)
121
121
  .catch((err) => {
122
- cli_utilities_1.cliux.error('Failed to collect the merge strategy');
122
+ cli_utilities_1.cliux.error('Failed to retrieve the merge strategy.');
123
123
  process.exit(1);
124
124
  });
125
125
  return strategy;
@@ -163,7 +163,7 @@ async function selectContentMergePreference() {
163
163
  })
164
164
  .then((name) => name)
165
165
  .catch((err) => {
166
- cli_utilities_1.cliux.error('Failed to collect the preference');
166
+ cli_utilities_1.cliux.error('Failed to retrieve the preference.');
167
167
  process.exit(1);
168
168
  });
169
169
  return strategy;
@@ -364,5 +364,5 @@
364
364
  ]
365
365
  }
366
366
  },
367
- "version": "1.6.1"
367
+ "version": "1.6.3"
368
368
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-branches",
3
3
  "description": "Contentstack CLI plugin to do branches operations",
4
- "version": "1.6.1",
4
+ "version": "1.6.3",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "~1.6.1",
8
+ "@contentstack/cli-command": "~1.7.2",
9
9
  "@oclif/core": "^4.3.0",
10
10
  "@oclif/plugin-help": "^6.2.28",
11
- "@contentstack/cli-utilities": "~1.15.0",
11
+ "@contentstack/cli-utilities": "~1.17.0",
12
12
  "chalk": "^4.1.2",
13
13
  "just-diff": "^6.0.2",
14
14
  "lodash": "^4.17.21"
@@ -25,7 +25,7 @@
25
25
  "mocha": "10.8.2",
26
26
  "nyc": "^15.1.0",
27
27
  "oclif": "^4.17.46",
28
- "sinon": "^19.0.5",
28
+ "sinon": "^21.0.1",
29
29
  "ts-node": "^10.9.2",
30
30
  "typescript": "^4.9.5"
31
31
  },