@contentstack/cli-cm-clone 1.4.4 → 1.4.6
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/README.md
CHANGED
|
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-clone
|
|
|
15
15
|
$ csdx COMMAND
|
|
16
16
|
running command...
|
|
17
17
|
$ csdx (--version)
|
|
18
|
-
@contentstack/cli-cm-clone/1.4.
|
|
18
|
+
@contentstack/cli-cm-clone/1.4.6 linux-x64 node-v16.20.0
|
|
19
19
|
$ csdx --help [COMMAND]
|
|
20
20
|
USAGE
|
|
21
21
|
$ csdx COMMAND
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-clone",
|
|
3
3
|
"description": "Contentstack stack clone plugin",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.6",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-cm-export": "^1.5.
|
|
9
|
-
"@contentstack/cli-cm-import": "^1.5.
|
|
10
|
-
"@contentstack/cli-command": "^1.2.
|
|
11
|
-
"@contentstack/cli-utilities": "^1.4.
|
|
8
|
+
"@contentstack/cli-cm-export": "^1.5.6",
|
|
9
|
+
"@contentstack/cli-cm-import": "^1.5.6",
|
|
10
|
+
"@contentstack/cli-command": "^1.2.6",
|
|
11
|
+
"@contentstack/cli-utilities": "^1.4.2",
|
|
12
12
|
"async": "^3.2.4",
|
|
13
13
|
"chalk": "^4.1.0",
|
|
14
14
|
"child_process": "^1.0.2",
|
|
@@ -76,7 +76,9 @@ class StackCloneCommand extends Command {
|
|
|
76
76
|
const cloneHandler = new CloneHandler(config);
|
|
77
77
|
const managementAPIClient = await managementSDKClient(config);
|
|
78
78
|
cloneHandler.setClient(managementAPIClient);
|
|
79
|
-
cloneHandler.execute().catch()
|
|
79
|
+
cloneHandler.execute().catch((error)=>{
|
|
80
|
+
console.log(error);
|
|
81
|
+
});
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
if (sourceManagementTokenAlias && destinationManagementTokenAlias) {
|
|
@@ -271,8 +271,8 @@ class CloneHandler {
|
|
|
271
271
|
await cloneCommand.execute(new SetBranchCommand(null, this));
|
|
272
272
|
|
|
273
273
|
if (exportRes) {
|
|
274
|
-
this.executeDestination().catch(() => {
|
|
275
|
-
reject();
|
|
274
|
+
this.executeDestination().catch((error) => {
|
|
275
|
+
return reject(error);
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -362,6 +362,8 @@ class CloneHandler {
|
|
|
362
362
|
await cloneCommand.execute(new CloneTypeSelectionCommand(null, this));
|
|
363
363
|
return resolve();
|
|
364
364
|
} catch (error) {
|
|
365
|
+
console.log(error);
|
|
366
|
+
stackAbortController.signal.aborted = true;
|
|
365
367
|
reject(error);
|
|
366
368
|
} finally {
|
|
367
369
|
// If not aborted and ran successfully
|