Skip to content

Commit 8326f12

Browse files
authored
Merge pull request #1044 from contentstack/staging
Staging -> Main
2 parents 113b290 + c8d3ab0 commit 8326f12

34 files changed

Lines changed: 22016 additions & 17237 deletions

File tree

package-lock.json

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

packages/contentstack-auth/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-auth
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-auth/1.3.13 darwin-arm64 node-v20.3.1
21+
@contentstack/cli-auth/1.3.13 darwin-x64 node-v20.7.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
1515
$ csdx COMMAND
1616
running command...
1717
$ csdx (--version)
18-
@contentstack/cli-cm-bootstrap/1.4.15 darwin-arm64 node-v20.3.1
18+
@contentstack/cli-cm-bootstrap/1.4.16 darwin-x64 node-v20.7.0
1919
$ csdx --help [COMMAND]
2020
USAGE
2121
$ csdx COMMAND

packages/contentstack-bootstrap/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-bootstrap",
33
"description": "Bootstrap contentstack apps",
4-
"version": "1.4.15",
4+
"version": "1.4.16",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -17,7 +17,7 @@
1717
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
1818
},
1919
"dependencies": {
20-
"@contentstack/cli-cm-seed": "~1.4.15",
20+
"@contentstack/cli-cm-seed": "~1.4.16",
2121
"@contentstack/cli-command": "~1.2.12",
2222
"@contentstack/cli-utilities": "~1.5.2",
2323
"inquirer": "8.2.4",

packages/contentstack-branches/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
3737
$ csdx COMMAND
3838
running command...
3939
$ csdx (--version)
40-
@contentstack/cli-cm-branches/1.0.12 darwin-arm64 node-v20.3.1
40+
@contentstack/cli-cm-branches/1.0.13 darwin-x64 node-v20.7.0
4141
$ csdx --help [COMMAND]
4242
USAGE
4343
$ csdx COMMAND

packages/contentstack-branches/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
22
"name": "@contentstack/cli-cm-branches",
33
"description": "Contentstack CLI plugin to do branches operations",
4-
"version": "1.0.12",
4+
"version": "1.0.13",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
88
"@contentstack/cli-command": "~1.2.12",
99
"@contentstack/cli-utilities": "~1.5.2",
10-
"@oclif/command": "^1.8.16",
11-
"@oclif/config": "^1.18.3",
1210
"@oclif/core": "^2.9.3",
1311
"async": "^3.2.4",
1412
"big-json": "^3.2.0",

packages/contentstack-branches/src/utils/entry-create-script.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ export function entryCreateScript(contentType) {
465465
.query({ query: { title: compareRefEntry.title } })
466466
.find();
467467
468-
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
468+
if(baseRefEntry?.items?.length > 0 && baseRefEntry.items[0]?.uid){
469+
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
470+
}
469471
}
470472
}
471473
}

packages/contentstack-branches/src/utils/entry-create-update-script.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ export function entryCreateUpdateScript(contentType) {
484484
.query({ query: { title: compareRefEntry.title } })
485485
.find();
486486
487-
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
487+
if(baseRefEntry?.items?.length > 0 && baseRefEntry.items[0]?.uid){
488+
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
489+
}
488490
}
489491
}
490492
}

packages/contentstack-branches/src/utils/entry-update-script.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ export function entryUpdateScript(contentType) {
483483
.query({ query: { title: compareRefEntry.title } })
484484
.find();
485485
486-
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
486+
if(baseRefEntry?.items?.length > 0 && baseRefEntry.items[0]?.uid){
487+
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
488+
}
487489
}
488490
}
489491
}

packages/contentstack-bulk-publish/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-cm-bulk-publish
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-cm-bulk-publish/1.3.11 darwin-arm64 node-v20.3.1
21+
@contentstack/cli-cm-bulk-publish/1.3.11 darwin-x64 node-v20.7.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

0 commit comments

Comments
 (0)