Skip to content

Commit 6bd5e6e

Browse files
committed
merged all changes
2 parents 0318122 + efd318d commit 6bd5e6e

File tree

57 files changed

+6728
-4882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6728
-4882
lines changed

.talismanrc

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 8cb8f731c811c721e741725fd0aab39cbef0e047392ccee0d0e61c679e7d0998
3+
checksum: 0cac869eb2f174e45751388de3eb46d48fbc8f5dbc56faf06000dbad7b5e8466
44
- filename: pnpm-lock.yaml
5-
checksum: cbc8b8c0dc444eaf2895bdf8c46812cf4dbadfa7c63be4e9dc619018022899b5
5+
checksum: cf7ddbd499ceb5d26ceb94381db0ecd576745b96b4deedd7442d3c8aa820ba92
66
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
77
checksum: 0582d62b88834554cf12951c8690a73ef3ddbb78b82d2804d994cf4148e1ef93
88
- filename: packages/contentstack-import-setup/test/config.json
@@ -263,16 +263,8 @@ fileignoreconfig:
263263
checksum: 9b83875b8d82086f13e0b7ab44ff7fe95486fced95b0c22d5c73fa69fbe35d4a
264264
- filename: packages/contentstack-bulk-publish/src/producer/add-fields.js
265265
checksum: 3e70b11978fc5f29a6a6c90b725c28c9df8d15bcc6fd74e2253fca23a3630160
266-
- filename: packages/contentstack-utilities/src/logger/session-path.ts
267-
checksum: 4c66980a857bc12012a45e50790c0eaab06883db5e1476d84fb142a08b70b2e7
268-
- filename: packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts
269-
checksum: ead3c34bad34f912d8663599273d26a95bb48220e16d9e9e3d33f5c064a487a5
270-
- filename: packages/contentstack-utilities/src/helpers.ts
271-
checksum: 9d7df9d79cec75f238a0072bf79c4934b4724bf1466451ea6f923adfd5c0b75b
272-
- filename: packages/contentstack-utilities/test/unit/logger.test.ts
273-
checksum: a1939dea16166b1893a248179524a76f2ed20b04b99c83bd1a5a13fcf6f0dadc
274-
- filename: packages/contentstack-audit/src/modules/modulesData.ts
275-
checksum: 1e6c1fba1172512401038d5454c8d218201ec62262449c5c878609592e0124c4
276-
- filename: packages/contentstack-audit/src/modules/composable-studio.ts
277-
checksum: e2f67d6b383415fe503ca22514fea38f53cc99647a9a73551772ab1082572cfa
266+
- filename: packages/contentstack-export/src/export/modules-js/environments.js
267+
checksum: e8714ef41940f3a9be782dfaa43a15df57bd1eb4c3f0e4d5f305e68681c1bd93
268+
- filename: packages/contentstack-import/src/import/modules-js/environments.js
269+
checksum: d484342c25462a7052c8aae6cad0baed9a01e1eaa67d6a09f175981c53092301
278270
version: '1.0'

CHANGELOG.md

Lines changed: 6 additions & 0 deletions

package-lock.json

Lines changed: 1155 additions & 1066 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/contentstack-auth/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/contentstack-bootstrap/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/contentstack-branches/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/contentstack-bulk-publish/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/contentstack-clone/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/contentstack-clone/src/commands/cm/stacks/clone.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { Command } = require('@contentstack/cli-command');
2-
const { configHandler, flags, isAuthenticated, managementSDKClient, log, handleAndLogError } = require('@contentstack/cli-utilities');
2+
const { configHandler, flags, isAuthenticated, managementSDKClient, log, handleAndLogError, createLogContext } = require('@contentstack/cli-utilities');
33
const { CloneHandler } = require('../../../lib/util/clone-handler');
44
const path = require('path');
55
const { rimraf } = require('rimraf');
@@ -78,7 +78,7 @@ class StackCloneCommand extends Command {
7878
sourceStackApiKey,
7979
authenticationMethod
8080
);
81-
cloneContext = { module: 'clone' };
81+
let cloneContext = { module: 'clone' };
8282
log.debug('Starting clone operation setup', cloneContext);
8383

8484
if (externalConfigPath) {
@@ -141,16 +141,18 @@ class StackCloneCommand extends Command {
141141
config.importWebhookStatus = importWebhookStatus;
142142
}
143143

144+
//Set host and auth BEFORE SDK initialization to ensure correct regional endpoints
145+
config.host = this.cmaHost;
146+
config.cdn = this.cdaHost;
147+
config.auth_token = configHandler.get('authtoken');
148+
144149
const managementAPIClient = await managementSDKClient(config);
145150
log.debug('Management API client initialized successfully', cloneContext);
146151

147152
log.debug(`Content directory path: ${pathdir}`, cloneContext);
148153
await this.removeContentDirIfNotEmptyBeforeClone(pathdir, cloneContext); // NOTE remove if folder not empty before clone
149154
this.registerCleanupOnInterrupt(pathdir, cloneContext);
150155

151-
config.auth_token = configHandler.get('authtoken');
152-
config.host = this.cmaHost;
153-
config.cdn = this.cdaHost;
154156
config.pathDir = pathdir;
155157
config.cloneContext = cloneContext;
156158
log.debug('Clone configuration finalized', cloneContext);

0 commit comments

Comments
 (0)